Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shirleyquirk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
31.
▲
by
shirleyquirk
4y ago
They are, I was shocked to discover, delicious and crisp, but you have 30 seconds to eat them after picking before they turn into the horror you describe so eloquently.
32.
▲
by
shirleyquirk
4y ago
Hey friend, Humans are giving you feedback on your project. If your goal is for people to enjoy your cool thing, maybe listen?
33.
▲
by
shirleyquirk
4y ago
In general you can often work out the answers to questions like this by considering units. In this case, we don't need to figure out what Watts / Farads is(1), we can see that Volts^Hz is not going to give us anything well-behaved
34.
▲
by
shirleyquirk
4y ago
You'd use automatic reference counting, as Swift and Nim do.
35.
▲
by
shirleyquirk
4y ago
Oh man I couldn't disagree more. Having used Nim's hygienic templates, I strongly believe the escape hatch should be the other way round. Hygienic by default, tag individual identifiers as being 'dirty' to inject them a
36.
▲
by
shirleyquirk
4y ago
not their job. How about you come up with something catchy?
37.
▲
by
shirleyquirk
4y ago
yes, for tagged unions specifically, (which the linked post refers to for that row) Nim raises an exception at runtime when trying to access the wrong field, (or trying to change the discriminant)
38.
▲
by
shirleyquirk
4y ago
>literally a rounding error Schrödinger's Panacea: measure a problem with sufficient inaccuracy and any arbitrary contribution can be disregarded.
39.
▲
by
shirleyquirk
4y ago
I found https://apps.dtic.mil/sti/citations/ADA278191 which has this to say about gold: >Hypothetical shape charge liner. High density is a benefit but equally low speed of sound indicate s that it may be no be
40.
▲
by
shirleyquirk
4y ago
Oh ok. Counterpoint: allocating a single node if memory is already fragmented will succeed where growing a vector would fail. But I suppose the point of the question is being able to discuss the issues involved.
41.
▲
by
shirleyquirk
4y ago
I'll bite: why shouldn't you use a linked list for an embedded system? As opposed to a contiguous, dynamically allocated data structure, I mean.
42.
▲
by
shirleyquirk
4y ago
https://en.m.wikipedia.org/wiki/Machine_Identification_Code but idk about how many printers do this or whether similar techniques are used for black+white printers (i.e. gray-scale modulation)
43.
▲
by
shirleyquirk
5y ago
For me, on Android, Firefox works(enough), Chrome doesn't.
44.
▲
by
shirleyquirk
5y ago
If you want a random number in [0,1] with a uniform distribution from N random bits, I don't see how you can expect an epsilon of less than 1/(2**N-1)
45.
▲
by
shirleyquirk
5y ago
Sorry, yes, terrible resource. I could be wrong about the depth to which her burns penetrated, I can't find where I initially read that. I offer instead a lesser argument: it is not absurd that a burn penetrate deep enough to affect bo
46.
▲
by
shirleyquirk
5y ago
>In some areas, the burn went as deep as subcutaneous fat, muscle, or bone (photos are not for the faint of heart). https://www.lawphx.com/blog/2017/march/mcdonald-s-hot-coffee...
47.
▲
by
shirleyquirk
5y ago
McD would like this to continue being a cliche example of frivolous litigation, but the opposite is true. https://negrettilaw.com/news/mcdonalds-coffee-lawsuit-facts/ or any other search result will tell you: - Sh
48.
▲
by
shirleyquirk
5y ago
Why does it vary? Changes in gluon/quark energy due to nucleon-nucleon interactions?
49.
▲
by
shirleyquirk
5y ago
https://hookrace.net/blog/nim-binary-size/ gets hello world to parity(17k) with `-d:release --opt:size` and `strip`, and then shows how to get that down to 150 bytes.
50.
▲
by
shirleyquirk
5y ago
I think they meant 'bots'?
51.
▲
by
shirleyquirk
5y ago
zig's IR is llvm, while Nim's IR is C/C++/javascript. C supports more platforms than llvm. zig: no macros plz nim: macros are amazing
52.
▲
by
shirleyquirk
5y ago
it does come across as arrogant. A humbler way to put it would be "Macros cannot change Nim's syntax because they transform the AST after it has already been parsed"
53.
▲
by
shirleyquirk
5y ago
There are definitely slow bits of the Nim stdlib; json parsing for example. String-heavy code is easy to make slow in Nim, too.
54.
▲
by
shirleyquirk
5y ago
leaving (e.g.)runtime overflow checks turned on in the Nim code would not be a realistic comparison against C
55.
▲
by
shirleyquirk
5y ago
> everything is imported globally `from package import *` yes, that is the default, but it is also possible to `from package import nil` which gives you python's `import package` behaviour or `from package import symbol` which is ju
56.
▲
by
shirleyquirk
5y ago
no, -d:danger turns off runtime bounds/overflow checks, assertions, and debug info, and passes '-O3 -fno-ident' to the C compiler
57.
▲
by
shirleyquirk
5y ago
which benchmarks? I play the language benchmark game sometimes and I can always get within 10% of the fastest contender. Beating the fastest contender,though, is rarely possible without using the unsafe subset of Nim, hence `-d:danger`
58.
▲
by
shirleyquirk
5y ago
you're probably right, difficulties when writing are mainly due to tools 'helpfully' adding a ket as soon as i type a bra. maybe i just dont have that stack well enough built in my head--if im editing in a plugin-free vim, i
59.
▲
by
shirleyquirk
5y ago
helping others with their processing code is what started me on the road to being a professional coder, and the article captures perfectly what it does exceptionally right. it's the glue-gun of programming environments--a super fast wa
60.
▲
by
shirleyquirk
5y ago
parentheses matching is a surprisingly non-trivial problem. (i.e. simple counting of opening and closing parens isn't sufficient, given that quoted parens shouldn't be counted) For humans, ignoring quoted parens is maybe easier,
More ›