Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
331.
▲
by
cb321
3y ago
Using https://github.com/c-blake/batch/blob/master/examples/closes... from the examples/ directory of https://github.com/c-blake/batch , I get: L2:bat/examples$
332.
▲
by
cb321
3y ago
BASIC and Pascal used to be "teaching languages", though Python & JS seem to have displaced them and teaching sure can be hard. This tries to use Nim: https://www.nimprogrammingbook.com/book/nimprogrammin
333.
▲
by
cb321
3y ago
I think many (most?) CPython extensions using the pure C API could be profitably re-done as Cython modules. I once almost did this for NumPy when Python3 compatibility was too slow in coming. I think a PyPyJIT-CythonAOT system would be a
334.
▲
by
cb321
3y ago
There is also generating the whole thing from a function signature (e.g. https://github.com/c-blake/cligen ) since then CLauthors need not learn a new spec language, but then CLauthors must add back in helpful usage me
335.
▲
by
cb321
3y ago
You probably already know, but just in case you don't, you might read about http://docopt.org/ It seems to me a lot of your usage ideas could be refinements of / tooling around docopt-style interfaces.
336.
▲
by
cb321
3y ago
That only holds when 'o' and 'f' are both boolean "flags" taking no arguments. If 'f' is more like --file=x then it takes an argument. More specifically, getopt(3) in POSIX lets programmers very this
337.
▲
by
cb321
3y ago
Not to challenge anything you said, but rather expand upon it.. git just followed a grand tradition of software version control systems in general (sccs/cvs/svn/..): https://lobste.rs/s/dnazns/contex
338.
▲
by
cb321
3y ago
It ultimately depends upon what you mean by "as good". There is no clear single metric. Once you have >1 metric it becomes a subjective "who's priorities?" game of weighting them / projecting them into a s
339.
▲
by
cb321
3y ago
Sorry - I meant my "perhaps" to refer to the distinction you reiterated, but I can see why that may not have been clear. If you feel the (also already mentioned) section on "generalized" exact cover is lacking, hey, it&#
340.
▲
by
cb321
3y ago
It's not called "XCC" (or perhaps just "XC") as he mentioned in his talk, but there is this: https://en.wikipedia.org/wiki/Exact_cover which has a link to a Knuth algo (EDIT: and a section on w
341.
▲
by
cb321
3y ago
The Briggs & Torczon paper focuses on set representation rather than key-value style access, but of course one can get associative access with just a 2nd dense array of satellite data or, equivalently, wider-than integers in the one den
342.
▲
by
cb321
3y ago
Yeppers. The days of waiting a minute or more for emacs to initialize itself are long gone for most. Still marginally slower than nvim or vim for me (on a 2016 vintage i7-6700k on Linux under X11 inside of a sucksless `st` terminal):
343.
▲
by
cb321
3y ago
Bricmont does a good job of discussing entropy, arrow-of-time, and irreversibility, information and probability in a purely classical statistical mechanics setting in https://arxiv.org/abs/chao-dyn/9603009 . Bricm
344.
▲
by
cb321
3y ago
Perhaps the Nim Github Wiki would be more to your liking? https://github.com/nim-lang/Nim/wiki EDIT: In particular, the "Nim for X Programmers" pages seem popular.
345.
▲
by
cb321
3y ago
I think Nim is great for small CLIs. Some examples are over at: https://github.com/c-blake/bu . To quantify "small", using tools themselves in bu/ (and Zsh *): wc -l --total=never **.nim|cols 1|c
346.
▲
by
cb321
3y ago
It is undeniable that, of all these, the most common "first prog.lang (PL)" is Python. So, to the extent a new PL "replaces what you already know" almost everything is a Python replacement. (It's a bit muddy since
347.
▲
by
cb321
3y ago
There may be compensating syntactic factors in the large to English word bitwise & boolean operators in the small -- such as being able to skip parentheses in command-style function call syntax and define your own operators (to bring ba
348.
▲
by
cb321
3y ago
FWIW, the Nim analogue of `static if` would be `when` statements. EDIT: or any of mratsim sibling's fine choices. Nim is Choice and has many uncommon compile-time powers.
349.
▲
by
cb321
3y ago
> kernel developers do not allow third party runtimes in the kernel. Even meager Rust's "panic" runtime is a contentious Much in Linux is contentious :-) which is why the module system is nice. A kernel module for C code
350.
▲
by
cb321
3y ago
A well written and absolutely gripping & interesting tale, also discussed here at the time (including by the blog author) https://news.ycombinator.com/item?id=1174912 and re-posted many times without as much ( https:&#
351.
▲
by
cb321
3y ago
In a word, yes. In more words: You should be able to use Cosmopolitan libc: https://github.com/Yardanico/cosmonim If something does not work for you, Yardanico is super duper helpful in all things Nim. Nim also compile
352.
▲
by
cb321
3y ago
Besides Tiberium's and mratsim's excellent points in siblings about more recent non-tracing automatic memory management with ARC/ORC, Nim has also supported manual memory management (via raw pointers with alloc / alloc0
353.
▲
by
cb321
3y ago
Even longer ago , there was `glimpse`: https://www.linuxjournal.com/article/1164 which is still available. [1] glimpse's index-builds are like 10X slower than `qgrep` mentioned elsethread. `qgrep` also seems to
354.
▲
by
cb321
3y ago
200 lines of Nim [1] seems to run about 9X faster than the 8000 lines of C in fdupes on a little test dir I have. If you need C, I think jdupes [2] is faster as @TacticalCoder points out a couple of times here. In my testing, `dups` is us
355.
▲
by
cb321
3y ago
And don't forget Lawnmower Man in March 1992 [1] (Snow Crash was June 1992). I think the "VR headsets" of the day were popular for a few years before both, driving said particular zeitgeist. As mentioned in a sibling, Willia
356.
▲
by
cb321
3y ago
cligen also allows End-CL-users to adjust colorization of --help output like https://github.com/c-blake/cligen/blob/master/screenshots/di... using something like https://github.com/c
357.
▲
by
cb321
3y ago
Worth reading the entire series, IMO. They are also nicely linked with "next part" at the bottom (and this linking is not unique to that volta/ispc series of blog posts on Matt's blog).
358.
▲
by
cb321
3y ago
Maybe instead of demons with config files that have more and more bespoke syntax, it's better to go all the way to a library that provides the basic loop functionality? Like https://github.com/c-blake/cron or som
359.
▲
by
cb321
3y ago
Did anyone else get a feeling the author had recently read (or is at least a big fan of) Jonathan Swift's _A Modest Proposal_?
360.
▲
by
cb321
3y ago
Some terminals probably scroll sideways, but this `st` program seems to require running to completion. So, ^C does not give you any report at all. While it does RSS not Proportional Set Size (PSS) { arguably parsing /proc/PID
More ›