skysight-inc/HackerNews huggingface dataset:
Related: do only what is necessary.
This works on so many levels and is my magic trick to make software faster.

It's a pity computers are so fast and have so much memory that people can get away with not caring about minimalism.
How psilocybin resets neural networks
> it is stupid for anyone who knows how git or GitHub API works?

You need to know how git works and GitHub's API. I would say I have a pretty good understanding about how (local) git works internally, but was deeply surprised about GitHub's brute-forceable short commit IDs and the existence of a public log of all reflog activity [1].

When the article said "You might think you’re protected by needing to know the commit hash. You’re not. The hash is discoverable. More on that later." I was not able to deduce what would come later. Meanwhile, data access by hash seemed like a non-issue to me – how would you compute the hash without having the data in the first place? Checking that a certain file exists in a private branch might be an information disclosure, but gi not usually problematic.

And in any case, GitHub has grown so far away from its roots as a simple git hoster that implicit expectations change as well. If I self-host my git repository, my mental model is very close to git internals. If I use GitHub's web interface to click myself a repository with complex access rights, I assume they have concepts in place to thoroughly enforce these access rights. I mean, GitHub organizations are not a git concept.

[1] https://www.gharchive.org/
That's generally exactly how it works for me. I don't think I've done anything special with my configuration apart from enabling two different language keyboards.
Thanks a lot for your website - that was refreshing to see.

While I like the idea of using ARC3 to grade sudoku, I much prefer the approach developed by Andrew C. Stuart in [0], where they rely on the human techniques* needed to solve the sudoku. Indeed, Sudoku are small enough that a reasonable greedy algorithm is enough to solve them quasi instantly on modern hardware.

* techniques to solve the sudoku that can be applied by an human (as opposed to a computer).

[0]: https://www.sudokuwiki.org/Sudoku_Creation_and_Grading.pdf
PHP in the Browser, Powered by WebAssembly
Well, it sounds like a step up from most companies, which is don't optimize for consumers, don't optimize for producers, optimize for shareholders.
Mapping Hacker News to find who knows what in the HN community
It's not you, it is bad. It has been getting better. Developing with Jetpack Compose is a nearly a clone of the experience of building with SwiftUI in Xcode. Android Studio and the emulators are resource pigs still.
Will an entrepreneur please make high quality (great tasting) decaf coffee ubiquitous?

There's a growing anti-drug sentiment that should be a great tailwind.

It's hard for me to find as good tasting a bean as it is with non-decaf. I've tried subscription services or pay huge shipping and product premium from some boutique retailer, the beans are always just ok. Decaf still doesn't get enough priority as the product itself, always an afterthought it feels like.
"The US cultural bias is showing here, as it's assumed that profit is above all else, and a company that forgoes profit to make workers happier must thus be less good."

It's possible companies with lower profits don't survive when they can be outcompeted by the higher earning companies. This sort of competition has killed plenty of companies.
Most definitely something needed in the industry. Can't wait to try it out.
Yeah, I was reading it as the VCS for a moment there.
Website is open source at https://github.com/TN1ck/tn1ck.com. Tech stack is literally just a Next.js website and I write my articles in React. I tried other things before e.g. Jekyll, but I found that dynamic content is really hard to do there, annoyingly hard.

I keep it super simple and don't do "the proper way" of things at times (e.g. the blog index is manually done by me). But that keeps it simple & independent to me. Next.js here is just a detail, I can always move to some other React-based static site generator.

It's hosted at Cloudflare.

The design is heavily inspired by https://turbopuffer.com/, I don't deserve any praise for that.
I'm a little confused by three statements in your readme:

Statement 1: "However, SQL-first migration tools typically lack this separation, leading to potential schema drift. As a result, individual migration files may not accurately reflect the current database state, requiring developers to either read through all migrations or rely on external tools for a complete understanding.

Statement 2: "SchemaFlow bridges this gap for SQL-first, code-first developers. It introduces a clear distinction between schema definitions and migrations, bringing the benefits of ORM-style workflows to those who prefer writing raw SQL."

Statement 3: "SchemaFlow does not automatically generation the migration code for you. Instead, it generates a statement diff comment that you then have to replace with the appropriate statement for the given change."

Together statement 1 & 2 assert that other schema management solutions will lead to devs needing to read through the migration files and that SchemaFlow resolves this issue. But then Statement 3 (and the example in the readme) show that when I make a change, a dev needs to go into migrations file and __manually modify it__ to get it to run. Isn't this exactly what you're trying to avoid?

Why would I use a migration tool that does not write the migration for me? For the example you have it's trivial, but for a real world example this seems like it could be very error prone. What's the value prop for me as a dev here?
(Didn't see this reply and it's an interesting question so excuse some necro)

For my case above, this devs experience with iOS was so minimal he didn't even have it on his resume, he listed himself solely as an Android developer (but like most places we develop for both, so it was useful experience regardless). I have a strong feeling most HN folks would absolutely interview like I do, but the problem is the interview is the last step of an otherwise highly bureaucratic process that is more or less entirely devoid of technically-minded people. Like, even the recruiter that got me my job many years ago, bless em I love where I work, but even that recruiter didn't know shit. They found me because I specialized in a lot of the things my employer was after, and that sounds alright, but that was solely based on the keywords: Swift, Objective-C, etc. A recruiter, for example, won't understand that someone fluent in Objective-C, while they're going to have an adjustment period, could probably competently write C, C#, or C++ as well with some help and training.
Having something with so much rotating mass near your home planet is very convenient to do gravity assists out of your solar system. I would prefer them to be on longer orbits though as these orbit too close for comfort. In a couple decades we'll have enough data to characterise wobbles with longer periods, marking companions orbiting from much more comfortable (to us rock huggers) distances.

Anyone wants to run the numbers of the delta-V's you could get from a neutron star before you are spaghettified?
There are a lot of videos on youtube showing Chinese EV batterys exploding, wields breaking, front ends breaking off. Not saying they are all like that but enough that I'd be wary and trust teslas quality more.
Also the most secure.
Benchmarking AWS Lambda Cold Starts Across JavaScript Runtimes
That is definitely an issue but it's easily worked around. You just have to close Xcode before switching branches.
Here is an article on ownership and one viewpoint that I support on why it's broken https://blog.alexewerlof.com/p/broken-ownership
It Works Perfectly On My ThinkPad X230
I mostly agree with this, but I think there is also a very pragmatic angle here where we need to acknowledge:

1. Advertising is really the only successful economic model of the web at this point and has been for more or less its entire existence (at least in so much as it had economic relevance to begin with).

2. The current state of play is incredibly bad and we now live in a world where shady organizations can and do buy things like location data to track individuals movements over time. This is a capability that has historically been the purview of intelligence agencies and is now available to anyone. Here is a great example of that in action: https://www.404media.co/heritage-foundation-claims-to-use-lo...

3. The ability to strip individual identities from those datasets and make the level of targeting aligned with something very course grained like interests would be a huge win for privacy without killing the economic model of the web.

So in that sense… putting my feelings of Google aside, I can actually see how you can make an entirely good faith argument that this API is trying to align incentives rather than some sneaky trick.
I don't have a statistic for number of bullshit calls in our PSAP. I'd say "a lot" in terms of number of calls from the time I've spent in the dispatch room overhearing calls while working issues. In terms of time spent on the phone it's probably not significant. Most of the bogus calls I've heard end fairly quickly. The telecommunicators are, presumably, trained to get those people off the phone fast.

My sense is the staff here don't involve law enforcement on inappropriate calls unless there's a significant number of repeat calls, the caller is being abusive to the telecommunicator, or the caller confesses to a significant crime during the course of the call. I don't think there are consequences very often but, again, I have no statistics.

There are probably published statistics. I know our PSAP generates stats that get rolled-up into at least regional, if not national, reporting.
Programmers just don't like switching between representations - it's the same reason that "printf debugging" will still be widespread after all of us are gone.
Check this product out - https://swing.tennis. I've used it before and it's quite good
> If you did this to me I would smack you.

Violence in response to a legal, non-violent activity? In most free areas, one could use as much force as necessary to stop the threat and apprehend you for this activity.

Nice ninja:

> edit: removed the part that wasn't really the point at all and seemed to draw a lot of noise from people who love to snoop and aren't used to consequences.

You seem to be the one not used to consequences: hit people in public and you may wind up getting shot in most free areas that care about rule of law. End of story.
>Each of us consumes far more services than we produce.

Speak for yourself, not everyone is in debt all the time, and some never in debt whatsoever even when they have no unusually above-average earnings.

But as part of a vast majority, you are as correct as possible.

Then again capital is just plain Other Peoples' Money, and you can't be a capitalist without capital, no matter how much you wish it was true.

One problem with housing is that real estate has investment potential but for decades it has been too expensive for average people. Debt is crafted to barely make it possible to get into a property, and you may do well if values increase but there is an entire system in place so that others profit more from the same piece of property than you. Vehicles are another high-dollar item where debt is usually incurred, but these almost always depreciate fast. You can draw the line there and be pretty realistic, but there are plenty of people who are at the extreme where everything that costs money is borrowed.

So that's about as close to capitalist as most people get. That's about all of OPM they have at their disposal, and the only thing invested in that has upside potential is the home. For those fortunate enough to have gotten in when it was more within reach. And there can still be a gradual spiral downward which is too slow to notice until it's too late.

Sometimes it helps to do the math and not be afraid to admit how far from capitalist you actually are compared to how capitalist everbody thinks they are.

Disclaimer: this article was DOA & flagged instantly with zero comments, but it seemed OK to me and I vouched and now look at it. Nobody's fault but mine.
When I want to cd I usually don't type cd. I use zoxide which is a modern autojump.

In fish shell you can also just type the directory path and press enter and it will change the working directory.
Tokens are the first form of information being encoded into the model. They're statistically guided, more or less a compression dictionary comparable to a Lempel Ziv setup.

Combinations of tokens get encoded, so if the feature isn't part of the information being carried forward into the network as it models the information in the corpus, the feature isn't modeled well, or at all. The consequence of having many character tokens is that the relevance of individual characters is lost, and you have to explicitly elicit the information. Models know that words have individual characters, but "strawberry" isn't encoded as a sequence of letters, it's encoded as an individual feature of the tokenizer embedding.

Other forms of tokenizing have other tradeoffs. The trend lately is to increase tokenizer dictionary scope, up to 128k in Llama3 from 50k in gpt-3. The more tokens, the more nuanced individual embedding features in that layer can be before downstream modeling.

Tokens inherently constrain how the notion of individual letters are modeled in the context of everything an LLM learns. In a vast majority of cases, the letters don't matter, so the features don't get mapped and carried downstream of the tokenizer.
I think you can already do some of this in iOS with the Shortcuts app
> Website is open source at https://github.com/TN1ck/tn1ck.com.

I had actually looked in your GH and hadn't found this - it 404s when I use this link so the repo may be private
JSDoc is also helpful in dealing with multiple argument option types for a function or constructor, which won't show in TS alone.
According to OECD data Greece workers work the most hours in the EU, and in most years also more than American workers[1]. So by that metric they prioritize happiness less than most others?

[1] https://en.wikipedia.org/wiki/List_of_countries_by_average_a...
You... I don't know if I love you or hate you.

Signed, greybeard gnu/linux admin who hates procs like that!

edit: this is also why lsof, ss, strace, and bpftrace etc., are helpful
I miss skinning so much. I was hugely into the scene of making/releasing skins for any/every program that included the ability (and a bunch that didn’t, thanks to unsigned applications).

To this day I’m the type to customise everything I own and I despise staring at generic looking programs all day. It’s even worse when it’s stuff like Discord that has a very opinionated style that won’t even respect the small amount of customisation my Linux theming gives me.

I feel like a huge reason the indie web died off was OSes and programs limiting user customisation which was a gateway drug for many. MySpace themes would get people learning html/css. Winamp skins got people learning photoshop/graphics. mIRC scripting taught people basic coding. OS customising had all of it. Now you just shut up and use it as they dictate.
100% should be our policy.
Some melanoma cancer cells may punch their way through the body
Nice to see this, and important to stay closer to parity with Deno and Bun.
At least he didn’t order a truckload like Shiv Ramdas’ brother in law:

https://cheezburger.com/12444421/twitter-thread-frustrated-h...
Consumer is tapped out, economy is flashing yellow warning light and the Fed needs to cut now. Lots of spending currently being driven by Boomers running off of assets and paying cash (~40% of consumer spending), but there is only so much of that. Per the Sahm rule and rising unemployment, we are approaching recession territory and the potential for a self reinforcing consumer demand destruction spiral (people lose jobs, pull back spending, more people lose jobs, even more spending gets pulled back, and so forth).

https://www.bloomberg.com/news/articles/2024-07-24/share-of-... | https://archive.today/l6ryx

https://www.philadelphiafed.org/surveys-and-data/2024-q1-lar...

https://www.bloomberg.com/opinion/articles/2024-07-24/the-fe... | https://archive.today/xcJP5

https://fred.stlouisfed.org/series/SAHMREALTIME
I saw this same issue on MacOS... in Safari, so probably just a bug.
Just read the actual law... it says "identifiable individual" in the language -- so men and women (and anyone else!). It also limits the damage-seeking to "intimate" material, but doesn't really explain what intimate means. It also says you can't make the visual depiction, even you put "This is an AI fake" on it.

> DIGITAL FORGERY.—The term ‘digital forgery’ means any intimate visual depiction of an identifiable individual created through the use of software, machine learning, artificial intelligence, or any other computer-generated or technological means, including by adapting, modifying, manipulating, or altering an authentic visual depiction, to appear to a reasonable person to be indistinguishable from an authentic visual depiction of the individual, regardless of whether the visual depiction indicates, through a label or some other form of information published with the visual depiction, that the visual depiction is not authentic.

https://acrobat.adobe.com/id/urn:aaid:sc:us:83d22542-02aa-46...

A law like this would have 100% clashed with the ruling of Hustler Magazine, Inc. v. Falwell (1988).

I don't know who else remembers the 80s... but Tipper Gore and Nancy Reagan were the bad guys. Censorship, no matter who it is supposed to help, will be twisted by those looking to silence their opponents.

Dee Snider's speech before Congress is as relevant now as it was then. "There is no authority who has the right, and necessary insight to make these judgements..."

https://www.youtube.com/watch?v=S0Vyr1TylTE
> Setting a floor on how shitty companies can be to their employees would a boon to everyone and likely make the whole economy more productive simply by reducing depression by a double digit percentage.

Yes, we do that. It's called "labor laws". There are many of them.

It's a question of agency. If you assign responsibility for your well-being to others, then you're always going to be at their mercy. Sure, there's structural whatevers and bigots and all sorts of things. Some people won't hire you because you remind them of the kid that bullied them in 3rd grade. Whatever. It's still up to you take control of your life. Nobody else is going to do it for you. Every time you try and demand that someone else do it for you, you are going to end up disappointed.
Also, to be clear, I like the idea of writing a schema in raw SQL and then generating a migration based on a diff from the last schema. But this seems to be that + manually writing the migration. I could just write the migration instead, right?
The syntax from the perspective of type stripping has been relatively stable for more versions of Typescript than it was unstable. You had to reach all the way back to 1.5 in part because it's been very stable since about 2.x. The last major shift in syntax was probably Conditional Types in 2.8 adding the ternary if operator in type positions. (The type model if you were to try to typecheck rather than just type-strip has changed a lot since 2.x, but syntax has been generally stable. That's where most of Typescript's innovation has been in the type model/type inferencing rather than in syntax.)

It's still just (early in the process) Stage 1, but the majority of Typescript's type syntax, for the purposes of type stripping (not type checking), is attempting to be somewhat standardized: https://github.com/tc39/proposal-type-annotations
No I haven't tried AWS...but thanks for the info. I have an S2 account, but slightly wary of AWS...and I don't think they are really 'free'. Also my PC is big enough, CPU and SSD, to handle all the data I need to process.
Thinking this through as I write it; please forgive if it’s a little disjoint.

I could imagine a scenario where AI companies doing license their API to anyone with a credit card, but to someone willing to sign a contract with indemnification. Maybe then the daughter wouldn’t go directly to some AI website, but might hire a local or online human artist who had such a contract. Maybe she wouldn’t look for “artists who can do AI stuff” but “artists who can add my dad to my picture”. The art is what she’s paying for, not the specific technology used to create it. And the human artist would think “well, I obviously have the daughter’s permission. I can’t ask the dad for his, but that’s a normal thing for a dad to do, and it seems unlikely he’d mind” and accept the commission. Maybe it turns out there are dads who don’t want to be involved, like they disowned their crackhead kid or something. That risk would be part of the human judgment going into the project. Today the woman could ask an AI “can you add a picture of me dancing with my dad, King Charles?” A human artist would say “that ain’t your dad” and reject it.

Maybe all but requiring a human in the loop wouldn’t be a bad idea.
Push less data through wires.

The memory hierarchy is so stark on modern hardware that the 30-year-old adage that "the fastest code is the code you don't run" is maybe less important than, "the fastest code is the code that doesn't spend much time talking to the memory controller."

And it's even worse once we start talking about accessing memory that's on an entirely different computer. Serialization/deserialization, IPC, network calls, and all those other things we do with reckless abandon in modern service-oriented and distributed applications are just unbelievably expensive.

Last year I took a slow heavily parallelized batch job and improved its throughput by 60% by getting rid of both scale-out and multithreading and just taking it all down to a single thread. Everyone expected it to be slower because we were using a small fraction as many CPU cores, but in truth it was faster because the time savings from having fewer memory fences, less data copying, and less network I/O was just that great. And then the performance gains kept coming because, having simplified things to that extent, I was then in a much better position to judiciously re-introduce parallelism in ways ways that weren't so wasteful.