Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cb321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
183 ms
·
721.
▲
by
cb321
6y ago
I do not know enough Zig to be sure, but an oft overlooked wrinkle in custom allocators is the width of pointer types aka labels for the allocated regions. Focus is usually on "packing efficiency" or MT-sharing and such of the al
722.
▲
by
cb321
6y ago
Well, I was replying to AMM optionality, not completeness. Nim has ORC to break cycles - ref ct + cycle checker. I believe Python grew the same thing eventually from similar refcount beginnings. So, completeness worries need not push you
723.
▲
by
cb321
6y ago
Someone just asked almost this question in the Nim Forum [1] (coincidentally, unless that was you!). So, you may want to follow that conversation. (EDIT: It may be more global than you are used to in Zig (or than you need/want), bu
724.
▲
by
cb321
6y ago
It was meant only to supplement the discussion.
725.
▲
by
cb321
6y ago
I find that Nim compiles run as fast or faster than Go compiles and Nim code compiled with optimization tends to runs much faster than Go code.
726.
▲
by
cb321
6y ago
You are probably thinking of ARC which is automatic ( not "atomic") reference counting a la Bacon/Dingle [1] via Nim's --gc:arc/orc. Because some people do not consider any "reference counting" to be &q
727.
▲
by
cb321
6y ago
As abstract focus for large projects not easily summarized, I would say Nim tries to be "richly expressive" out of the box with tools to make it even moreso while Zig is more "intentionally spartan" with tools to make it
728.
▲
by
cb321
6y ago
There is also FriCAS: https://fricas.github.io/
729.
▲
by
cb321
6y ago
Or Nim [1]. :-) It's hard to describe succinctly, but "Pascal meets Ada meets Python meets Lisp-like syntax macros" starts to convey it. Forget operator overloading trying to square peg-round hole whatever the operator set
730.
▲
by
cb321
6y ago
For what it's worth, while what @Camillo says is both true and important, people usually do not mention the trade offs involved or why that decision was attractive at the time. These days (ptr,size) is probably 16 bytes -- longer than
731.
▲
by
cb321
6y ago
Historical trivia: CTAN (Comprehensive TeX Archive Network) pre-dated CPAN (.. Perl ..) by about 1..3 years. [1] https://en.wikipedia.org/wiki/CPAN
732.
▲
by
cb321
6y ago
While C macros are limited, you underestimate their range. You can absolutely create specialized swaps without typeof (not part of the C preprocessor, incidentally), and the CTL which I linked to even has one. You just tell the macro the
733.
▲
by
cb321
6y ago
This seems oriented around just code bases you have seen personally rather than fundamental C limitations and so misleads. To clarify: C can do template-like macros for type specialization (and this is common in some code bases) and easier
734.
▲
by
cb321
6y ago
You are right. Apologies. Seemingly from this [1], quoting such braces was initially recommended. [1] https://www.cs.ait.ac.th/~on/O/oreilly/unix/ksh/appa_02.htm
735.
▲
by
cb321
6y ago
And also the same typo on the more general line just above what @anderskaseorg mentions (i.e. `{ expr }`) which should read `{ expr; }` (or line breaks instead of leading space/ trailing ';', etc. Such quirky syntax.)
736.
▲
by
cb321
6y ago
Yeppers. This can be a kind of subtle footgun.
737.
▲
by
cb321
6y ago
Curly braces will fail in `dash` which may be what your /bin/sh is (or could become).
738.
▲
by
cb321
6y ago
Original article: >The echo command always exists [sic] with 0, so this propagates to exit if the first expression is truthful. (emphasis his) In both bash and dash (and probably most), echo will fail if there is no stdout. E.g.:
739.
▲
by
cb321
6y ago
You can also just get/use exact answers with the `accumulation_tree` package that Python `tdigest` impl uses, though for large windows a B-tree is faster than a red-black ranked/instrumented binary tree. Either tree also scales b
740.
▲
by
cb321
6y ago
These are answers to a standardized test. So, they are (probably) teasing out some tiny kernel of truth in the distribution of (probably context sensitive) human traits (insofar as these traits are related to the questions, but probably mo
741.
▲
by
cb321
6y ago
While the article does mention non-"binarizing" (I prefer "non-discretizing" as the more common parlance) in the sense of treating the 4 dimensions as axes not buckets, the article does not mention context sensitivity
742.
▲
by
cb321
6y ago
>Some people find it helps them understand themselves better. Some people have said the same of astrological signs. (EDIT: As per @simias' comment on confirmation bias. This is why "text blurb profile"-oriented reasoning
743.
▲
by
cb321
6y ago
A simpler way to think about it might be "How would I assign a p-value to the personality type?" Once you have that answer, all your "over-representation" stats should, naturally, trim out (or otherwise down-weight) the
744.
▲
by
cb321
6y ago
Or it could be these tests literally do not even discriminate 99% of the population if the measurement error is near the size of the mode width. See my other comment. https://news.ycombinator.com/item?id=26292915
745.
▲
by
cb321
6y ago
Are all psychometricians INTx's, then? This sounds like exactly the kind of over-conclusion that bothers people about personality testing and its applications. ;-)
746.
▲
by
cb321
6y ago
The profiles seem more propagated by Keirsey Temperament type material (e.g. Please Understand Me). Their existence could be viewed as more of a downside of MB relative to Big 5 because they exaggerate the meaning of the measurement and&#x
747.
▲
by
cb321
6y ago
Many Nim things are works in progress. If passionate & capable people like yourself contribute, the finish line will seem that much closer. :-)
748.
▲
by
cb321
6y ago
Nim is adding proof engine integration [1] { though it may not be for everyone/all circumstances [2] ;-) }. [1] https://nim-lang.github.io/Nim/drnim.html [2] https://blag.cedeela.fr/curry-howard-sc
749.
▲
by
cb321
6y ago
There is NimData [1] and ggplotnim [2] and Arraymancer [3]. Also, neovim works well with the alaviss plugin [4], though it's not quite a full IDE. Most Nim coders use VS. [1] https://github.com/bluenote10/NimData
750.
▲
by
cb321
6y ago
Relevant sections [1] [2] in the Nim Manual might be of interest. Nim has nice type classes and can constrain generics to only apply to one (or a sum type of them, etc.). It also has concepts [3] that are a sort of compile-time duck-typin
More ›