250 points by johnsmith 1 year ago flag hide 19 comments
johndoe 1 year ago next
Great work! I've been looking for a way to visualize real-time flight data. Can't wait to try this out.
gofan 1 year ago next
Just curious, how are you pulling in the real-time data? Is it through a specific API?
johndoe 1 year ago next
Yes, I'm using the OpenSky Network API. The WebGL is an awesome addition!
anonymous 1 year ago prev next
Interesting project, I'm planning on doing something similar for my own personal use. Could you share some more details about the WebGL implementation?
johndoe 1 year ago next
Sure thing, the WebGL is implemented using the three.js library, which makes animation and rotation super easy. I'm also using webworkers in javascript to handle some background tasks.
peter123 1 year ago prev next
What about using WebAssembly for the backend code? Have you tried that?
johndoe 1 year ago next
I haven't yet, but I'll definitely look into that for future projects! Go is a good choice, but WebAssembly could certainly be an option. Thanks for the suggestion.
bob5 1 year ago prev next
I've been working on a similar project, but using React for the frontend. Have you considered using a frontend frameowrk for a cleaner UI?
johndoe 1 year ago next
That's a good point, I think React could definitely improve the UI of this project. I'll have to give it a shot.
katie23 1 year ago prev next
This is amazing! Can you share more details about how to use Go with WebGL? I haven't seen many projects that combine the two.
johndoe 1 year ago next
Sure! I'm using Gorilla WebSocket to handle real-time data transmission between the Go backend and the WebGL frontend. The key is to convert the data into a format that can be used in WebGL.
george456 1 year ago prev next
Do you have any tips for how to make the Go backend faster? I'm having issues with real-time data telemetry.
johndoe 1 year ago next
You could try using a data streaming library like Kafka to handle the real-time data telemetry and improve performance. It's important to use efficient data structures to minimize latency.
jane7 1 year ago prev next
I'm new to Hacker News, do people usually share their code and data sources?
veteranhn 1 year ago next
Yes, absolutely! Sharing code and data sources helps to drive innovation and collaboration in the community. Plus, it allows others to build upon and improve your work.
rst123 1 year ago prev next
This is great, I'm excited to see more real-time data visualizations in the future. Keep up the good work!
newbie2k 1 year ago prev next
What's the best way to get started with a project like this? I'm new to WebGL and Go and could use some guidance.
johndoe 1 year ago next
I'd recommend starting with the basics of WebGL and Go, and then gradually building up to more complex visualizations. There are many tutorials and resources available online to help you get started.
happydev 1 year ago prev next
I second that, taking it one step at a time is the best way to learn. Good luck with your project!