HNHacker News
TopNewBestAskShowJobs

shirleyquirk

204 karma · joined December 31, 2020

submissionscomments
shirleyquirk··on Apple Rankings
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.
shirleyquirk··on The ancient Finnish predictor data compressor. Smallest compressor ever?
Hey friend, Humans are giving you feedback on your project. If your goal is for people to enjoy your cool thing, maybe listen?
shirleyquirk··on Intel says one of its 13th Gen CPUs will hit 6GHz out of the box
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.

(1)[m^4 kg^2 s^-7 A^-2]

shirleyquirk··on Lively Linear Lisp – 'Look Ma, No Garbage!' (1992) [pdf]
You'd use automatic reference counting, as Swift and Nim do.
shirleyquirk··on Cmacro: Lisp Macros for C
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 as is into the surrounding scope.

Edit: actually, I realize I don't know whether you meant 'macro' in the C sense or the Lisp sense. I was thinking C

shirleyquirk··on Billion-record stolen Chinese database for sale on breach forum
not their job. How about you come up with something catchy?
shirleyquirk··on How safe is Zig?
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)
shirleyquirk··on Senate Bill S6486D Establishes a moratorium on cryptocurrency mining
>literally a rounding error

Schrödinger's Panacea: measure a problem with sufficient inaccuracy and any arbitrary contribution can be disregarded.

shirleyquirk··on Shaped Charges – Sheet of copper going through 1ft of solid steel (2010) [video]
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 better than uranium. An advantage may be found in its ductility, if it leads to greatly improved jet formation relative to its cost.

It seems that sound speed and density are considered more valuable, so tungsten, zirconium, molybdenum.

shirleyquirk··on A guide to getting started with embedded systems
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.
shirleyquirk··on A guide to getting started with embedded systems
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.
shirleyquirk··on Police claims to have fingerprinted computer based on printed document
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)
shirleyquirk··on Exponentially Better Rotations
For me, on Android, Firefox works(enough), Chrome doesn't.
shirleyquirk··on Boycott Numerical Recipes (2007)
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)
shirleyquirk··on Human toxicity from Covid-19 rapid home test kits
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 bone, especially at the pelvis where bone is close to the surface.

I will not link photos, they are indeed horrifying and if you go look for them they are more persuasive than anything I can say

shirleyquirk··on Human toxicity from Covid-19 rapid home test kits
>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...
shirleyquirk··on Human toxicity from Covid-19 rapid home test kits
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:

- She was hospitalised for 8 days, suffered burns to her pelvic /bones/, was disabled for 2 years.

- She offered to settle for the cost of her hospital bill, McD refused.

- McD were keeping the coffee at 190°F

shirleyquirk··on How light is a neutrino? The answer is closer than ever
Why does it vary? Changes in gluon/quark energy due to nucleon-nucleon interactions?
shirleyquirk··on Nim vs Rust Benchmarks
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.
shirleyquirk··on Tinder just permabanned me or the problem with big tech
I think they meant 'bots'?
shirleyquirk··on Nim 1.6.2
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

shirleyquirk··on Nim 1.6.2
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"
shirleyquirk··on Nim 1.6.2
There are definitely slow bits of the Nim stdlib; json parsing for example. String-heavy code is easy to make slow in Nim, too.
shirleyquirk··on Nim 1.6.2
leaving (e.g.)runtime overflow checks turned on in the Nim code would not be a realistic comparison against C
shirleyquirk··on Nim 1.6.2
> 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 just like python

shirleyquirk··on Nim 1.6.2
no, -d:danger turns off runtime bounds/overflow checks, assertions, and debug info, and passes '-O3 -fno-ident' to the C compiler
shirleyquirk··on Nim 1.6.2
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`
shirleyquirk··on Tree Sitter and the Complications of Parsing Languages
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 do find i have to backtrack and count to make sure i've put the right number of kets at the end of a nested expression.

if i used s-expressiony instead of tab-heavy languages more often i'm sure i'd be better at it.

shirleyquirk··on Processing and P5 got newbies into coding
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 way to prototype and visualize an idea.

it makes me tear my hair out for the thing it lacks: a path to a production-worthy version. It encourages bad programming practices for the sake of simplicity (all tabs share a single namespace; global variables everywhere) which all but guarantee that once a sketch has reached a certain level of complexity it's a tangled mess of spaghetti.

Refactoring it at that point is A) challenging, and B) changes the api so much that the poor non-coder who's asked you to fix their broken code hates the new restrictions.

shirleyquirk··on Tree Sitter and the Complications of Parsing Languages
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, but i would say it's a flex to assert that you can tell if (3,(g(f('('),x))) is balanced at a glance.

even if you can, surely you're wasting time and/or focus on an automatable task.

But we all have something we do 'the hard way' because it feels like more effort to relearn the task than its worth, or because we tried the easy way once and were put off by some side-effect.

paren highlighting never comes as a single unit, its always packaged with other 'helpful' tools, some subset of which will always be infuriating to someone.

← PreviousPage 2 of 3Next →