5 ms·
The blog mentions that Julia is supposed to be a general purpose language, and not a language built specifically for scientific computing. Is that wrong? The f
by Svenskunganka 8y ago
The blog mentions that Julia is supposed to be a general purpose language, and not a language built specifically for scientific computing. Is that wrong?
The first impression does leave me thinking that using Julia for different programming domains like distributed internet-facing servers or web services is not something it was built for.
- Accipitriform 8y ago> The blog mentions that Julia is supposed to be a general purpose language, and not a language built specifically for scientific computing. Is that wrong? No. Julia is a general purpose language that has so far been mainly focused on scientific and mathematical programming. It's design is probably least friendly to the real-time programming domain (GC based) but it can apparently be used there as well: http://www.juliarobotics.org/ http://www.juliarobotics.org/ I see an extremely bright future ahead for Julia!
- ChrisRackauckas 8y agoFun fact, the GC really isn't an issue and instead the opposite issue was found. There had to be callbacks built to slow down the computations for the robotics simulations in order to get it to run at real-time because it was too fast. https://github.com/JuliaRobotics/RigidBodySim.jl/blob/34ac4352f882b5b3beb62ba2b4b90c1e57817b39/src/core.jl#L154 https://github.com/JuliaRobotics/RigidBodySim.jl/blob/34ac43... Notice that this function is purposefully sleeping the differential equation solver in order to slow it down to the exact amount to get the simulation back to real-time.
- CyberDildonics 8y agoThat's a very amateurish way to solve this problem. Games typically have a main loop which will check the amount of time that has passed on every iteration of the loop. You can see how much extra time is left for that frame at the targeted frame rate, then sleep for that amount of time. Then you never have to slow down anything else, you can set a maximum amount of cycles per second and you can sleep once per cycle. The faster the CPU, the less power it should use.
- ChrisRackauckas 8y agoInteresting to hear. This just isn't a thing I think is ever encountered in this kind of stuff. The author's previous struggle was to get to real-time. Getting below it wasn't something they really considered. Here's a talk they gave: https://www.youtube.com/watch?v=dmWQtI3DFFo https://www.youtube.com/watch?v=dmWQtI3DFFo
- billchristian 8y agoOn a similar note, I continue to be interested in Julia. However, the examples and videos shared by the community are predominately scientific or mathematical in nature. The material is too dense for the layman programmer such as myself. Not specifically a compliant, but more of a call to action for the community to share more traditional usage examples to intrigue others like myself. And of course, I should really assist to solve this problem myself. But, I thought to encourage other language experts.
- jimbokun 8y agoMy sense has been it's designed specifically to be the best language for scientific and mathematical computing, but also a general purpose language in the sense you don't have to switch languages when you need to incorporate into a web service or a GUI tool or text munging. So like Python, you have SciPy Pandas etc. but don't have to leave Python when you need to do a bunch of text processing or whatever.
- FabHK 8y agoBig difference being that most of the packages in Julia are written in Julia itself (unlike Python, where they're often written in some more performant language); so the aspiration is that you have to leave Julia even less frequently than you have to leave Python. At the same time, calling into other languages (eg C) is super straightforward (disclaimer: last time I checked).
- chrispeel 8y agoFor a talk on "Low Level Systems Programming in High Level Julia" see the following video: http://www.youtube.com/watch?v=AaQ7XuAR2yY&t=5m6s http://www.youtube.com/watch?v=AaQ7XuAR2yY&t=5m6s