News for hackers. Stuff that matters.
Re:Some fun with π in Julia by dnautics on Tuesday March 14, 2017 @12:18PM (#13868824)
I would say there's something magical about the way that Julia is structured that makes it more than just a scientific language. I wrote a DSL for Julia for writing clean combinatorial verilog (haven't tackled sequential yet) in 3 days, using lispish macros. It took another 1 day to hook it up to 'verilator' which transpiles the verilog to C and lets you crosscheck it by loading it back up in Julia.

https://github.com/interplanetary-robot/Verilog.jl

This is very important if you're planning to build hardware to do specific math - because Julia is incredibly good at mathematical modeling, and you can very rapidly set up comprehensive tests for your hardware designs with confidence.

The closest alternative is chisel, which is written in scala. Although it's more professionally maintained and more fully-featured, it's hard to call the verilog chisel emits "human-readable", and it's harder to set up comprehensive tests - berkeley hardfloat, which is a very impressive project in chisel, had several critical bugs in its implementation (that I found, using julia).

Re:Some fun with π in Julia by UncleOxidant on Tuesday March 14, 2017 @03:01PM (#13870438)
That's really nice. Now we need VHDL.jl as well - maybe different HDL backends could be bolted on? Julia is much better suited for this than Scala due to Julia's macro system.
Re:Some fun with π in Julia by dnautics on Tuesday March 14, 2017 @05:31PM (#13871646)
Although I don't know that much about VHDL, it probably won't be that hard to either fork it or make it an option.

Drop a line. My contact info is in my profile.