Hacker Newsnew | past | comments | ask | show | jobs | submit | azhenley's commentslogin

> we use 256-bit integers in our hot paths and go up to 564 bits for certain edge cases.

Why 564 bits? That’s 70.5 bytes.


I wonder if it was 5*64 bits that got mangled in editing. If 256 bits is sufficient for most of their code, I could see there being corner cases that need a few more bits but moving to 512 bits would be overkill.

Maybe it's a typo for 512. I'm not even sure how you would achieve 564 in this context.

It's actually not a typo. Our "real" internal code starts with integer bounds on the inputs (say 2^26) and then computes for each subexpression how many bits are actually needed to exactly represent that. That can even lead to fractional bits (like in "a + b + c"). The generated code then rounds up to the next 64 bit multiple.

Several years ago, I did write that every programmer should attempt to write a browser: https://austinhenley.com/blog/morechallengingprojects.html

:)


Edit: HN's auto-resubmit in action, ignore.


What


So, this link is actually 5 days old, if you hover the "2 hours ago" you'll see the date 5 days ago.

HN second-chance pool shenanigans.


Can you point to any documentation which explains how this works?

Genuinely interested.


Dang gave some explanation here: https://news.ycombinator.com/item?id=26998308


The two most popular discussions of this fantastic book:

2020 with 777 points: https://news.ycombinator.com/item?id=22788738

2024 with 607 points: https://news.ycombinator.com/item?id=40950235



A recent post about using Gleam for Advent of Code:

https://news.ycombinator.com/item?id=46255991


Wow, my blog was #20 in 2021! Downhill since :)


Aren't there many programming languages not built for humans? They're built for compilers.



I'm on it!


Thanks to the positive encourage here and in my email, I've decided to go the self-publishing route. I setup a pre-order page and will release each chapter as I go. :)

Happy New Years, HN.


Wouldn't normally nitpick, but just in case it's helpful as an author - compound verbs that end in particles, like "set up", "break down", "log in", "check out", etc., are all two words when used as verbs. They each also have single, compound word versions, but those are the noun forms. So, you set up the page, and now the setup is done.


Thanx so much. Can you point where we can learn all this. These days it's hard to grab all that even when you read books a bit everyday


That I don't know. I don't have an English or linguistics background myself, it's just a common mistake I've noticed.

Ironically though, your reply has another similar one. You read books every day; reading books is an everyday activity for you.


AI chats are wonderful at that.

Write a sentence and ask it it is correct, if it is idiomatic, and to explain rules behind it.


Thank you


See also:

- set up [1] (notice that it's a verb)

- setup [2] (notice that it's a noun)

- Phrasal verbs [3]

Unfortunately, I'm afraid it's mostly stuff one needs to know by heart, but I think it's often that the noun is the one that is all in one word and the verb is the phrasal one (composed of "base" and the particle, in several words). Note: I'm not a native English speaker.

[1] https://en.wiktionary.org/wiki/set_up#English

[2] https://en.wiktionary.org/wiki/setup

[3] https://en.wikipedia.org/wiki/Phrasal_verb


Short: Elements of Style, Strunk and White. Comprehensive: Chicago Manual of Style


Essentially if you’re using it as a noun it’s “setup”, if you’re using it as a verb it’s “set up”.


I think this kind of feedback is a good example of something an LLM is very good at suggesting. I regularly feed my important raw texts to an AI, and ask it not to rewrite it (!), but to give me line by line grammatical, style and tone advice, point out uncommon language, idioms or semantics etc. Also, they are good at fact checking, they can quickly verify each statement against web sources etc.

On the other hand, LLMs are very bad writing partners, they are sycophants and very rarely give substantial criticism, the kind of feedback an editor would give and is mentioned in the article.

This is the substantial service an editor will provide going forward in the AI slop era, where everyone and their grandma will self publish some personal masterpiece: a contact with the real world and setting the bar high, to the point you need to struggle to achieve the required quality. Writing a book, especially finishing a great book, is not supposed to be enjoyable, it's hard, grueling work.


Is it “set up the page” or “set the page up”? Or both?


Either one works. And that's actually a way to help remember the general rule. If you can rephrase it split up like that (ie. 'set it up'), then that's the multi-word, verb form.

Edit: actually, either way works, except when using with a pronoun. So, you can 'set it up', but you can't 'set up it'.


> So, you can 'set it up', but you can't 'set up it'.

You can, however, set up us the bomb.


thankyou allot!


All those reasons you listed were why I never went with a publisher. I'm a big fan of print-on-demand. Good luck!


Thanks for sharing, good luck and Godspeed!


To be frank, after reading your blog post, while I am interested in the topic you're writing on, there's no way I'm putting down a pre-order.

If you can't finish a partial manuscript when you have people reaching out to you and reviewers ready to provide feedback, how confident can I be that you'll actually write when you have a faceless pre-order instead? Or will life just get in the way again?


It was a surprisingly honest blog post, but like you, I can't really see any reasons why self-publishing would work this time.


I wouldn't pre-order (from somebody with no publishing track record) but working with publishers/editors you don't align with seems a major hindrance that now does not exist.


To me it sounds like working with a publisher squeezed every drop of fun from the project for the author and freeing up the project could re-inject some personal excitement, motivation and intention again.


Maybe, but it sure reads like he was dragging his feet long before that.

Considering all the confusion and questions in this comment section, maybe he should have been more open to an editor.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: