skysight-inc/HackerNews huggingface dataset:
This may be a tangent but I've encountered this code comment before and been confused; nice to be able to reply to its author! The confusion is that there's no book by Knuth called "An Introduction to Data Structures With Applications" (and Knuth's TAOCP doesn't have a section 5.6; his Chapter 5 on Sorting ends with 5.5 and whatever stuff is in TAOCP about memory allocation is Chapter 2; page 501 would put you in "Answers to Exercises"). Most likely what was intended is the book "An Introduction to Data Structures With Applications" by Jean-Paul Tremblay and Paul G. Sorenson (https://www.amazon.com/dp/0070651574 , ISBN 0070651574, https://books.google.com/books?id=ha4mAAAAMAAJ) which from what I can find online has 7 chapters:

1. Information and its storage representation

2. The representation and manipulation of strings

3. Linear data structures and their storage representation

4. Linear data structures and their linked storage representation

5. Nonlinear data structures

6. Sorting and searching

7. File structures

And so Chapter 5 probably has a 5–6.2 and 5–6.3 that cover such a memory allocation algorithm.

Edit: I found a weird plagiarized/condensed version of the book online, and section 5.6 is indeed called "Memory Allocation; Garbage Collection", so quite likely that the book by Tremblay and Sorenson is what is meant.
You're not wrong, but every solution involves compromises. More broadly, I would argue, though, that almost nobody actually needs queues.

Sure, there are cases were you actually need strict ordering, but they are relatively few, in my opinion, involving things like transaction processing or other areas where the order of operations change the effect of the operations and must be strictly sequential.

Ordering itself brings significant technical challenges. For example: With a queue, you can only have strict ordering as long as you only process one item as a time, with no concurrency. Ordering also complicates handling of failures and retrying, because it means every newer item has to wait until the failed item has been dealt with; if you use things like dead letter queues, order is violated.

In almost all use cases -- anything from image processing to newsletter delivery -- a better system is to have an unordered list of items that anyone can take items out of, in any order. Then you throw as many workers at this system and design it so that there's minimal locking needed to prevent workers from stepping on each other's.

There are queue systems that have a purpose in a stack, specifically pub/sub brokers, which can be used to schedule work along several dimensions. You use the pub/sub system to signal work to be done, but each payload just refers to some state that's stored elsewhere.
That's neat. I love ideas like this that remove small amounts of friction from useful behaviour.
With WASI is more complicated than I thought it would be
What about EPROMs? I mean could those be scaled down with 7nm lithography to be energy efficient incorruptible fast storage?
I bet a bunch of them love the phrase "use the right tool for the job" too. Just shows how hollow/meaningless that phrase can often be
> They mainly package and market existing ideas in a really efficient way

This is completely erroneous. They do often take ideas originating from outside the company, either by acquihires, consuming open source, or simply just using unprotected ideas.

However the amount of resources they pour into refining and integrating those ideas into a platform that can be manufactured at scale and that consumers and developers can absorb is very large.

It’s fair to criticize Apple for not originating core technologies, but to suggest that they don’t invest much in developing them is just inaccurate.
I think I would call that a contradiction rather than a paradox. A conclusion that is a contradiction means that one of your starting assumptions is incorrect. A conclusion that is a paradox means that your intuition about the problem was incorrect.
Have worked at multiple companies that successfully used redis or rabbit with teams of less than five engineers.

It's a little insane that a highly rated thread on HN is telling people to use postgres as their queuing solution. The world is wide, I'm sure that somewhere out there there is a situation where using postgres of a queue makes sense, but in 99% of all cases, this is a terrible idea.

Also, SQS and nsq are simple.
the main thesis of this piece as far as I can tell is that Ivy League schools and similar institutions are harmful in their outsized concentration of wealth, ability to set the cultural narratives, dominate the social elite, etc. all while act hypocritically advancing many "leftist" ideas
You’re sidestepping GP’s point. Does your PC have an equivalent to Apple’s Secure Enclave, for example?
I'm to understand that tricks like this are much less effective against more modern A2A missiles, so you might be right.
he says he doesn't want people who don't contribute

how is this racist?
Interestingly I have a daughter and I really have 0 fear: she'll be raised like a boy as far as we make choices, at best she'll have a meaningful empowering career at worst she'll have a husband and kids and we'll help her if she needs.

I'd be weirdly worried about a boy feeling like crap without a big career or needing our help. I know a daughter would be much less humiliated at the prospect.
Millions? The number of men who died shitting themselves with a government issued piece of iron gripped in their hands and zero choice about being there is probably in the billions not millions. (98 billion dead humans, presumably 49 billion of them men). The lions share of the rest of those billions toiling in fields would no doubt have joined those others in living a life of air conditioned immersive competition/story telling and considered themselves having won at life.
Oh, no! Not "DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWE de li do de li DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee DWEEE deh lee doo dee lee" again...
I would think if I was in this type of position, it would strike me as odd and a very not okay thing to do.
Maybe the immersion in that kind of world creates a kind of indifference or inability to think outside of the context of bureaucratic protocols.
Sagify and Aporia Integration
Microsoft Money
Drank nothing but beer. No solid food. Skeletal by the end. So call it what you will.
Um, I'm not suggesting using Redis. In actual fact I said elsewhere I wouldn't use Redis for queues.

As for triggers, reporting, audit, I'm laughing now because you miss the point. That's another bunch of IO in your monolithic black box, and you're still building it.

Start here: https://www.rabbitmq.com/prometheus.html
If the good bits are part of your cultural DNA, then so are the bad ones.

Applying the talking point of a governmental act of apology to a personal level is a common straw man. Who has ever asked you personally to apologise for the actions of the British empire?

To take your example of young germans today, do they owe anyone an apology? No. But are they sensitive about their place in history? Very much so. Do they "see both sides"?
Look, yes and no: I want to ignore Turing completeness and the tarpit, forget about lambda, and talk about intermediate results. I write excel so as to write out intermediates, so to calculate f(n) = f(n-1)+.. I’d write N lines. If you could just write a function to “skip to the end”, there’d be value in seeing all the values in between, in some sort of debugger view / virtual sheet. If that makes sense.

If I define (square n) and (twice f) to calculate a quartic function, what would I see in a single cell, when I’m not looking at the formula view? That’s what I wonder.
Inside was a link to this awesome retro font site https://int10h.org/oldschool-pc-fonts/
I was thinking this as well. It assumes the other players are naiive to your strategy and will not counter it. If someone were gathering a collection of bonus cards I think this would tip off the other players and awaken the dragons.
Suppose I have ~4 TB of data. If I dump it into Deep Glacier, it'll be ~$50/year (free ingress), if I ever need to retrieve the data, it's like $370.

Normal S3 would be ~$1.1k/yr, or around half of that for the infrequent access tier, both of which are way too expensive.
The issue is not necessarily the complexity of RabbitMQ or Redis. The complexity comes from having to manage another (stateful) process that has to be available at all times.
I not only block images from loading, but I go a step further and default all eMails to plain-text display only.

Which is really fun when a sender uses only HTML eMail, and has nothing at all for the plain-text portion. Those tell me that this is a particularly crappy marketer that is really only going for the low-hanging fruit, much like what Nigerian Princes do in their scams.

But then again, I have a very dim view of marketing eMails anyhow. If I have a need, I’ll research it. Wait until I explicitly reach out; don’t call me, I’ll call you.
Is this just anthropomorphism of an emergent pattern, of the same nature as cell division and specialization? That a pattern resembles that of an ant colony where its members make billions of neurological real-time decisions which reinforce the perceived structure, these growth patterns are set with few active decisions and do not quickly
change even with no active reinforcement.
no - per literally the text of the article, Jack Mallers says, in this article that I linked from the article, that the LN Strike uses USDT for its remittance channel:

https://jimmymow.medium.com/announcing-strike-global-2392b90...
it doesn't work this way. My experiences/watching is that the men at 40 live with their parents or relatives, take care of them some, and stay single for the rest of their lives in a pretty low standard of living. Essentially those men are the new spinsters, and definitely do not have decent jobs or kids.
No, read Jack Mallers from the LN Strike's direct statement that they're using USDT: https://jimmymow.medium.com/announcing-strike-global-2392b90...
It stopped scaling when we put in the PO for a $150k x86-64 box to run it on and finance said WTF.
I wanted a simple to use, easy to deploy tool to send sensitive data to clients. I was often using onetimesecret which is great, but still felt wary of trusting a hosted service for these things. While they have indeed open sourced their code, I wanted an even simpler/easy to deploy version (just php7/apache) that is also e2e encrypted. I hope this could be useful to others.
Well there are millions of ethnic Chinese Muslims who aren't put in concentration camps (there is apparently discrimination).

The Uyghurs are an ethnic minority like the Tibetans with a large population in a distant part of the country and have been seen as a threat for a long time.
Sarvasv,

You should explore this further! Once you are past the basic syntax, I think there are world of possibilities that can be explored.
literally the only one not overrun by shills or cultists
“Production-level” means different things to different groups. Many (most?) groups don’t operate at the scale where they need a specialized queue in a dedicated message broker. Simple queues in a DB will work fine. Even if it isn’t very complex, why not already use the infrastructure you probably already have setup — an RDBMS?

Now, if you’re using a nosql approach for data storage, then you already know your answer.
And almost all stealth measures can be defeated by using multiple sensors.
Amazing that you had service! What provider do you use? Last time I drove around the highlands I had zero data signal
Completely agree. The benighted nations exploited by the British could have done without them introducing the British legal system giving people far more rights than they had ever had before. Could have done without the road and rail systems left behind by the British (including in India where it was the biggest in the world). Could have done without the literacy and educational reform in places they colonized. And unlike any other nation, they passed the Slave Trade Act in 1807 that made slavery illegal in the British Empire. It continued elsewhere of course (as it does today) and the British Navy seized 1,600 slave ships and freed 150,000 Africans between 1808 and 1860. Also interesting that five of the ten richest countries in Africa today are former British Colonies. Perhaps the Ottoman Empire or someother (which might we suggest?) should have triumphed instead.
One approach I've been thinking about in the past (at least as a rough concept) is for the back-end to round both users' location to an "area" (probably city level or similar), then compute the distance between the centroids of those areas. That way moving around your own city wouldn't change the returned distance, nor would the other person's moving around their own city. Even spoofing API requests wouldn't help much, as you'd only be able to triangulate which particular area centroid the distance is being measured to, and that is probably something the user is already disclosing on their profile anyway.

This could even be done in a relatively private way by only reporting the area level location to the server (not that I imagine many services would want to give up valuable raw location data!), as the server wouldn't need anything more granular.

Obviously there's challenges in more rural areas where population and premises density are lower - how big is the "area" in that case, and is the distance reported that meaningful in these situations?
The article hits on my point about dogfighting. I don’t think most US modern planes except the F16 were designed for it. IIRC they weren’t even going to include guns on the F22.

> while the planes own the skies at modern long-range air combat
When I see on an empty white page:

> You need to enable JavaScript to run this app.

I know I have no interest in your project as you have no interest in communicating with me, only funnelling me into your recently launched startup.
That's the point ... others are discriminated against (Muslims, Christians, etc) but what's happening in Xinjiang is specifically targeting an ethnic minority who has separatist inclinations.

Millions of Chinese Muslims are not being put in "reeducation" camps.
With some Haskell knowledge, it is much easier to grasp.
All of the info about how to play risk in the article came naturally to a few friends of mine and me, over many hours of playing the game with each other and crazy bots, which we all manipulated in helping us out, once a player tried to grab a little too much. The bots mostly acted predictably and we abused that to no end. It is observation of long term tactics and how games were won and all that.

However, I needed something more to win games and so I took some time to write myself a risk calculator tool [1] I think I made more educated decisions about risking moves in the game by using the tool. Knowing your chances not only by gut, but also by mathematics can give you that little extra boost :D

[1]: https://notabug.org/ZelphirKaltstahl/guile-risk-calculator
Now you know how it feels.

Go vegan.
`myeval` is more subtle.

It is like eval but reliably escapes and evaluates the arguments as a single
command.

cmd 'hello '\'''\'''\'''\''"simon' 'thanks' 'for' 'lunch'
# Output: 'hello '\'''\'''\'''\''"simon' 'thanks' 'for' 'lunch'

# The fact that myeval seems useless here is testament to its greatness
myeval cmd 'hello '\'''\'''\'''\''"simon' 'thanks' 'for' 'lunch'
# Output: 'hello '\'''\'''\'''\''"simon' 'thanks' 'for' 'lunch'

# eval isn't great though
eval cmd 'hello '\'''\'''\'''\''"simon' 'thanks' 'for' 'lunch'
# Error: zsh: unmatched "
Hm, this makes me think about my personal website, which uses a fancy Javascript fade-in because I like fancy animations (and the site is partly my playground to do what I want). However, I also have a noscript stylesheet to ensure the website is functional without Javascript.

Does anyone know what that means for e.g. flaky mobile browsers?
"Old school dogfighting" is just that - a thing of the past.
The Post-Modern Web
We eat fish all the time and nobody bats an eye.

A whale eats a person and it’s a big deal? Humans and their hubris…
Here's the data:

https://en.wikipedia.org/wiki/List_of_wars_by_death_toll

Maybe 1B total over all of history. The number of humans who have ever lived is estimated at 100B. So, what, 1% have died in war? Back of the envelope.
Does this work on ZeroTier? Most LAN things do.
At $OLDJOB we used to use nfs extensively, and a common desire was to run some command on the system where the files actually resided, after navigating there (with cd in a local terminal).

To that end, we developed a script called "yonder", which let you write "yonder any unix command with awful quoting needs". If the filesystem was local, it just executed the command; if it was remote, it took care of all quoting needs, then executing a command like "ssh hostname yonder - ENCODED_MESS".

(A variant, autoyonder, could be used in any shell script by ". autoyonder", so that any shell script could transparently run "over yonder")

I think that in the end we used the algorithm of:
- target directory is "argv[-1]"
- concatenate all arguments with a space separating
- single-quoting everything, who cares if it's needed
- replacing single quotes with the 4-byte sequence '\''
the quoting method we learned from git. Earlier versions took advantage of how we had an 8-bit clean commandline but only needed to send 7-bit strings: we just set the high bit on everything, then stripped it off. The NUL between argv values becomes 0x80, the space within an argument becomes 0xa0, etc., with no special shell interpretation. Gross but it fit the bill.

I don't have access to the scripts anymore, but it worked really nicely for the time.
> there is no separation in Guix like what you see with Nix and nixpkgs.

What separation is there in Nix? The whole system is just a big derivation the same way as a small package is.
interesting... im in opposite camp. do you really need anything other than key/value store and a data structure? ive used redis exclusively for close to a decade.
I've made a lot of things for myself. Of the things that come to mind:

1. An Alexa Skill that allows me to ask my bookshelf for the position of a book. I've spoken at PyCon India 2019 about this. (https://stonecharioteer.com/2019/10/12/pycon.html)
2. A Discord bot (https://stonecharioteer.com/sarathi.html) to update my blog's TIL page. (https://stonecharioteer.com/til.html)
3. A shell script to connect to the right Wi-Fi at my office (useless now)
4. A script to set/unset proxies on my work laptop so I could download packages from external registries.
5. A script that would collect weather information to correlate with my migraines. This eventually ended up being a correlation is not causation situation.
6. A NAS using a Raspberry Pi 4 so that all TVs at home can stream from my movie/anime collection.

I am in the process of building more things, as a way to learn Rust, and as a way to scratch the programming itch that I have. Do reach out if you want to discuss any of my projects. I will blog more stuff eventually. I use the same handle on Twitter.
economics without politics is useless and pointless. economics is a social and behavioral science. the job of economists is to analyze and synthetize policies.
Ye sorry I was refering to the hotel paradox. Edited.
"Have they switched off JavaScript? - People still do."
Is that really a valid case 2021?
> You need a table with a primary id and a "status" field.

For a queue, you need a table with an insertion order and a status indicator. “Primary id” is not enough because “primary id” may not be ordered (e.g., a UUID primary key is a primary id.)

OTOH, while a DB can do this, therr are plenty of well-tested open source purpose built message queueing solutions, so the swt of scenarios where “roll your own with a DB” isn’t a misuse of effort is limited.
Systematic play is often the first step for beginners to gather experience from multiple similar situations. Nuance comes after that
The set theoretic definition of infinity did not come about in order to make thinking about large numbers easier. You are wrong in your perception on this.
Their research was conducted in 2013, so I do wonder how applicable it is today. For example, as I recall Blackberries didn't support Javascript in most cases, and there were probably still a lot of those in active use as of 2013. Not so much in 2021.
Was this an eenmanszaak ( sole propietor ) or VOF ?
Heritability is not necessarily genetic, which is probably what he was getting at.

Behavioral genetics is fairly controversial for being an entire field which begs the question.

https://www.wichita.edu/academics/fairmount_college_of_liber...

https://blogs.scientificamerican.com/cross-check/my-problem-...
Images of man in mouth start at 1:03.
Kind of funny my last thoughts when leaving the article was I wonder if he also took magic mushrooms and if that influenced his music at all?
Oops, half-D meant pocket dimensions, it's a literal translation of 半位面, half-dimension.
China’s Zhurong rover sends a selfie from Mars
I'm thinking a lot about this while planning a frontend architecture for my new project.

Currently, I'm checking out Cloudflare Workers.

They're compatible with service workers, so they might be a viable fallback solution for people without JS.
Exactly, GP does not sound like someone who has worked on anything with decent scale. Because if you did, you would know that it is a really, really bad idea.
Ask HN: Have you been vaccinated or are you planning to?
I am about to get vaccinated, i have an appointment next week. I am Pro-vaccines but i am unsure about this specific vaccine since it's not tested in years. A vaccine it considered safe of it's been used for over a decade and now this is developed and released within a year. If i get the covid i might get permanent side effects but with the vaccine nobody knows what it will bring to us in the next years. Have you been vaccinated or are you planning to?
The Chinese, in particular, have access to human organs and body parts at rates that are much higher than even opt-out organ donation countries (where organ donation after death is nearly 100% due to the opt-out nature of their system).

This strongly suggests that “organ donation” in China is as-needed and on-demand from political prisoners and ethnic/cultural undesirables.
I feel similar about this, although I have to say, that it disqualifies so many board games, that sometimes I wish, I would enjoy other games more. It is a bit sad. Sometimes friends want to play something and I allow them to convince me, just to not seem like the boring person, who "only wants to play their games".
Drop in the bucket for Amazon. I wish people and article would stop gawking at absolute fine numbers, donation numbers etc and actually put that into a percent relative to Amazon's income, Bezos' networks, etc.