skysight-inc/HackerNews huggingface dataset:
I've actually used this as an interview question for several years (and has been my first/only "interview-GPT" question), as it's a problem I ran into at work, can be solved by someone new to programming, and has lots of headroom and alternates for efficiency, optimization, and alternative implementation discussions.

The use case I ran into was an initial + updated "dictionary of values" use case. Imagine: `{ "foo:bar:baz": 1.23, "bleep:bloop:blah": 4.56, ...etc.. }`.

I wanted to send the first batch as a "full dictionary", and then send updated batches as: `{ "aa": 1.23, "bb": 4.56 }` whereby the client should already be able to reverse: `aa` => `foo:bar:baz`, and `bb`: `bleep:bloop:blah` since they could md5 the original key, and then match that to the "compressed" unique key.

For the interview question, asking "what's the minimum unique prefix length", and exactly in the context of "how short can you abbreviate a git commit" was an excellent, low-friction, easily understandable problem.

I was shocked when the initial GPT-3 nailed the naive implementation, and in retrospect, not-surprised when its superficially-correct "optimized" solution was only superficially correct. ;-) Better than 50% of the interviewees I'd asked this question of.
With the word "specifically" in there, they are mutually exclusive in this situation.
Well, as far as I at least understand it, the argument is that by using JS for this, you are indeed telling the computer what you want, you're just doing it by telling the computer it by telling it exactly how to do it. In contrast, in CSS, you're telling the computer what you want by… telling it what you want, and letting the browser engine worry about the how.

CSS isn't perfect, but it certainly works nicely for declaring layouts most of the time. It's of course alsp easy to get wrong, but doing all of the layout logic manually doesn't seem like a proper solution.
Thank you. I was confused as well.

A name for the inverse I suppose
"DevOps is a meaningful term"
Do you subconsciously see gliders and other patterns in your day to day life? In your dreams?
Have you considered chromeOS for the pc, I’ve had pretty good luck with it as an is for kids, and you can lock a lot down with family controls
> boojum reflector

That absolutely sounds like a codename from one of cstross's Laundry Files novels. (I think "boojum" was actually part of one, but I don't recall which.)

edit: found it, it was from A Colder War, which is a great novellette: https://www.infinityplus.co.uk/stories/colderwar.htm
How much have you?
I got caught up in this myself, I was recently(ish) diagnosed with ADHD and I was struggling with some preconceived notions of what it would be like after seeing a ton of articles, social media posts, etc that seemed to all make ADHD out to be this singular experience that I don't match up with. (Even worse I had preconceived notions of what the medication would be like, which it has been great but it wasn't quite like I was lead to believe)

I have parts of it, and that's part of why I did not even think to get diagnosed until I was in my thirties. It wasn't until I said something to my doctor casually that the conversation came up.

I think these general terms can discourage people from getting help because their experience doesn't line up with headlines like that that imply if you don't have this experience you don't have it.
Public libraries really should stay away from e-anything, in my opinion. No library would purchase anything of the sort under my watch.

Obviously, since patrons check it out, there is demand for it. Well, so what? There is demand for cocaine and porn; should public libraries offer that?

Demand for something doesn't ipso facto oblige a library to provide it.
your mom isn't a tech bro with money to spare and multiple twitter handles. which are historically tesla's main audience.

i also find it hard to believe your mom has never heard of elon musk, the richest man in the world, and who is discussed on like every media outlet ever.

he is not the "face" of the brand, like some athlete on a box of wheaties, he's a chief executive and is actively determining the direction of the company; the cybertruck was his idea.
Their video "The Hustle" [1] is such a pitch perfect shot at a very common person in tech (and in NYC/SF especially).

The "read Marcus Aurelius' Meditations in bed on my Nook - didn't understand shit!" comes back to me almost weekly reading HN comments sometimes.

[1]: https://www.youtube.com/watch?v=_o7qjN3KF8U
I really don't like how disingenuous, propagandistic and patronising Simmons is being in this article. Ending each section saying "all this will be impossible if not done the way I like", which is absolutely not true. There's not one reason why anything that can be done in "display: grid" couldn't be done with "display: masonry".

But I think, and I hope, that people aren't the fools she's taking us for, and can see how absurd her proposition is.

You could basically clone the grid specification, if you want all those features, and that way both can be developed with what works for each. She says doing that means new grid features might take more time to come to masonry. Really? More time than having to deal with new grid features that won't work at all with your version of masonry integrated in grid? You're still having to deal with two layout systems, even if you want to disguise one of them. Except doing it your way you can't select which system gets the features that work with it.

At the end, instead of two layout systems with two complete sets of features, we'll have one single layout system with a bunch of features that sometimes work and sometimes doesn't, depending on a particular value of a particular declaration that you'll have to know about. And that's why people hate CSS.

Seems lazy and an absolute mess to maintain. And it doesn't make sense at an intuitive level, since masonry works similarly to flexbox, not grid; and it doesn't make sense at a logical level either, since a masonry layout is not a grid.

But I guess this is what we'll end up getting, since apparently anything Jen says goes. Like the ridiculous idea of doing "CSS4", which means nothing, does nothing and is nothing, but we're going with it for some reason anyway.
Where would you direct someone for tips on implementing Game of Life?
AI and the Web newsletter [2024-04]: Burn, WebGPU and WASM news, Llama 3, Phi 3
For manufacturing, it might be the only work culture that’s optimal.
Show HN: Fast2build – The #1 Nuxt.js SaaS Startup Boilerplate
Hi folks!
I'm delighted to introduce my new product Fast2build. Launch your SaaS product in hours. The #1 Nuxt.js SaaS Startup Boilerplate.

It has the following features:
1. Free version to use.
2. Many built-in components, config to generate.
3. Quickly online payment with your personal Stripe/Paddle.
4. Complete source code, including front and back, database, etc.

The product has just been launched on ProductHunt ( https://www.producthunt.com/posts/fast2build ), and I hope to receive your vote of support, as well as your feedback from using it. Thanks for your support!

Visit the website: https://fast2build.com
Assuming boredom is not necessarily an inability to determine it, it may be an inability to accept a positive answer, as would be the case with poor self-esteem. Someone could of course both be autistic and have low self-esteem, and they may be related for complex reasons, but they aren't necessarily. This is why just taking random surveys without an expert is not a good way to diagnose.
I would like to see a setup which is going to spawn as much dots as possible, I mean something like a gun but having as little static elements as possible while creating as much gliders as possible.
> In addition, they only spawn during full or new moons – because they need a high tide.

Seems like tides should be dependent solely on moon position, not moon phase.
What do you think about other forms of cellular automata?

I came across excitable media recently and found it fascinating.

Do you have any other examples of cellular automata you found interesting or worth pursuing?
>Is it even realistic to expect US fabs to be competitive?

The United States invented and has historically dominated semiconductors until the last decade or so, so yes.

The problem here is two-fold: Financial misincentives, and the fact anyone who achieves #1 in anything will always fall from grace eventually and often disasterously.

It also doesn't help that the Chinese/Taiwanese are very shrewd people compared to Americans who are... lazy, to say the least. I say that as an American.
WorkOS acquires Warrant (YC S21)
Smooth experience! I loved the details such as the assistant getting a bit annoyed when you go to the vending machine for a drink or “I regret to inform you…” when you try to use the internet terminal on board.
Perhaps Espressif will improve this situation. Seems like their product line is generally decently documented at the diagram-block level at least. Obviously with embedded platforms, "proper" documentation can stretch into the range of 1000+ pages (e.g. what you'd expect to see from ARM), and Espressif doesn't deliver documentation to that level of detail with their ESP32 / ESP8266 offerings.

But despite the lack of super granular detail, I haven't ever noticed their high-level documentation being straight-up misleading like that.
I think it's hard to overstate the issues that stem from a workforce who cannot all speak the same language. In my experience it's an absolute showstopper for creating an effective organisation.

Add language barriers to solving very hard technical problems and you're going to have slow progress.

To be clear I am talking about just about language and not the cultural differences other comments are talking about.
Event[0] is much closer

https://store.steampowered.com/app/470260/Event0/
Yes exactly that! When he came to me with a string of dubious offers, we discussed the idea of strengthening the batna instead of panicking and taking on investor risk. What pain points do we need to tackle first if investment is simply not an option? This got us excited about really digging in to the production process, where we found a bunch of low hanging fruit to improve!
> Apple has shown that their iPhone will outsell any luxury-branded Android phone to rich people because some things are about capability, not a logo

How have they shown this?
Has never happened to me or anyone I know. And if it did, it's easy to prove it wasn't you and charge it back.
ProVerB – SLEBoK
This is not a question about GoL directly but more generally about CA. Do you have a sense for what the probability of a random CA is to be TME? Do you have any idea of how to automate the process, if not in general, then at least for a class of CA?
Moon phase is caused by moon position.
If you think that libraries are totally unnecessary public expenditure, then it really tells more about you than about the libraries.

The same type of revelation of the person, who says that foodstamps are totally unnecessary expenditure.
I think they have the benefit of mystique. I don’t think you’d find their code quality any better than the average. I also think you’d find the same rush to market mania that plagues the rest of the software industry.
Microsoft DRM Hack Could Allow Movie Downloads from Popular Streaming Services
There's been quite a lot of experimentation with 3D versions of Conway's Life -- including rules where you can easily emulate Life on a 2D slice of the 3D plane. Carter Bays did some investigations and published papers back in the 1980's:

https://conwaylife.com/wiki/Three-dimensional_cellular_automaton

There's been a little bit of revived interest lately, when newer versions of Golly ( https://golly.sourceforge.io/ ) started to include at least some support for 3D rules. Other programs have been showing up recently, though some of them are more ways of visualizing the history of a 2-dimensional rule in three dimensions.

There are a couple of big difficulties that seem to prevent 3D rules from getting a lot of attention. It's just plain a lot more computationally intensive to emulate 3D rules. Also it's a lot harder to see what's going on in the middle of an active 3D pattern -- a lot of the detail tends to get hidden.
You make a valid point. Currently, the authentication comparisons are primarily based on MAU pricing, which doesn't account for the different features and target markets of each provider. It's not entirely fair to directly compare Firebase, Auth0, and Clerk, as they cater to different needs.
In the future, I plan to add a system to better document the advantages, trade-offs, and pricing breakdowns of each auth provider, to provide a more comprehensive and accurate comparison.

Regarding the inclusion of Userfront in the authentication pricing comparison, my current focus is on the most established providers. However, I am open to expanding our list in the future. Feel free to submit a pull request; I will certainly consider it and add it when we start including more providers.
you gonna rail against how pans, or shirts, or toilets have been the same for centuries too?

there is a reason things stay the same, esp. when it comes to safety-related controls.
> Marble Madness vibes.

Those are the exact words I head in my head while playing as well. I'd love to see a remake on modern devices.
Lawmakers Are Kicking Warrantless Wiretapping into Overdrive
Reminds me of this article https://archive.is/gXs4u
The starving software artist. I like it! :)
I associate masonry with the old ages, since this is one of the technologies you research in Civ games and back then I think people did have stones in non-standardized shapes and were just trying to fit things together. I'm not native English speaker, so I first heard this term from the games.
It isn't clear which bundle of property rights constitute ownership. For instance there are many many restrictions on distributing and selling things that we are said to own. Some say that means we don't own those things, but I think it's more clear to say that ownership is ambiguous and contingent.
At least you fixed the 'Meat AI' header before submitting this the third time.
I don't understand a mathematical part of your message. Suppose you have 2 watches, does Bayes theorem allows to make a better judgement about time than calculating an average time between 2 devices?
I think it can be common among others as well :)

The reason for why you assume this makes a big difference.

Unfortunately anxiety and depression are also very common comorbidities in autism, so there's that overlap too.

No single question, or even single form, would be enough to tell whether someone is autistic or not.
But don’t you think worse work ethic will prevent the US from ever catching up in the semiconductor industry?
What a nuts system
Pity the Boston US Atty (Carmen Ortiz) and her assistant (Stephen Heymann) who hounded Aaron Swartz to his death didn't do the same.
I'm pretty sure that wasteful library budgets is not a significant factor causing hunger or homelessness.
Marketing makes something intentionally popular.

Accidentally, seems harder. It kinda smells for people to intentionally make it not popular by actively working against fame, or something like that..
I want EKS > Galactus
Or even "MY autism makes travel a challenge". There's a spectrum of autistic traits and not all of them affect travel.
Consent is implicitly implied in public spaces. [https://www.krages.com/phoright.htm]
You are still in the wrong. "Zero libraries" is different from "zero public libraries".
I'm on ubuntu 20/firefox using WASD controls, and the mouse always wants to look down unless I'm already staring straight down.

Great game!
Wolfram's "A New Kind of Science" posited the study of cellular automata as a revolutionary new field of science. Did you agree then? Do you now? If you changed you mind, why?
In my experience, U.S. citizens are not likely to sacrifice their bodies and life to an entity that can cut them off at will. That sort of dedication comes at an extremely high premium in the us.

Honestly, it is just business. The companies need to adapt and stop complaining.
No, not really. It's like, if you go to the store and realize you forgot your wallet, would you say we're talking about a wallet? No, we're talking about a trip to the store.
The towncrier approach is similar to what we do at work. We have the addition that the individual changelog files say their scope (major, minor, or patch), and we use that to automatically compute the next version number.

version.txt
1.0.0
CHANGELOG
# 1.0.0
* Initial release
changelogs/add-foobar-api.md
minor: Add a new API call `foobar`
changelogs/improve-baz-perf.md
patch: Improve the performance of the `baz` API call

In the changelog compilation step it works out that the largest scope is minor, so the version of the next release is bumped from 1.0.0 to 1.1.0, and you end up with:

version.txt
1.1.0
CHANGELOG
# 1.1.0
* Add a new API call `foobar`
* Improve the performance of the `baz` API call

# 1.0.0
* Initial release

It works great, especially for large teams. You don't end up with lots of merge conflicts on the CHANGELOG file. The people writing the change get to describe the scope of the change (and that can be reviewed in the PR), rather than the person doing the release having to guess from the descriptions. Developers never have to worry about whether someone else has already bumped the version number or not.
I've gone through a bunch of these, and had people with formal autism diagnoses go through them, and people who definitely are not autistic go through them, and we compared results. (There were stark differences.)

Anyway, the tests on that site usually have some commentary (before the test itself) that helps explain some situations where you may get hung up on which answer is "correct".

It's worth noting that the "allistics" who cooperated with me on this had no difficulties whatsoever with any of the answers and found the questions more or less absurd and completely unrelatable.

Rather dramatically different experiences of the world, apparently.
If people want to choose where things land they can do that. Therefore I assume we're talking about a scenario where the items are not known in advance - i.e. they come from a database query or similar. Is there no way to SELECT every Nth item when doing a query? Return a count and select where count MOD N = k? Dump those in a column.

This feels like "I want my layout algorithm to be part of the standard." and if you don't think so, see the part where they also want the equivalent of "colspan = 2" for some itmes - possibly with another pattern to define which ones.
Damn, being psychic must be cool. I think your mind may be boggled though.
> What challenges did you face with them and iPhone?

- Difficulty typing on the tiny SE screen
- Can't send text messages from the computer (no Messages on Chromebook)
- Accidentally muting contacts all the time, so missing calls
- Butt dialing all the time
- Not being able to get back to the phone screen to find the speaker button and other basic ui functions were not intuitive
- Spanning multiple ecosystems is a recipe for confusion (Apple photos vs Google photos, for example), and if you have to choose one Google wins (youtube, docs, chromecast, etc, etc).
- Tons of text spam

Going all-in on Apple (iPad instead of Chromebook) would make some of these better, but still worse overall imo. Just look at the iPhone SE next to the basic Pixel A, the SE looks like a tiny antique (the bezel really hurts).
I discovered Langton ants and Turmites a couple of months ago, I guess these are a subset of cellular automata. I was talking with a friend about using them somehow for art somehow (music generation came to mind), is this a topic you might know about and could recommend some resources to get started?
I do, and in fairness I just edited that part in as you made your comment since I realized I neglected to mention it.

Americans can dominate in anything they feel motivated to, the problem is getting motivated.
Show HN: hōki a maintenance tracker for iOS
Hello HN,

When was the last time you swapped your toothbrush? What about your sheets?

Life is full of these mundane tasks that have to be done at semi-regular intervals, but where the exact timing doesn't matter too much.

I used to track these tasks with the built-in reminders app, but it wasn't a good match: the tasks only have two states, and the intervals are computed based on the due date rather than the completion date.

It just didn't feel like the right tool for the job.

I created hōki in my spare time to scratch my own itch, so to say, and I have been using it daily.

Maybe you'll find it useful as well.

It certainly has helped me wean off the all or nothing mentality that I had when doing chores.
I wonder what could be done with a Super Mario Maker style community of people who make obscenely difficult maps. I guess maps where you have to hover the ball by rapidly flipping the phone would be just the start.
Not personally interested in an OS from Meta - the only thing I use from Meta is WhatsApp, and that's just because it is difficult to replace here in central Europe.

I don't get excited about new OSs unless they're FOSS. It sounds like an ideological take, but it's not: When an OS is not FOSS, they either succumb to the wrong incentives and lack of care (Windows) or just become a walled garden (MacOS). From what I've seen from, say, Visual Studio Code (FOSS version), or Chromium, or other such projects, is that a large company open-sourcing the core of their product can only yield positives over the alternative (fully closed) solution.

Fully FOSS would be sick, partially would be useful. Closed and ad-ridden, driven by wrong incentives and run by a company with zero sense for privacy (see their Facebook product) and a love for hype (see their AI and Metaverse products that just about nobody wanted?), I don't see this becoming very popular.
Redirects S3 to /dev/null and points out that data consistency wasn’t their OKR.
There are several reasons, but let's start with the most obvious. The reason why you can insert a random liveUSB into a random x86 laptop and expect to successfully boot up a Linux installer is that every x86 laptop on the planet implements the same standard firmware interfaces (UEFI, ACPI, legacy BIOS) which abstract over hardware differences, at least well enough to boot a machine. By contrast, in the Arm world (including phones), there is no universally adopted firmware interface; so almost every phone model requires its own bespoke OS image.
You may be right that such a war is somewhat or entirely unlikely.

I'm not remotely qualified to predict that. Perhaps I shouldn't have mentioned it.
Last time I worked with them there was an enormous gulf between the 1000+ pages of documentation you'd get from ARM. The ESP32 / ESP8266 documentation was pretty sparse and generally just high-level. I'd love to hear that's changed and that they now offer documentation closer to what you'd expect from "true" professional embedded offerings.

Edit: I took a look at the current ESP32 technical manual[0] as well as an example of Xtensa ISA documentation[1] - it definitely looks way more detailed than what I remember. I'd have a lot more confidence debugging weird behavior today -- it looks like I have enough to determine if there's a bug in my written/compiled code vs. a bug/discrepancy between the silicon vs. documentation.

0: (730 pages) https://www.espressif.com/sites/default/files/documentation/...

1: (702 pages) https://www.cadence.com/content/dam/cadence-www/global/en_US...
AI Search Startup Perplexity Valued at $1B in Funding Round
I feel like I spent this whole proposal waiting for "grid-template-columns:masonry" to be discussed.
I heavily agree!

This take is imho dangerously conflates personal taste and motivation with "should a heavily generalized and clearly purposed layout system be complicated with some magic keyuword options to serve your specific intents?", and misappropriates the assumption that people like and use this form layout as a reason to approve the latter.