Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
cb321
8mo ago
As @SkiFire correctly observes[^1], off-by-1 problems are more fundamental than 0-based or 1-based indices, but the latter still vary enough that some kind of discrimination is needed. For many years (decades?) now, I've been using &qu
32.
▲
by
cb321
8mo ago
I don't use D.. I find Nim helps with even lower ceremony. That said, it's hard for me to understand how "getting into gcc" is failure. The list of such PLangs is very short. People can be very parochial, though. The
33.
▲
by
cb321
8mo ago
This can very clearly be said about C++ as well, which may have started out as C With Classes but became very kitchen sinky. Most things that get used accrete a lot of features over time, though. FWIW, I think "standing out" due
34.
▲
by
cb321
8mo ago
Yeah. I've been doing this for almost 10 years now. It's not APE/cosmopolitan (which also "kinda works" with Nim but has many lowest common denominator platform support issues, e.g. posix_fallocate). However, it
35.
▲
by
cb321
8mo ago
DNA researchers developed a parallel format for gzip they call "bgzip" ( https://learngenomics.dev/docs/genomic-file-formats/compress... ) that makes data seem less trapped behind a decompression perf wa
36.
▲
by
cb321
8mo ago
Besides `ar` as a sibiling observed, you might also be thinking of pixz - https://github.com/vasi/pixz , but really any archive format (cpio, etc.) can, in principle, just put a stake in the ground to have its last fil
37.
▲
by
cb321
8mo ago
One aspect of the question is that "permissions" are mostly regulated at the time of open and user-code should check for failures. This was a driving inspiration for the tiny 27 lines of C virtual machine in https://gi
38.
▲
by
cb321
9mo ago
This description matches my own experience. E.g., I recall having to use my own macro-based syscall() things when the inotify system was first introduced because glibc did not have support for years and then it was years more for slow movi
39.
▲
by
cb321
9mo ago
I am replying here as a kind of "better place to attach". Anyway, to answer grandparent, I basically never had rebuild loops in 19 years.. just emerge -uU world every day or sometimes every week. I have been running the same base
40.
▲
by
cb321
9mo ago
While I was always a sourced-base/personalized distribution personality type, this is also a big part of why I moved to Gentoo in early 2004 (for amd64, not Risc-V / other embedded per your example). While Pentium-IV's very
41.
▲
by
cb321
9mo ago
Popularity is one thing { and probably more people use it than a non-existing new PLang you are only at the design phase of :-) }, but I think you misunderstood the backend idea. Nim has a javascript backend via `nim js` and on that backen
42.
▲
by
cb321
9mo ago
One application of such a feature would be something like a "cligen.c3" (like the Nim https://github.com/c-blake/cligen or its /python/cg.py port or etc.). Mostly it just seems a more complete sign
43.
▲
by
cb321
9mo ago
I see from `test/test_suite/compile_time_introspection/paramsof.c3t` that there is a way to get names & types of function parameters [1]. The language also seems to support default values { e.g. `int foo(int a, int b = 2
44.
▲
by
cb321
9mo ago
You are correct and I apologize for the misimpression. `native-image -jar helloworld.jar helloworld` did take a whopping 17 seconds to compile, what might be the smallest possible project. That does makes me worry for iterations trying to
45.
▲
by
cb321
9mo ago
Time comparisons are (or should be) relative. https://news.ycombinator.com/item?id=46447490 graalvm is literally 500x more overhead than a statically linked dash script. Maybe not an issue for terminal UIs, but the article
46.
▲
by
cb321
9mo ago
Haven't checked graalvm in a long time. So, I got graalvm-jdk-25.0.1+8.1 for x86_64. It's a lot faster than Julia, and maybe 43ms is not slow in "human terms", but it's still pretty slow compared to some other com
47.
▲
by
cb321
10mo ago
I'm not sure this opt-in/out "philosophical razor" is as sharp as one would like it to be. I think "optionality" alone oversimplifies and a person trying to adopt that rule for taxonomy would just have a reall
48.
▲
by
cb321
10mo ago
I think the example was chosen only for familiarity and is otherwise not great. Though it was the familiarity itself that probably helped you to so easily criticize it. So, what do I know? :-) FWIW, the "catenation operator" in
49.
▲
by
cb321
10mo ago
PMunch and summarity both already said this, but because maybe code speaks louder than words (like pictures?)... This works: from strutils as su import nil echo su.split "hi there" (You can put some parens () in there
50.
▲
by
cb321
10mo ago
The only way to really test out a programming language is by trying it out or reading how someone else approached a problem that you're interested in/know about. There are over 2200 nimble packages now. Maybe not an eye-popping n
51.
▲
by
cb321
10mo ago
Araq was probably trying to keep `Fibable` short for the point he was trying to make. So, your qualm might more be with his example than anything else. You could add a `SomeNumber` predicate to the `concept` to address that concern. `Some
52.
▲
by
cb321
10mo ago
The conversation around Nim for the past 20 years has been rather fragmented - IRC channels, Discord channels (dozens, I think), later the Forum, Github issue threads, pull request comment threads, RFCs, etc. Araq has a tendency to defend
53.
▲
by
cb321
10mo ago
In this case, it compiles & runs fine with floats (if you just delete the type constraint "Fibable") because the string "1" can be implicitly converted into float(1) { or 1.0 or 1f64 or float64(1) or 1'f64 or ..
54.
▲
by
cb321
10mo ago
There is no direct argument/guidence that I saw for "when to use them", but masked arrays { https://numpy.org/doc/stable/reference/maskedarray.html } (an alternative to sentinels in array proce
55.
▲
by
cb321
10mo ago
I tried to defend you against a hard to support "most people didn't want this" with a workload (either static or dynamic) assertion. You come back saying you don't need such charitability while simultaneously clarifying
56.
▲
by
cb321
10mo ago
There is also https://en.wikipedia.org/wiki/HumancentiPad (which is almost surely an homage to the movie) which was 2011 and tied in all kinds of tech-aspects like licensing and iPads.
57.
▲
by
cb321
10mo ago
Indeed. One of the main reasons STL defaults to a non-moving hash table is because "deleting in the middle of an iteration" was viewed as an important property. Like it or not (I do not), the entire container part of the origina
58.
▲
by
cb321
10mo ago
For a while now, I've been summarizing the ease with which everything turns into a "Humanity Complete" problem via: "Delegation affords so much, but trust sure is tricky." This has been observed forever in various f
59.
▲
by
cb321
10mo ago
As a slight refinement of your point, C does have storage map based N-D arrays/tensors like Fortran, just with the old column-major/row-major difference and a clunky "multiple [][]" syntax. There was just a restriction
60.
▲
by
cb321
11mo ago
Like Python, R is a 2 (+...) language system. C/Fortran backends are needed for performance as problems scale up. Julia and Nim [1] are dynamic and static approaches (respectively) to 1 language systems. They both have both user-defi
More ›