Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
cb321
2y ago
You could probably embed raw ANSI SGR color escape sequences { maybe from $(tput) if your terminal might be weird } inside a TIME_STYLE=+FORMAT to colorize the times. In `lc`, mentioned a bit this thread, you can actually color the age like
242.
▲
by
cb321
2y ago
I notice prior HN comments of yours mention the physical design of the NeXT cube. I cannot say it will make you not hate software, but you still might appreciate that another alternative ls, https://github.com/c-blake/
243.
▲
by
cb321
2y ago
If you run `dircolors --print-database|less` you will see that GNU ls only highlights/colors the path/filenames according to a simplistic scheme where a file can only resolve to one type even though on many terminals today "f
244.
▲
by
cb321
2y ago
https://github.com/c-blake/lc shows all files, including hidden files (starting with dot aka dot files) by default, suppressible in output with -xdot or a shell/internal alias to the same effect. It helps to start
245.
▲
by
cb321
2y ago
Your tone is rather disputatious/critical, but we have literally no dispute here.
246.
▲
by
cb321
2y ago
`lc` mentioned elsethread [1] was always extensible with plugins for formatting and file-typing (but also always supported libmagic-based file-typology). There are other fairly distinctive ideas in `lc`, actually.. the README has a list.
247.
▲
by
cb321
2y ago
lc: https://github.com/c-blake/lc (in Nim).
248.
▲
by
cb321
2y ago
Looking over the Odin docs, it seems to me that a short summary might be: Nim provides almost all the same sorts of things as Odin, but with more Python-y syntax, more meta-programming, automatic memory management with opt-out, and less (no
249.
▲
by
cb321
2y ago
These videos begin dropping almost any minute now..
250.
▲
by
cb321
2y ago
There are reasonable & reasoned attempts to make sense of all this, such as Sunny Auyang's "How is Quantum Field Theory Possible?" ( https://books.google.com/books/about/How_is_Quantum_Field_Th...
251.
▲
by
cb321
2y ago
Language is, of course, an agreed upon convention, but everyone I know who says "2x faster" has seemed to mean "takes half the time". The "x" here is intended to be short for "multiplication" to indi
252.
▲
by
cb321
2y ago
You might also find interesting Nim on embedded material on the back-commentary of elcritch ( https://news.ycombinator.com/user?id=elcritch ). E.g.: https://news.ycombinator.com/item?id=40964296
253.
▲
by
cb321
2y ago
The Nim macro system also has quasi-quotes (whose heritage ultimately goes back to Lisp, I believe, though Quine 1940 probably deserves the ultimate "credit" [1]). E.g.: import std/macros macro check(ex: untyped) =
254.
▲
by
cb321
2y ago
`Boo` was always an interesting language to me, but a bit hard to play with (as some others here have already commented) and now mostly abandonware. If you like its ideas, many of them have been taken further in Nim ( https://ni
255.
▲
by
cb321
2y ago
Also, the W's and the Z.. neutrino oscillations. There is actually a long list. Physics is the poster child science of theory-experiment interplay and this shows up constantly in the philosophy of science and other things resulting i
256.
▲
by
cb321
2y ago
I have found Nim more useful/usable than Python + Cython since about 2014 for my personal use cases and almost always much more efficient on a "per unit of effort basis" than Go. At least if you are willing to write whatever
257.
▲
by
cb321
2y ago
Possibly relevant -- Nim has a compile-time warning for bare exceptions, initially enabled by default [1]. I think Nim-core changed their mind about this being a good idea a few months later: https://github.com/nim-lang
258.
▲
by
cb321
2y ago
I do like it when researchers try to connect the deep ideas within their work to broader more general systems, but caution is warranted to the optimism. This article is the kind of formal analogy that inspired/drove much of the market
259.
▲
by
cb321
2y ago
As clarification, the article linked in the subject is dated 2022 BUT it is actually just "a correction" of the very famous 2005 article. The correction is eentsy-weentsy - just a missing pair of parenthesis if you click through
260.
▲
by
cb321
2y ago
The molecular scale was well estimated (at least for the gaseous phase of matter) by 1865 (25 years earlier not 5 as the incorrect HN title would suggest) https://physics.stackexchange.com/questions/13757/how-was-a
261.
▲
by
cb321
2y ago
It isn't like "scientists" (whatever that means) don't also delegate to equipment or hardware manufacturers or (mathema|statis)ticians or compilers (or grad students, LOL). Sure they calibrate & cross-check, but whi
262.
▲
by
cb321
2y ago
You both probably already know this, but just in case you (or some onlooker) don't, termux lets you run an sshd. So, for those stints > a quarter hour, you may be able to actually "log in" to your phone over wifi from a
263.
▲
by
cb321
2y ago
I do not have any personal experience with it, but I have heard several success stories for Actually Portable Executables & Nim and there is this to try to ease the path for cosmopolitan libc fans: https://github.com/fox
264.
▲
by
cb321
2y ago
https://github.com/c-blake/cligen makes whipping up CLI utilities very easy in Nim with a pretty fancy CL-user experience (colorized, user-tunable --help, Zsh/bash completions, brief long options, spellcheck/
265.
▲
by
cb321
2y ago
For what it's worth, Nim allows much more lexical flexibility than Python. You can very often use parens ()s and optional extra parens are not usually a problem either - the bracket is just not spelled {}. As another example, both co
266.
▲
by
cb321
2y ago
This article could be said to be a discussion of the "start-up business" realization / concretization of generic problems in human societies which are also themselves instances of https://en.wikipedia.org/wiki
267.
▲
by
cb321
2y ago
I'm not sure if it counts as "ironic", but personally I almost always do mean it "jokingly"/non-"seriously". If you read that wiki link ref'd above, it seems few claim to know what it's &quo
268.
▲
by
cb321
2y ago
It may or may not bother people less|more [1], but "post-modern" gets some github love: https://github.com/search?q=%2Fpost-modern&type=repositories... including a command I use hundreds of times per day writt
269.
▲
by
cb321
2y ago
When making small Nim programs for the CLI, https://github.com/c-blake/cligen makes for a pretty simple API (just 1 line of code) that gets you nice CLI syntax, color auto-generated help messages, etc.
270.
▲
by
cb321
2y ago
Julia is a REPL-driven interactive system that was specifically syntactically (to its detriment IMO) targeted at Matlab users while Python for science was on the rise. Julia code does usually run faster than Python stuff without a lot of c
More ›