Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sukera
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
61.
▲
by
Sukera
5y ago
According to this[1], Julias threading/task model is in part inspired by Go. I don't know about any detailed analysis on similarities and/or differences though. [1] https://julialang.org/blog/2019/07
62.
▲
by
Sukera
5y ago
Not sure if it's still relevant (article is quite old after all), but does [1] still hold true in regards to /boot on ZFS on linux, even with zfsbootmenu? What kind of issues can I expect? Is there a newer/better knowledgebas
63.
▲
by
Sukera
5y ago
The julia version also does that though
64.
▲
by
Sukera
6y ago
@btime reports the minimum execution time, since all increases are attributable to noise. Use @benchmark to get mean, median and maximum instead.
65.
▲
by
Sukera
6y ago
You probably want to check out PackageCompiler.jl ( https://julialang.github.io/PackageCompiler.jl/dev/ )
66.
▲
by
Sukera
6y ago
What kind of speed do you see now?
67.
▲
by
Sukera
6y ago
Would this integrate with e.g. Measurements.jl?
68.
▲
by
Sukera
6y ago
This is about funding for future work, not payment for achieved bonuses, it seems.
69.
▲
by
Sukera
6y ago
It's also weirdly editorialized, since the original title also says "Julia Computing"
70.
▲
by
Sukera
6y ago
Sounds similar to what stockfish (leading chess computer engine) does. In newer versions, position evaluation comes at least in part from a NN, which lead to an improvement in playing strength. edit: similar in approach, not as a 1:1 mappin
71.
▲
by
Sukera
6y ago
I'm sorry if I'm blunt, but the last year of compiler improvements have been nothing but targeted for this exact purpose? That's half of all spent time since 1.0! The issue tracker is filled to the brim with PRs and issues ab
72.
▲
by
Sukera
6y ago
Yes precisely - it's not the frontend that's doing the lifting here. The interactivity as you describe it depends on if the backend supports it, which not all do. I agree that there's room for improvement here, but I also thi
73.
▲
by
Sukera
6y ago
I'm using `!isinteractive() && main()` as my `if __name__ == '__main__'` equivalent, not sure how that's even worse? It's not equivalent no - include doesn't introduce a namespace and neither does inclu
74.
▲
by
Sukera
6y ago
The downside is that PackageCompiler (or SnoopCompile, for that matter) can only pack into the sysimage what it sees. This is usually done by "recording" which methods get called during a session and putting the compiled native co
75.
▲
by
Sukera
6y ago
If you don't mind me asking, how are you using julia? Are you using modules to wrap your code and functions to structure it, or are you just running one big script in top level scope? Aside from compiler improvements, most caching rela
76.
▲
by
Sukera
6y ago
Note that I didn't suggest replacing structs with NamedTuples entirely - only during prototyping, while you're figuring out what you want your struct to look like. Structs most definitely will be faster.
77.
▲
by
Sukera
6y ago
I'm afraid I don't understand your comment - both Plots.jl as well as Makie.jl (the two most commonly used plotting packages, as far as I know) support all of those things. Makie.jl does so natively, Plots.jl does so if the backen
78.
▲
by
Sukera
6y ago
I know that there are plans to cache even more, but other than that I can basically only recommend to put distinct projects into proper projects (with a module and Project.toml). That will already cache precompiled code for that module, eve
79.
▲
by
Sukera
6y ago
The most important part about the releases since 1.0 is that compile time has been significantly reduced, the article touches on basically all ways how this has been done - may I ask when you've last tried it?
80.
▲
by
Sukera
6y ago
About (2), I've extensively used HTTP.jl and am pretty happy with it. I don't know about exact differences to e.g. requests, but I've found it sufficient for my uses. Regarding (3), there's a daily CI job called "Pk
81.
▲
Julia 1.6: what has changed since Julia 1.0?
(oxinabox.net)
262 points
by
Sukera
6y ago
|
207 comments
82.
▲
by
Sukera
6y ago
Just a minor point - type hints only really help if you put them in struct fields. In function signatures they only limit what can be dispatched to that specific method, there's (almost always) no difference to leaving it untyped since
83.
▲
by
Sukera
6y ago
That's not true, julia is compiled down to assembly like any regular C program would. It's just going through LLVM and most code is compiled interactively when you use the REPL, which is why you might think it's interpreted.
84.
▲
by
Sukera
6y ago
Python is "compiled" to python bytecode, which is interpreted by the python runtime (as in, the python runtime looks up what a function should do, does that thing, then checks the next piece of code). Julia is compiled to first ju
85.
▲
by
Sukera
6y ago
I wouldn't call that cheating, how else would you multithread this? You basically have to chunk it up and try to find a boundary and from what I can tell, they try to find out if they're in a quoted block. If they are, they find t
86.
▲
by
Sukera
6y ago
To each their own, but I usually try to refactor when I hit too many nested loops or branched statements - it's usually a sign of missing some abstraction or trying to be too clever.
87.
▲
by
Sukera
6y ago
Mind elaborating on why you think so?
88.
▲
by
Sukera
6y ago
One of the lecturers working on this is Grant Sanderson, of 3Blue1Brown fame. Great video series so far!
89.
▲
by
Sukera
6y ago
> Oh and web apps of the era were slow. Like, dog slow. However bloated and crappy the reddit app is, the old Slashdot site was slower, even on broadband. Which reddit app are you talking about, the redesign or old.reddit.com? I ask beca
90.
▲
by
Sukera
6y ago
There will be more caching in the future, but until then it sounds like you'd like PackageCompiler.jl ( https://github.com/JuliaLang/PackageCompiler.jl ) to build DiffEq and Plots into your sysimage.
More ›