Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
borodi
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
borodi
7mo ago
Fun fact, Julia's parser and part of its compiler are implemented in femtolisp, and you can access it using a not so secret option in the Julia CLI.
2.
▲
by
borodi
2y ago
I havent tried Tsan with rr but msan and asan work quite well with it (it’s quite slow when doing this) but seeing the sanitizer trigger then following back what caused it to trigger is very useful.
3.
▲
by
borodi
2y ago
Chaos mode is an option when invoking rr that can expose some concurrency issues. Basically it switches which thread is executing a bunch to try and simulate multiple cores executing. It has found some race conditions for me but it’s of cou
4.
▲
by
borodi
2y ago
There is, it's called count_ones. Though I wouldn't be surprised if LLVM could maybe optimize some of these loops into a popcnt, but I'm sure it would be brittle
5.
▲
by
borodi
3y ago
So it was a bit more pervasive than this, the issue was that flushing subnormals (values very close to 0) to 0 is a register that gets set, so if a library is built with the fastmath flags and it gets loaded, it sets the register, causing t
6.
▲
by
borodi
3y ago
btw, there has been a pretty nice effort of reimplementing the tidyverse in julia with https://github.com/TidierOrg/Tidier.jl and it seems to be quite nice to work with, if you were missing that from R at least
7.
▲
by
borodi
3y ago
LLVMs API is the c++ one. The C one while more stable also doesn't support everything. Keeping up with LLVM is annoying but it's not the source of bugs or anything of the sort. PS(it's not actually stable. Because if the c++
8.
▲
by
borodi
3y ago
Julia follows semver, so code written in 1.0 should work on the latest release (packages notwithstanding)
9.
▲
by
borodi
3y ago
It tries to show you the type information on the source itself, instead of on the IR.
10.
▲
by
borodi
3y ago
I do believe this is an issue of not having explicit dependencies. Julia takes the approach of, we build and ship everything for every OS, which means Pkg (the package manager) knows about binary dependencies as well. Making things more rep
11.
▲
by
borodi
3y ago
Julia does have really nice GPU support, being able to directly compile julia code into CUDA, ROCm, Metal or other accelerators. (Being GPU code it's limited to a subset of the main language)
12.
▲
by
borodi
3y ago
You can try and build your own toy language for fun, or try to compile lox to some assembly/llvm ir. Another option is to try and contribute to an existing language (Julia ;) ).
13.
▲
by
borodi
3y ago
We used the chromium snapshot file format ( https://learn.microsoft.com/en-us/microsoft-edge/devtools-gu... ). If firefox uses the same format then it should work, but I haven't tested.
14.
▲
by
borodi
3y ago
I'm sure there are reasons for it, but Chris Lattner has been jumping around a bit. Remember swift4TF. But hopefully this one is seen through with lots of open source too.
15.
▲
by
borodi
4y ago
One interesting thing is that if julia can prove what types a function will be called with at compile time, it doesn't have to do dynamic dispatch, so it has no overhead. It's what the julia folks call type-stable code
16.
▲
by
borodi
4y ago
That's one of the cool things about Julia. If it can prove the types of the arguments to a function, or at least reduce them to a small set. It can do the dispatch at compile time. Well, Julia has better than semi decent support for ge
17.
▲
by
borodi
4y ago
Veritasium has a recent video that goes into the algorithm a little bit. So does 3blue1brown. But basically anything that processes signals digitally will probably use the FFT somewhere. But even outside of that, you can use it for some kin
18.
▲
by
borodi
4y ago
Julia has many of the features one expects of a lisp. But it has a more "normal" syntax
19.
▲
by
borodi
4y ago
SemVer is very important for me. If the language has binary dependencies the package manager should also handle them. Depending on the system for them leads to hard to debug issues. An easy way to reproduce environments is also important
20.
▲
by
borodi
4y ago
Pop has pipewire since 22.04 IIRC.
21.
▲
by
borodi
4y ago
LDP(load 2 registers) was switched in place of LDM, it seems that instructions that could touch so many registers at once made out of order/superscalar harder. source: https://community.arm.com/support-forums/f
22.
▲
by
borodi
4y ago
The group working on it, (Valentin, Tim Holy etc) agree with you, which is why we are tending to call it TTFX(time to first X) instead of TTFP, so it includes everything, not just plotting. It's just that when plotting the delay is ver
23.
▲
by
borodi
4y ago
--lisp mode just lands you in the REPL of femtolisp, which is used for the parser and lowererer. It's kind of an easter egg for sure.
24.
▲
by
borodi
4y ago
The syntax sugar you are looking for "mutating" the immutable stricts is basically what Accessors.jl does. I don't really see a reason to bring it into Base Julia if it doesn't need special things to work. The compiler
25.
▲
by
borodi
4y ago
Yes and no. There are ways around that for development like https://github.com/BeastyBlacksmith/ProtoStructs.jl . But changing the definition of actual structs isn't very feasable because what happens with the str
26.
▲
by
borodi
4y ago
Julia has an IR called Julia IR that is used before compiling to LLVM IR, it's a bit higher level than LLVM ir
27.
▲
by
borodi
4y ago
Theoretically yes, rust binaries can have C-apis and other code can call them just fine.
28.
▲
by
borodi
4y ago
So you do know :)
29.
▲
by
borodi
4y ago
There is the Julia package https://github.com/JuliaPackaging/BinaryBuilder.jl which creates an environment that fakes being another, but with the correct compilers and SDKs . It's used to build all the binary depe
30.
▲
by
borodi
4y ago
rr is a life changing experience for debugging things. One underrated thing is being able to save and share rr traces. rr + CI makes finding and potentially fixing heisenbugs a lot easier.
More ›