Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
75 ms
·
451.
▲
by
cb321
4y ago
Thanks. Just a fraction published as I try to motivate/document/clean up before doing so. I kind of live at the Zsh prompt and tend to fill gaps as I find them & iterate on that. Also, if you think of an idea for more, plea
452.
▲
by
cb321
4y ago
Ah. Thanks for the clarification and apologies for my own misinterpretation. EDIT: FWIW I think in this case the origin is just "opposite of 'defensive'" as in "offense & defense" in sports..red & blue
453.
▲
by
cb321
4y ago
I think it's a pretty nice prog.lang (PL). You may be very happy. Though nothing is perfect, there is much to recommend it. By now I've written over 150 command-line tools with https://github.com/c-blake/cl
454.
▲
by
cb321
4y ago
Not sure what program initially seemed malicious to the makers of anti-virus software, but work like this combined with laziness/unresponsiveness of AV software makers Re: fixing false positives can create trouble for almost any small
455.
▲
by
cb321
4y ago
I think @tgv was A) trying to be funny/sarcastic, and B) using 2 different definitions of "offensive" (of which the dictionary has a few, actually [0])..all to make the point that the meaning of "offensive nim" is s
456.
▲
by
cb321
4y ago
Fair enough. I agree that the README treating autocomplete descriptions as a "but, wait also!" does not make it seem like "the main feature". Projects often evolve faster than documentation. It happens. :) Seems this
457.
▲
by
cb321
4y ago
He already seems to be using Zsh. So, as others have said, just putting things `~/bin/blog/` & etc. would (mostly) do the trick..(maybe with an almost trivial "new" script to create, shebang & chmod). As un
458.
▲
by
cb321
4y ago
You may be interested in https://en.wikipedia.org/wiki/Cython which was a fork of Pyrex which dates back to the very early noughties. It is basically as you describe and even has a way to "bypass the GIL" in
459.
▲
by
cb321
4y ago
Nim has impressive compile-time reflection which with its syntax macro system can (some of the time) get you similar powers to Python's dynamic reflection. E.g., https://github.com/c-blake/cligen instead of `auto
460.
▲
by
cb321
4y ago
You might also see ideas in https://news.ycombinator.com/item?id=34147636
461.
▲
by
cb321
4y ago
If you want to be more DRY (do not repeat yourself) with regard to the variable names you can use the `:` command inside the script (which just expands its arguments) as in : ${hey:='default one'} or even more briefly jus
462.
▲
by
cb321
4y ago
Python languished as an obscure niche language from its inception in the late 80s until at least 2000. I recall discussing it with friends all during the 90s to blank stares and shaking heads. Rapid adoption (of, well, anything) is a netw
463.
▲
by
cb321
4y ago
He did mention "quick compile times" as a draw and macros can slow down compile times/that kind of performance, but sure run-time performance of compiled code should be unimpacted. EDIT: FWIW, compile-times impact mostly just
464.
▲
by
cb321
4y ago
Besides @elcritch's and @pjmlp's excellent points {language "level" is vague & all compilers translate}, C as a backend target has other virtues (though is by no means The Only Way). E.g., TinyC/tcc optimizes f
465.
▲
by
cb321
4y ago
> * Remove every memory option except orc, arc, none, go I feel like memory option removals remain more "planned/maybe revisable/maybe not really agreed upon as the right direction" with only a change of AMM defaults
466.
▲
by
cb321
4y ago
I suspect that is a headliner "syntax" feature for many more serious Nim users. Initialization, like error handling, is one of those things that is easy to mess up.
467.
▲
by
cb321
4y ago
Sorry, I meant the tense simply to refer to that one talk (to not overgeneralize), but I could see how it would lead to your question.
468.
▲
by
cb321
4y ago
I saw a talk once by Siskind who was a very smart fellow. The origin of the name Stalin in this case came from "Static Language { (I)mplementatio(N) }" in deliberate contrast with "Dylan" [1] which was a more dynamic di
469.
▲
by
cb321
4y ago
One can, of course, go much further than simply distinct number types in Nim: https://github.com/ringabout/awesome-nim#science (Unchained seems maybe the most featureful of those units packages.)
470.
▲
by
cb321
4y ago
Well, sure Golang, but to be fair they are not native pure Python in Python's stdlib either... This is more broadly relevant since part of the appeal of Nim is its easy C/C++ interoperability (by generating to these and so only re
471.
▲
by
cb321
4y ago
Note: Just concatenating the bibles keeps your hash map artificially small (EDIT: relative to more organic natural language vocabulary statistics)...which matters because as you correctly note the big deal is if you can fit the histogram in
472.
▲
by
cb321
4y ago
I agree - "IO bandwidth is no longer a BW bottleneck" would be a better title.
473.
▲
by
cb321
4y ago
Indeed - for that particular problem a big cost is the "IO" from main memory "into the CPU cache". Ben is careful to qualify it as "disk" IO, but even this is somewhat vague. (as is "CPU cache" vs L
474.
▲
by
cb321
4y ago
It's all in the Nim programming language, but if you prefer reading code or running diffs then you might get a vague sense of (some) low level nuts & bolts from: https://github.com/c-blake/nimsearch
475.
▲
by
cb321
4y ago
Related: https://buttondown.email/hillelwayne/archive/donald-knuth-wa... As you say, Knuth was asked to demonstrate his literate programming... In some ways this is a direct request for the non-pithy, articulate
476.
▲
by
cb321
4y ago
You sound like you are in just the right demographic to love Nim...The Forum [1] is a good place to get support. https://forum.nim-lang.org/
477.
▲
by
cb321
4y ago
This is the latest for Scheme according to Wikipedia's Offside Rule article [1]: http://srfi.schemers.org/srfi-119/srfi-119.html I have not read this "Wisp" spec lately, but IIRC it has many back
478.
▲
by
cb321
4y ago
Nim has `quote do:` with a kind of ghetto quasiquoting as well as genAST (and other things) to lessen the burden, but it is always simpler to write boring code (and better unless you have a burning need for The Fancy). One way to rephrase o
479.
▲
by
cb321
4y ago
Besides large init files, another way to get slow start ups is large history files. I used to set mine to hundreds of thousands of entries until I realized this was slowing down start up time by a factor of several. :-)
480.
▲
by
cb321
4y ago
A good way to isolate which work is causing slowness is the PS4 variable. This is what is printed in "-x" tracing mode. E.g.: PS4='+$EPOCHREALTIME ' zsh -ilx -c exit 2>/t/zpro You need to have `zm
More ›