skysight-inc/HackerNews huggingface dataset:
I love writing prototypes as a single file as much as the next guy, but there's almost 5k lines of code in this one file: https://github.com/bigskysoftware/htmx/blob/master/src/htmx....

They're sectioned off, so "event/log support" and "AJAX" and such are grouped by the type of method, but they're not prefixed so there's no way for your editor to help you explore grouped functionality.

Given that the code isn't particularly organized or structured in any way that I could quickly glean (aside from the aforementioned grouping of related functionality, which is only so helpful), I think I'd be put off from wanting to contribute to this codebase.
When constructing an object in C, we may need some permanent sub-objects, and some temporary objects.

If we only need permanent sub-objects, then we set those up gradually, and build an error path in reverse order (with gotos or with the arrow pattern); upon success, the sub-objects' ownership is transferred to the new super-object, and the new super-object is returned, just before the error path is reached. Otherwise, the suffix of the error path that corresponds to the successful prefix of the construction path is executed (rollback). This approach cannot be rewritten with "defer" usefully. Normally you'd defer the rollback step for a sub-object immediately after its successful construction step, but this rollback step (= all rollback steps) will run upon successful exit too. So you need a separate flag for neutering all the deferred actions (all deferred actions will have to check the flag).

If we only need temporaries (and no permanent sub-objects), then (first without defer, again) we build the same code structure (using cascading gotos or the arrow pattern), but upon success, we don't return out of the middle of the function; instead, we store the new object outwards, and fall through to the rollback path. IOW, the rollback steps are used (and needed) for the successfully constructed temporaries regardless of function success or failure. This can be directly expressed with "defer"s. The problem is of course that the actual rollback execution order will not be visible in the source code; the compiler will organize it for you. I dislike that.

If we need both temporaries and permanent sub-objects, then we need the same method as with temporaries, except the rollback steps of the permanent sub-objects need to be restricted to the failure case of the function. This means that with either the cascading gotos or the arrow pattern, some teardown steps will be protected with "if"s, dependent on function return value. Not great, but still quite readable. With defer, you'll get a mix of deferred actions some of which are gated with ifs, and some others of which aren't. I find that terrible.
> How can you have a big city without a large organization to logistically make it work?

Is there a large cohesive logistical operation even present? It seems to me the city is divided into boroughs, precincts and "special offices" all with their own individual mandates and approaches due to the complications inherent in large organizations.

> Especially if it has coherent and well-run transit

Well run? Compared to what?

> such as garbage/sewer/power/water.

The municipality does offer these services but you can arrange to have them handled privately if you want. They still have to follow the law but they're allowed to operate in the cities "territory." If the city was such a logistical juggernaut then why would these options even be necessary or utilized? If the city stopped providing these services and turned it over entirely to private business would the city stop existing?
> How would you fund the open source development of a database?

I think the best way would be something similar to the Linux Foundation. Companies in need of a certain type of database would pool resources to develop and maintain it.

PostgreSQL was a community developed database that was funded in something approaching this way as most of the developers were either students or worked for someone who paid them while they worked on it.

> TiDB is Apache licensed, that should be enough no?

It's good enough to use it with the knowledge that it isn't truly free (libre) because the CLA gives the owning company the right to change that at any time. So you can use it but don't build a business around it or make it a critical part of your infrastructure as they might pull the rug out from under you.
Do those machines operate 24/7? I'm Canadian and get regular (publicly funded) MRIs as part of my healthcare needs and they always happen on time, and close to home. Zero issues. Sometimes you get appointments at weird hours but that's because they run them constantly.

We could definitely use more and our healthcare system could definitely use serious improvements, but the way it's talked about amongst Americans often seems a little divorced from reality.
Not sure, but how I did it half a decade ago was to start from your docking requirements, find a Dell dock that supports the requirements, and work backwards from that (what models does the dock support?).
Hi everyone!
I’m excited to announce PyVisionAI, an evolution of the project formerly known as Content Extractor with Vision LLM. Now available on pip and Poetry, it’s a Python library and CLI tool designed to extract text and images from documents and describe images using Vision Language Models.
Key Features
Dual Functionality: Use as a CLI tool or integrate as a Python library.
File Extraction: Process PDF, DOCX, and PPTX files to extract text and images.
Image Descriptions: Generate descriptions using local models (Ollama's llama3.2-vision) or cloud models (OpenAI GPT-4 Vision).
Markdown Output: Save results in neatly formatted Markdown files.
Quick Start
Install via pip:bashCopy codepip install pyvisionai
Extract content from a file:bashCopy codefile-extract -t pdf -s path/to/file.pdf -o output_dir
Describe an image:bashCopy codedescribe-image -i path/to/image.jpg
Repo & Contribution
GitHub: PyVisionAI.
https://github.com/MDGrey33/pyvisionai
Whether you’re working with complex documents or image-rich data, PyVisionAI simplifies the process. Try it out and share your feedback—I’d love to hear your thoughts!
This version is shorter while still emphasizing CLI and library functionality for both file extraction and image descriptions. Let me know if you’d like to tweak anything further!
Major Cookie Clicker / Upgrade Complete vibes with this with a touch of social critique, love the descent into absolute chaos. Fun game and incredible artwork!
You can inspect element on the achievements to see what their unlock text is.
what is a passing lane?
While I agree with the post's sentiment, its assessment of Apple Intelligence overlooks its incomplete rollout, with most of the meaningful, step-change features (e.g., Siri’s contextual awareness) scheduled for release in 2025 at the earliest.

In my view, Private Cloud Compute and Apple Intelligence, together with the ubiquity of Apple devices, position Apple as a leading candidate to realize the widespread, AI-enabled transformation of personal computing discussed in the post — with tasks requiring less energy and cognitive load than they do today for the general consumer.
It could be that many people just died in between and there's a lot of remaining operational equipment that past smart people built. Costco is massive.
> The NYC death rate is based on a biased sample.

It is not based on a sample. It is all reported Covid deaths divided by the population of NYC. Full set, not a subset.
Driving and parking in NYC is already a luxury, there’s no poor person driving and parking there.
Congestion pricing can work to dissuade individuals from living in the burbs, only if there is controls on real estate to deal with the influx of people moving inward. The other benefit is an increase of mass transit usage, which is a plus?

I personally took a cab from Newark to Laguardia at MIDNIGHT and it took 40 min to cross into Manhattan to get to the Queens-Midtown tunnel. Just a new level of traffic. Was fun going in the MIB tunnel.
Olympic fencing is straight up dumb - they do the equivalent of immediately charging to their deaths with a goofy flexi-"sword".

If you want some real entertainment in that area watch HEMA fencing.
Palpitating welcome to 2025!
I hope so, we can use more cpus
It's absolutely still an ad; ads sometimes include samples, like when they hand out small bites in the supermarket, those might be tasty ads, but they are still ads.
What do you mean you don't have to mess around with window sizes? Matrix profile is highly dependent on the window size.
what's that got to do with congestion pricing?
We have that in canada. And non-drill stabbings at my kindergarteners school
Here's a slightly different way they are analogized to calculators, along with some dissenting views. (Saw it later, remembered this comment.)

https://simonwillison.net/2023/Apr/2/calculator-for-words/
That's the rhetoric but I'm not sure it's the reality. At least not where I live. It's a big country so ymmv. In a neighbourhood with a scam college bringing in lots of students yeah sure maybe some distortions of the market were more noticeable as rental vacancy plunged and rents increased.

In Vancouver housing prices were already going into their exponential curve in 2014 before this government was even elected or immigration numbers were fiddled with. In the last two years while immigration was increased home prices have been flat. You can have a look at BC Assessment as home values are updated every year. The biggest change comes with 2021 due to ultra low interest rates. As interest rates rose home prices stagnated as expected.

Personally I don't see any connection at all between home prices and immigration though I can imagine rental vacancy and rent prices were impacted in some places (particularly smaller town Ontario) due to the reluctance of municpalities and the province to build more homes and the prevalence of exploitative scam colleges).
Railway | Infra (Platform) eng, Infra eng - Data Centers, Full-stack Engineering (Product), Solutions Engineer, and Developer Relations | REMOTE (International) | https://jobs.ashbyhq.com/Railway?utm_source=DayMzWzJ0P

Tired of trying to beat kube into shape? Does writing YAML to ship code fill you with utter dread? Dream of a future where deploying software is simple, and you don't need an army of infrastructure engineers to build that perfect janky bash script™ to make life easy?

We're Railway, and we think infrastructure can be better. So far we've built out a platform loved by hundreds of thousands of users who simply tell us "Give me Postgres", "Deploy this repo", and we make it happen

Fair warning! The problems are complex: home-rolled hypervisors, cut-above container orchestration, over/under/whateverlay networks, virtio device drivers, edge proxies, IAM that doesn't suck, kitchen sinks - we need to build it and we're looking for likeminded individuals who think this stuff is fun.

Four open roles (apply below!):

+Infrastructure Engineer:
-Apply here:(https://jobs.ashbyhq.com/Railway/b8072f95-043f-404d-a313-f0b...)
-Blog post about the team: (https://blog.railway.app/p/team-spotlight-infrastructure-eng...)

+Infra Engineer - Data Centers:
Apply here: (https://jobs.ashbyhq.com/Railway/541836a1-6d3f-47bf-845f-5f4...)
Blog post about the team: https://blog.railway.com/p/data-center-build-part-one

+Solutions Engineer:
-Apply here:(https://jobs.ashbyhq.com/Railway/fe33d49c-3502-4d73-80fc-c2c...)

+Full-stack Engineer (Product):
-Apply here: (https://jobs.ashbyhq.com/Railway/6ddcfe47-6cce-469b-ba6d-4f0...)
-Blog post about the team: (https://blog.railway.app/p/team-spotlight-product-engineerin...)

+Developer Relations:
-Apply here:(https://jobs.ashbyhq.com/Railway/7d42f0e8-15a5-453d-8992-9e8...)

See you soon, and happy shipping.
Or as Shakespeare would have put it:

0-25: Act I
24-50: Act II
50-75: Act III, the final act.
While I do so love a good use of the word "wanker", this seems overly cynical to me, many systems which are tech islands succeed by growing an ecosystem, the console wars come to mind. Or maybe I'm misunderstanding you, certainly open to hearing more about your perspective Can you expand?
I recently bought a Dell laptop and was floored by the amount of bloatware it came packed with. They'll sell you a 16GB laptop and reserve half the memory for their and their partners shitware.

Seriously, companies will do any to copy apple except make a desirable product.
Yeah, Adam Smith, famous libertarian, that didn’t believe the government hard part to play.

People could try actually reading what he wrote for once.
Usually, this is all about memory latency. Until the game devs are aware of this latency issue, games should be ok... but it means you need more control on CPU machine code execution, in other words, you need to ge closer to the bare metal.

100fps is 10ms for a frame (we now know 60pfs is not enough, fps must never drop below 75-80fps, but I would really target 100+ fps)
Gates has posted about books he recommended for as long as I can remember. Maybe look at his past recommendations before judging?
I still use C# and winforms.
No and he has seriously opposed this and takes the 'jokes' seriously, as he should
Cloning doesn't scale like code. Code information wants to be free and can be reproduced easily with mouse clicks, but cloning is a lot of hard work. All the instructions for cloning could be leaked on the internet and you still have to build a lab, hire people that know what they are doing, etc. And who can profit from making a bunch of damn kids in this era?

“Everybody wanna be a bodybuilder, but don't nobody want to lift no heavy ass weight.” -Ronnie Coleman
At some point it will become an outlier or implode.
Image Playground uses a tiny on device model. It certainly isn't DALL-E 3. In no universe are on device models intended to compete with massive cloud models.
You will need to go through archive.is if you want to bypass the paywall and get the full article, not just the summary.
Excellent post. I also hate all of these trends. Unfortunately a lot of them are in fact pushed deliberately as anti-abuse and/or security measures, where in both cases (just like passkeys) they primarily exist to make the company's job easier and not to improve the user experience.

For example in my current job there's a push to follow the trend of splitting username and password entry onto two separate pages. Ostensibly this is to make it easier to deal with SSO because then you can look up on the back end the user's configured authentication type and direct them to oauth flow or passkey challenge or whatever instead of password entry box. But the bonus side effect is that it also provides an additional layer of tracking so that you can monitor mouse movements, keydown behavior etc and use that to feed into a model that can detect scripted attacks then push a captcha in between or block the login flow altogether and send a security alert to the owner of the account etc. This is all in pursuit of protecting the user's account, but at the same time it makes everything more inconvenient and privacy-invading for real life legitimate users who just want to log in.

I suppose you could blame malicious actors for forcing the enshittification, but in many ways I feel like it's a failure of the service providers because they're building technical solutions that make it easier for them to detect abuse rather than thinking about what the users themselves might prefer. It's like all the bureaucracy that still exists nowadays around flying thanks to terror attacks that happened decades ago. The terrorists may be long dead, but their impact is still felt in how they have changed everyone's way of life! I'm not sure that's a win for the good guys.
I happened to be living in London when congestion pricing was brought in and the difference on day 1 in the West End was like night and day. I believe it's never gone back to the pre-congestion pricing levels. I fully expect similar in Manhattan.

The social media response has been particularly interesting. Predictably, there are a lot of non-NYCers who simply object to the slightest inconvenience to driving in any form. These can be ignored.

What's more interesting are how many native (or at least resident) New Yorkers who are against this. They tend to dress up the reasons for this (as people do) because it basically comes down to "I like to drive from Queens/Brooklyn into Manhattan". There's almost no reason for anyone to have to drive into Manhattan. It's almost all pure convenience.

The funniest argument against this is "safety", the idea that the Subway is particularly unsafe. You know what's unsafe? Driving.

Another complaint: drivers are paying for the roads. This is untrue anywhere in the US. Drivers only partially subsidize roads everywhere.

And if we're going to talk about subsidies, how about free street parking... in Manhattan. Each parking space is like $500k-$1M on real estate. In a just world, a street parking pass would cost $500/month.

The second interesting aspect is how long it takes to bring in something like this. In the modern form, it's been on the cards for what? A decade? Longer? Court challenges? A complicit governor blocking implementation? That resistance only ever goes in one direction.

My only complaint is that the MTA should be free. Replace the $20 billion (or whatever it is) in fares with $20 billion in taxes on those earning $100k+ and on airport taxes. Save the cost of ticketing and enforcement. Stop spending $100M on deploying the National Guard (to recover $100k in fares).

Public transit fares (that are going up to $3 this year) are a regressive tax on the people that the city cannot run without.
Canadians do not want this and most don't even find it funny.
Behavioral advertising.
How it's done at the Olympics is dumb, and pales in comparison in entertainment value to say HEMA fencing, where they actually wield the original weapons, rather than running at each other with goofy floppy wand sticks.
>I _have_ actually lost all my electronic devices in a house fire, so this is from experience.

I can't speak to other passkey managers, but both Google and Apple have pretty thorough account recovery flows that work even if you lose 100% of your devices.
TiDB has four main components:

1. SQL front end nodes
2. Distributed shared nothing storage (TiKV)
3. Meta data server (PS)
4. TiFlash column store

1 and 3 are written in Go
2 is written in Rust and uses RocksDB
4 is written in C++

2 & 3 are graduated CNCF projects maintained by PingCAP.

Disclaimer: I work for PingCAP
IMO, if a website has a way of preventing or even detecting the use of devtools, that should be considered a security vulnerability in the browser.
"I accidentally got addicted" is such a wonderful phrase.
The Enron Egg, the first at-home nuclear reactor [video]
Even better:

https://leanrada.com/htmz/
Also in Ontario. I am still very confused how none of this seems to have affected Doug Ford. This was the most mandated, school-closed, shut-things-down jurisdiction in North America at the time. And somehow Trudeau is apparently to blame for it all, and Ford is still... electable?

Meanwhile the feds only had jurisdiction over borders and airports. They acquired the vaccines, but it was the provinces that doled them out and set the policies for what would require them.

At the height of covid Ford even had outdoor ski hills shut down. Crazy times. Some of it made sense, some of it didn't. But I can tell you my neighbours with F Trudeau stickers were very angry about the vaccines, but still somehow are voting for Ford. Confusing.
Sure as shit it fucking was.
> Consistency and clarity is key

For manufacturing, yes, absolutely not for marketing.

"Dell 2024 Super Max Pro Ultra Plus New Premium" is objectively better for confusing customers and tricking them into purchasing products sold at higher price and worse value proposition.
@Oia20 One challenge with form -> email solutions is staying ahead of spam. I've been deep in this space with Kwes Forms [1] and have seen some pretty insane rates of spam usage. If you ever want to chat about some of the techniques I've used for prevention (everything from intelligent rate limiting to now a user scoring service that updates based on data about the user and following actions they take which autobans if they hit a score threshold).

With the self-hosted service, I guess that's up to the hoster but likely something you'll run into on your hosted version.

[1] https://kwesforms.com
I appreciate that this is a popular sentiment in certain media/online circles (i.e. Bluesky) but I don't believe it is at all an accurate statement from a policy standpoint, nor a rhetorical one.
FYI both Google and Apple have an account recovery flow that works even if you lose 100% of your devices.
190 functions at a single level strongly implies that they're not named and organized appropriately.
They are optimized for total cost of ownership, not pure speed. The idea is that they can provide excellent performance for an unbeatable price.
This is so refreshing to read
You're downvoted, but I agree. I found it basically a hodgepodge of 80s references over a basic story with one-dimensional characters (the heroes are Very Good and the bad guy is Very Bad). I would have assumed that it's aimed at young children, if the references weren't forty years before their time.
They told the same exact yarn about Steve back in the day. I think both are probably exaggerated.
I wonder if this was deliberate, to give more points to mobile users.
Isn't a crime without consequences just winning by another name?
Indeed — I am arguing that 99% of normal everyday folks using passkeys also do not need to understand passkeys.
Show HN: Promptact – Learn system prompting by reverse-engineering conversations
Hey everyone,
Built a simple game to help people understand and learn prompting through practice. It's like reverse engineering meets chatbot building - you observe a conversation and try to figure out what system prompt generated it.

How it works:
- You see a conversation between a user and an AI
- Your goal is to write a system prompt that would generate similar AI responses
- Get instant feedback through (embedding) similarity scoring
- Progress through levels that teach different techniques
- No sign-up is required - just visit and start playing

The game is built with Next.js, TypeScript, and uses OpenAI for response generation and similarity scoring. You can try it right now at https://promptact.vercel.app/

I'd love feedback from the community. This project was primarily developed for teaching about LLM to friends from non-AI fields -- Hence the limited number of levels for the time being.

The source code is open and available on GitHub (https://github.com/detextit/promptact). You'll need your own OpenAI API key to run it locally.
Absolutely, though the feds do have a significant impact via the tax code. The last period of time when lots of apartments were built in the 1960s-70s was a period of time when there was oodles of tax giveaways to apartment builders.

Additionally in that period the federal government was deeply involved in funding the development of publicly owned housing and coops. That ended in the late 80s and by the time of the main austerity budget of the Chretien Liberals in '93 the Feds were completely uninvolved in funding social housing.

So yeah a long period of nil social housing funding and few incentives to build housing and no real surprise that the country got to a point where it was severely underbuilding.
There probably isn't a public street in America that could prevent a random assassination.

If the guy got shot visiting relatives in Park City, would you suggest that any contemporary public policy in Utah was bad?
Yes, I am still getting up to speed after a long break for Christmas and New Year!
This is quite an ignorant comment. TiDB routinely handles 100s of TB of data.
Go watch LinkedIn’s presentation on why they choose TiDB as their strategic db going forward.
Interview with TiDB developer explaining some of the architecture of the DB : https://youtu.be/mmzoSkEhYrA?si=5eIppYzqKvOxWDtv
Yes, corrected!