Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
541.
▲
by
cb321
4y ago
I do not have much personal experience, but SBCL's type inference is supposed to be decent/comparable to the Franz/Allegro/Lisp Works commercial options. I'm not sure if anyone has done "declare-density needed
542.
▲
by
cb321
4y ago
It may be only "little" not "liiiittle" :-), but Nim lets you explicitly bypass the effects system locally for cases like this: {.cast(noSideEffect).}: echo "GOT TO THIS LOGIC with a=", a
543.
▲
by
cb321
4y ago
https://plocate.sesse.net/ is even better
544.
▲
by
cb321
4y ago
I doubt you are, exactly, but I think it's really hard to argue that the terminology, as often used by working programmers, does not confuse. ("Need not" != "does not"!) All that happened here is darthrupert mad
545.
▲
by
cb321
4y ago
See the neighboring subthread: https://news.ycombinator.com/item?id=31438134 (which has details/links to more information and is more explicit than just the 4th footnote at the end of the mentioned twice before peterme
546.
▲
by
cb321
4y ago
>Nim does not have something which gives You are simply incorrect, appear unwilling to research why/appear absolutist rather than curious, and have made clear that what I think is "clarification" or "detail expansion&
547.
▲
by
cb321
4y ago
You can get management and safety with one of Nim's modes, as per the peterme link in my sibling, if you would like to learn more.
548.
▲
by
cb321
4y ago
Terminology in the field can indeed be confusing. In my experience, people do not seem to call reference counted C++ smart pointers "garbage collection" (but sure, one/you might, personally). "Automatic vs manual"
549.
▲
by
cb321
4y ago
While tracing garbage collection is indeed one possible automatic memory management strategy in Nim, the new --mm:arc may be what darthrupert meant. See https://uploads.peterme.net/nimsafe.html Nim is choice. :-) {EDIT:
550.
▲
by
cb321
4y ago
It is definitely more possible in Nim than in Python to use parens () in many (but not all) places to be more like bracy languages (but with parens being the brace..).
551.
▲
by
cb321
4y ago
Cython has long been an interesting alternative here - a gradually typed amalgam of Python & C that lets you write/compile Python extension modules without needing to learn much of the CPython API. You can even use --embed to co
552.
▲
by
cb321
4y ago
Or Nim [1]..kind of an Ada with Lisp macros and more Pythonesque surface syntax. All three are ahead-of-time compiled/less REPL friendly than Julia, though. Taking more than 100 milliseconds to compile can be a deal breaker for some,
553.
▲
by
cb321
4y ago
It handles most cases, but maybe not arbitrary garbage that humans might be able to guess, but I don't think rfc4180 includes all those anyway. c2tsv is UTF8/binary agnostic. It just keys off ASCII commas, newlines, etc. Beat
554.
▲
by
cb321
4y ago
For completeness, just one CPU/machine, but a recent checkout of zsv 2tsv (built with -O3 -march=native) on that same file/same computer seems to take 0.380 sec - almost 2X longer than c2tsv's 0.20 sec (built with -mm:arc -
555.
▲
by
cb321
4y ago
Out of curiosity, I tried these two on that same data & computer as https://news.ycombinator.com/item?id=31356573 , mlr --c2t cat takes 2.96 seconds while xsv cat rows to /dev/null takes 0.434 seconds. So
556.
▲
by
cb321
4y ago
That someone was me. I don't think of "could change at any time Wikipedia" as "as authoritative" as the "document" should be. :-) { EDIT: and I very much agree it is friendlier in almost any thinkable way
557.
▲
by
cb321
4y ago
Not just "regular awk", but "regular most things", like head , tail , grep , etc. The "things" just need to be 8-bit/NUL handling clean and the data could even have binary fields. I mean, if there is
558.
▲
by
cb321
4y ago
When you have "format wars", the best idea is usually to have a converter program change to the easiest to work with format - unless this incurs a space explosion as per some image/video formats. With CSV-like data, bulk co
559.
▲
by
cb321
4y ago
See the "Conventions for lossless conversion to TSV" on the current version of https://en.wikipedia.org/wiki/Tab-separated_values . There are really only 3 chars to escape - the escape char, and 2 delimiters
560.
▲
by
cb321
4y ago
With https://github.com/c-blake/nio/blob/main/utils/catz.nim you can get similar format agnostic decoding/decompression not just in tar but in any pipeline context based on magic numbers, not
561.
▲
by
cb321
4y ago
Since `ps` is featuring prominently here, folks might be interested in https://github.com/c-blake/procs which is a color ps (Linux-only right now). It has a more canonical CLI since it is based upon the Nim CLI gene
562.
▲
by
cb321
4y ago
Besides @nimmer's fine response, there is also https://github.com/SciNim/Datamancer
563.
▲
by
cb321
4y ago
I think if they did remove insensitivity then there would be an immediate cry for "import restyling" of some kind, but I'm not sure that is so hard to do at the same time. Something like import lib {.unstyled.} would make
564.
▲
by
cb321
4y ago
This seems to be a pretty divisive issue within the community. Part of the division is understanding how off-putting other devs really find it vs. just using it as an excuse to not learn more.
565.
▲
by
cb321
4y ago
Nim has a variety of automated memory management strategies (more or less optional depending upon how much the stdlib and other libs matter to you). It has even recently renamed its --gc compile option to --mm to try to reduce confusion.
566.
▲
by
cb321
4y ago
Cython lets you do `with nogil`. That said, often processes with communication are enough to leverage multi-core with no global interpreter lock (GIL). CPython's pickling junk for its multiprocessing library can add a lot of overhead
567.
▲
by
cb321
4y ago
It depends on what "graduate" means (I note your "scare quotes"). For some people, lexical styles matter a lot and it is easier to answer this question with that kind of constraint. While its ecosystem is surely much sm
568.
▲
by
cb321
4y ago
Of possible related interest: https://arxiv.org/abs/chao-dyn/9603009 I think Bricmont is a clear thinker/presenter on these matters and this article actually showed up in a "for humanities people" a
569.
▲
by
cb321
4y ago
Nim has staticRead and staticExec to run external processes. [1] [1] https://stackoverflow.com/questions/55891650/how-to-use-slur...
570.
▲
by
cb321
4y ago
https://uploads.peterme.net/nimsafe.html
More ›