Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
271.
▲
by
cb321
2y ago
Python was a curiosity/tiny niche for over a decade from the earliest 0.9 releases I used. I was advocating it to thoroughly deaf ears in the mid-90s with rejoinders of "just use Common Lisp". Then several things happened.
272.
▲
by
cb321
2y ago
Good data. Thanks. I got a bit of a speed-up on python-3.12.5 - 0.599 down from 0.76863, but still slower than 2.7 on the same (old) i7-6700k CPU. { EDIT: All versions on both CPUs compiled on gcc-13 -O3, FWIW. } On a different CPU i7-137
273.
▲
by
cb321
2y ago
I got very little speed-up on pypy from being in a function (0.043 vs 0.033), but I got a 1.8X speed-up for py2 vs py3 (0.7686/.4322 = 1.78). (All programs emit 4999874750 as expected.) EDIT: This uses a Nim program https://
274.
▲
by
cb321
2y ago
I think the comparisons with Python are driven by how divisive it is to have leading whitespace be significant (though Haskell also has it without as much divisive discussion). There was some effort in Nim to have some of the standard libr
275.
▲
by
cb321
2y ago
While, as Feynman describes, "Science" absolutely aims to be better, scientists are also human animals and language (or maybe more aptly "imitation") instincts run deep throughout the animal kingdom. There are pros &
276.
▲
by
cb321
2y ago
Some might say this observation/trend/etc. is much older than the 1990s, as perhaps exemplified by Oscar Wilde's The Importance Of Being Earnest in 1895 (where literally all that matters is some one's name being &quo
277.
▲
by
cb321
2y ago
Yes.. Another fine idea, just more work than a 2 character edit. :-)
278.
▲
by
cb321
2y ago
For me `dash` compiles in just a few seconds. If you link to a 1-line problem (here, #define VTABSIZE 39), then why not boost that to 79 or 113, say, re-compile the shell and re-run your benchmark? Might lead to a change in upstream that
279.
▲
by
cb321
2y ago
Unsure how either of my comments could be read as disagreeing with your point - both mention physics/micro-models being stronger than pure stats, but maybe in spite of your "The problem is" phrasing you only meant to amplify
280.
▲
by
cb321
2y ago
While the default is probably minimal metabolic cost, there are people I have seen who are more prone to shift their weight constantly while standing.. Almost a foot-motionless dance who are -- if doing it all day long -- probably burning
281.
▲
by
cb321
2y ago
They would certainly have to add that new data point to their analysis. :-) I expect it moves the estimate down by less than the 100 ms record beat, though. That's how converging to a true minimum tends to work (at least, like I said
282.
▲
by
cb321
2y ago
Statisticians think it can be gotten down to 9.51 seconds ( https://www.sciencedaily.com/releases/2009/08/090806080343.h... ), though, as with most things statistical, knowledge of the underlying sampling pro
283.
▲
by
cb321
2y ago
A perhaps relevant Sabine Hossenfelder video: https://www.youtube.com/watch?v=LKiBlGDfRU8 Although Sabine's video is more about today's academia money/paper mill incentives, she mentions the more etern
284.
▲
by
cb321
2y ago
Personally, I agree, but the Nim lead dev looked into it and declared it "unreasonably hard to implement with unknown effects for template instantiation" https://github.com/nim-lang/RFCs/issues/
285.
▲
by
cb321
2y ago
You might both still be interested in the tiny (EDIT: 27 lines! https://github.com/c-blake/batch/blob/9c7e07670ef1fd0e98687c... ) little "virtual machine interpreter" I linked to. Per-interpreter lo
286.
▲
by
cb321
2y ago
Sounds interesting - kind of like microkernels meet io_uring (in Elevator-pitch-ese).
287.
▲
by
cb321
2y ago
To either of you, whenever you are doing something new from scratch, it can be useful to consider the granularity of provided abstractions & services which khaledh seems to be doing. I see fusion only has like 8 syscalls presently. It
288.
▲
by
cb321
2y ago
Oh, it's a very understandable request. And you are welcome!
289.
▲
by
cb321
2y ago
I beat you by 39 seconds! Hah! :-)
290.
▲
by
cb321
2y ago
I think this may be what you are looking for: https://github.com/nim-lang/Nim/blob/devel/changelog.md
291.
▲
by
cb321
2y ago
Nim & D also have the compile-time function evaluation he mentions for Zig. Nim also has a full macro system wherein macros are written in Nim - just taking & producing ASTs. I've known people to refer to this/Julia macr
292.
▲
by
cb321
2y ago
I think another good example might be extracting function signatures (parameter names & types, default values -- if any) at compile-time for various purposes.
293.
▲
by
cb321
2y ago
Thanks for your code post, but your fused-multiply-add Horner coeffs seem like they are not from the same power series I was discussing / the article was promoting. The effects I mention are pretty clear if you run my code with both `x
294.
▲
by
cb321
2y ago
This might interest you: https://github.com/c-blake/bu/blob/main/doc/cbtm.md Can save & restore both btime & ctime via "underhanded" filesystem debugging utility scripting.
295.
▲
by
cb321
2y ago
The @amelius sibling has nice links to "graphics" choices, but I feel like the overall topic of the original article and this comment thread is more about the interaction of that with "statistical choices" as per my othe
296.
▲
by
cb321
2y ago
People have conflicting goals. On the one hand they long to compress many numbers into one or a few summary statistics. On the other hand, the moment such lusted after summaries mislead in some way they regret the data compression.
297.
▲
by
cb321
2y ago
The article's impl of its own series [1] centers on the octave [2/3, 4/3] but the error is actually more balanced across [1/sqrt(2), sqrt(2)]. (A series expansion of the error probably explains this - some of the expert
298.
▲
by
cb321
2y ago
"Fear is the path to the dark side. Fear leads to anger. Anger leads to hate. Hate leads to suffering." - Yoda, "A Long Time Ago".. ;-)
299.
▲
by
cb321
2y ago
Just to be clear, I never meant to suggest " only a b-tree", simply the option in the stdlib as per zug_zug (who I did not also take it as suggesting "only"). Different data structures for different use cases as always
300.
▲
by
cb321
2y ago
A lot of PLangs have this outside their stdlibs. For example, in Python: https://pypi.org/project/blist/ Some C & Nim variants are elsethread ( https://news.ycombinator.com/item?id=40441832 &a
More ›