skysight-inc/HackerNews huggingface dataset:
When I thought about errors/exceptions, I basically came to the same conclusion. To reiterate or add to tfa: standard formulations, expected vs. happened, reasonable context visible in logs, error trees, automatic http/etc codes, tidy client messages in prod, reasonable distinction between: unexpected, semi-normal, programming error, likely fatal.

Not sure why most (all?) programming languages have such poor support for errors. Coding may feel like 2024, but error handling like 1980. Anyone with 2-5 years of any programming experience (in where errors do happen and they choose to handle them) will come to similar ideas.

Also the fact that try {} and catch/finally {} are always three different scopes is just idiotic. It should be try {catch{} finally{}}, what in the cargo cult that {}{}{} is? Everyone copies it blindly from grammar to grammar.
https://archive.ph/vuniP
Hmm, spending that much on seeing the stars vs. augmented reality... I might lean toward the stars
Show HN: Kinekt: a typescript-first web framework for building REST Apis
I created a web framework called kinekt and would like to introduce it to the community. Kinekt is a TypeScript-first, high-performance web framework built on web standards. It has the following features which set it apart from other frameworks in the javascript realm:

- It is 100% type safe. It supports the use of zod schemas to declare endpoints

- It has great DX. It auto-infers a client function for every endpoint you declare, making it extremely useful for developing full-stack web apps which are completely written in TypeScript

- It is highly modular. The middleware engine is unlike most other existing implementations and follows a functional-style paradigm

It is still in early development stages. Feedback is highly appreciated!
Sapporo/Hokkaido is traditionally where many people in Japan flee from various of life’s foibles and circumstances, so it’s a wonderful city with many colorful characters and great food.
Biodegradable aerogel: Airy cellulose from a 3D printer
Sometimes it's just better to rarely intervene. Yes the issue of being in control of your story is there.

But replying makes the story last longer.

And there's the saying, it's never confirmed until it's denied.

In the end, they did respond.
ScholarlyArticle: "Additive Manufacturing of Nanocellulose Aerogels with Structure-Oriented Thermal, Mechanical, and Biological Properties" (2024) https://onlinelibrary.wiley.com/doi/10.1002/advs.202307921
Great that Apple Pay is growing a lot right now. Every other e-commerce website has it.

Better UX than Klarna and no scummy dark patterns to add "late fees".
The fact that this code also has gorm in it in one of the examples is neither supportive of the proposal’s fit for the language, nor really surprising.
If it carries the "machine gun" ability with it, it's like ... The Enchanted Seer of Automatic Firing.

It turns a 'plain gun' into a machine gun, and there are almost no other ways to do that. So it seems like calling it "a machine gun" is reasonable from linguistic perspective. #wittgenstein
There's a huge number of them https://openapi.tools/#sdk

Including the semi official tools https://github.com/OpenAPITools/openapi-generator

Now if you want multi language generation and especially high quality you may have to spend a lot of time evaluating different choices. I decided that the official java client didn't generate very nice python code and went with https://github.com/openapi-generators/openapi-python-client even though it's a small personal project with a primary developer+random contributions from users. It just seemed nicer to use for python. Finding which generator to use especially for JavaScript seems difficult
Thinking about how the Moon, a body over 380,000 kilometers away, can perfectly block the Sun (something 400 times larger than itself) because of their relative distances is just mind-blowing for me
They responded
Earthshine is such a cool phenomenon to point out
Exactly. Adding punitive governance hurdles hinders the small and/or solo.

Those that do whist not seeking financial gain are impacted the most.

Regulatory capture. https://en.wikipedia.org/wiki/Regulatory_capture
That's the official tool and has support for a lot of languages(probably the most). Granted last time I checked the generated python code wasn't great. Can't speak for other languages
This feels like the real story. Why are European headlights deemed unacceptable in the US?
Was going to ignore this comment until the last 2 sentences. I rarely come across sites / articles that do this good of a job at explaining something I think calling it a "show off" and saying the author is an "absolute no-no" is a bit rude and I don't agree with it either. If anything I appreciate the code as it is, it's very readable at least to me.
Very interesting take. Do you think they should be restarted because big-box shops aren’t doing a good job? Too expensive? Or due to macroeconomic effects?
You've just described basically everything a dev needs to know to implement HTTP APIs that report status codes properly, yet some people still seem to think it's oh so complicated. What has gone wrong?
This is an interesting investigation, but I'm not convinced that its conclusion adds up. What difference does it make how rapidly the US can manufacture howitzer shells when its war strategy does not depend on them? The Russia-Ukraine war hinges on artillery because neither side has air superiority, but the US - which operates the first, second, fourth, and seventh largest air forces in the world, equipped with the best hardware anyone knows how to build - can reasonably expect air supremacy in any conflict. When would they ever be limited by artillery? Who would they be fighting - aliens?
Discussion about the outage (105 points, 3 days ago, 69 comments) https://news.ycombinator.com/item?id=42421824
OP having to consult a lawyer IS the problem...
> 1240MHz to 1300MHz-- wide enough for 3 wifi channels

Wifi isn't necessarily a minimum of 20MHz. Wifi HaLow goes as low as 1 MHz.
Databricks secures $62B valuation in AI-focused funding round
Aren't the statistics on child sexual abuse pretty dire?

They certainly don't line up with 99.999% of the population of earth being unaffected.
I wasn't referring to just LLMs, but AI assistants in general, regardless if the medium is text, audio or video. Ad placement will certainly also be part of utilitarian generators as we know them today, but the real value of assistants is that they will be personal, and a major part of our lives. This means that the trust will be much higher, and advertisers will certainly want to exploit this.
One example of a 500 error is a null pointer error. Was it a bad request or a logic error? One is your problem the other is not. Just returning a 400 hides that issue. Validating the payload before processing it simplifies the issue for everyone involved.

A 500 error should be your problem with a stack trace in the log. A 400 error should provide enough description to tell the user it's theirs and how to fix it.

Just marking recoding a 500 to a 400 because of a null pointer error would get noticed on a code review and marked up on a code review.
It’s an inertia issue. I already have iMessage, FB Messenger, WhatsApp, and Signal as “primary” messaging apps, plus Instagram and LinkedIn and Teams as secondary— my tolerance would be basically zero for installing something else to connect with a specific person or friend group.
And most languages are lacking this useful error language. You can’t speak if you have no language, so having it must be a good thing.

The only questionable thing here is that this framework is not a part of the main language still, which means near zero adoption. But that train has sailed.
AGI Futures vignettes of many worlds
That's not amazing code but that's not that bad. In the grand scheme of things, that's not code debt that would ever seriously make my life any harder.
I don't know about other password managers, but 1Password can track this for you automatically.
Definitely not arguing with you! Though I have a soft spot for analog tech in this area. I think AR might still have a very bright future, especially if you're learning about the night sky. I've spent many hours scanning the sky with an app I found that had an AR feature that allows you to point your camera at the sky and get an overlay on everything (including sattelites!).
If your idea is great, you will get buy in.

Develop your idea as far as you can by yourself before telling anyone about it and then talk to as many people as possible to go the next steps.

Don't take the money from your family - they unrealistically believe in you and cannot assess your idea independently.
Wow, this is a beautiful concept and execution! For me it’s a piece of art that challenges our relationship with materials in a way
I wonder if this is what Doggerland was like too? Because they found evidence of occupation, and people keep finding submerged structures which look like fish stock pens, things you make when somewhere is above sealevel "mostly" or in the strand.

I wonder if there are artifacts deep in Bering St ooze?
> there's really no benefit to using OAuth over an email sign up

Except for the really big one, which is strong MFA provided by the identity provider even when the site doesn't support it natively.
Small discussions so far

(6 points, 15 hours ago, 3 comments) https://news.ycombinator.com/item?id=42442069

(3 points, 13 hours ago, 2 comments) https://news.ycombinator.com/item?id=42443144
What we don’t understand yet is what that means. We have never had such a thing before and it’s not clear what the patterns are that will make the best use of its known attributes with the least exposure to downsides — whether those be related to the tools, the end users, or the business stakeholders, or any other parties. Volumes more nuance to understand, and we’re just getting started.
I can understand how people might look at all the full list status codes and think it's all too hard, but yes, once you realize that there are only a handful you need most of the time it all becomes pretty simple.
Any app that requires a login will be exactly the same? What's exactly your point? That people can't login to phone apps?
A layer of metaphorical depth
Unless you forget to catch the right type of exception. Then all hell breaks loose.
The obvious way is to use separate configs for each target - most bundlers support running these builds in parallel.

It seems like you are trying to do something in a specific way instead of using the available tooling correctly. That’s not a problem with the tool. You just need to RTFM

As for the “massive vtable problem”, that’s not even a tooling issue. Why are you even using JavaScript if that’s a problem for you.
As in, something that happens to be called Wifi but is IOT focused and doesn't interoperate with normal consumer devices. It's not a wealth of spectrum in any case, and the fact that a lot of the radiolocation services are satellite based ... they're not going anywhere.
From https://news.ycombinator.com/item?id=13912857 :

> “After we 3-D print, we restore the hydrogen bonding network through a sodium hydroxide treatment,” Pattinson says. “We find that the strength and toughness of the parts we get … are greater than many commonly used materials” for 3-D printing, including acrylonitrile butadiene styrene (ABS) and polylactic acid (PLA).

From https://news.ycombinator.com/item?id=41314454 :

> "Plant-based epoxy enables recyclable carbon fiber" (2022) [that's stronger than steel and lighter than fiberglass] https://news.ycombinator.com/item?id=30138954 ... https://news.ycombinator.com/item?id=37560244

"Scientists convert bacteria into efficient cellulose producers" (2024)
https://news.ycombinator.com/item?id=41175002

Do hemp and cellulose 3d-printing filaments emit less VOCs?
"Japanese Joinery, 3D printing, and FreeCAD" (2022)
https://news.ycombinator.com/item?id=36191589
Elon Musk failed to report movement required by security clearance
>A chip factory in bumfuck Hokkaido, really?

Indeed: Rapidus in Chitose, Hokkaido.

https://www.asahi.com/ajw/articles/14851046
Maybe there should be a cost, but you've picked an insane cost to ascribe here.

If some fly-by-night PC integrator sells a PC today, then goes out of business tomorrow, no, Microsoft absolutely shouldn't be required to open source their operating system.

Many thousands of businesses close their doors every day, and when they do, punishing their vendor is silly, illogical, and wrong.
Google support third-party tools in Gemini Code Assist
A year ago I used this server for my friends, then it was called oragono. I really recommend it.
I wonder why every attempt at copying vi's concept, which is reasonable, also ends up copying its keybinding from the 70s.

I'm not talking about hjkl, but rather y for yank, p for put, d for delete, u for undo... where today every other software adopts a different vocabulary, namely x for cut, c for copy, v for paste, z for undo, etc.
asked the same question. i think this is art itself!
Commonwealth Fusion Systems Announces Commercial Plant in Virginia
A lot of binoculars have a mount for a tripod which I can definitely recommend trying out of you happen to have both, or at least consider if you are planning to pick up a new pair.
Idiomatic here means no idiom suggested really. So yeah, non-idiomatic.
Any new chess set with unfamiliar designs takes a bit of adjustment
There are multiple ways to solve this, we've explored a few and we found that clearly differentiating user inputs from the spec keys was the right way to go for this use-case and our audience.

That said, there definitely are other valid ways to solve it.
A few years ago I got so good at the whole scan>scantailor>PDF that I could scan a 100-150 page book, send that to scantailor, edit it and improve it to TIFF. Convert to PDF and OCR it in half hour.

I got very good at this but page turning way a bore.

The PDF turned out in a mechanical fashion without much effort.

I made a few scripts to do TIFF to PDF and then stictching them and doing OCR.
the landlords beg to differ. to them it's a great country, run very competently.

private tax (rent for soil bound property is nothing but a private tax) is the best thing since aristocracy and tithing.
There was a period of a few years where they raised the sales tax in steps 5%, 8%, 10%, and stores were allowed to show the price without tax during that period, which has left some practices a bit messy since.
You’re giving pmarca too much credit: he’s just lying. Ya know, for personal profit.

Starving for talent my ass. His portfolio companies have infinite appetite for talent at zero cost, the minute one person wants one point of the upside they’re right back to starving for free talent.

Silicon Valley is the ultimate thought experiment in how wealth inequality plays out when resources are effectively inexhaustible. You don’t have to speculate about a post-scarcity world, this is a post-scarcity world. Ballers in SV ship a billion in revenue on a Tuesday. And yet somehow it’s Andreessen who ends up with all the chips at the end of the night.

These talking heads don’t have a plan, they don’t know what their next big payday will be, they don’t code, they don’t design, they don’t sell anything other than their own personal brand, they don’t add value.

They’re just patient and connected like zen spiders sitting on a web: they’ll learn first about a new big thing, they’ll be there immediately, their friends will wire up the deal in their favor, and they’ll do a TED talk a few years later about how making themselves absurdly wealthy with no real effort is somehow the future of humanity.

They openly advertise their glee at the (ridiculous) idea that soon some autoregressive language model will do all the work and the owners of NIDIA cards can just pocket it all.

In the 90s there was this meme of a yuppy couple doing a business from their couch via “The Information Superhighway”: outsource everything, all you need is a laptop, a glass of Chardonnay, and a lot of cheek.

pmarca should spend less time yakking about AI on Lex stream and more time learning AI on geohotz stream.
No demand. Wifi 6 can do nearly 10Gbps in theory (with 8 spatial streams), more common home routers should easily do 1Gbps.
Why heart attacks spike during the winter holidays
NREL's Recyclable Carbon Fiber Composites Made Greener with Thermoforming
IMO, it's because mnemonics make more sense than QWERTY keyboard placement. Of course, there are exceptions even in Vim (e.g., ^E and ^Y for viewport scrolling), but bindings to value rather than pointer for things make it easier for those with alternate layouts (very few apps use scancode rather than keycodes for bindings, but they are possible such as GNOME's Alt+<key above Tab> for same-app window switching).
They're noise in the sense that they are imperfect human categories that we superimpose on reality. The alternative is not knowing nothing about the user, it's knowing everything.

Take this simplified example. Say that you want to predict whether a driver will cause a car accident. You could run the stats and say that poorer, older, less educated, alcohol-impeded, sleep deprived drivers statistically cause more crashes, and then take an 80-year-old high school graduate with an income of $20K/year and say "He's three of those five categories, that makes his risk higher." Or you could observe footage of every minute of him driving, count the number of times he strays out of lane, turns without his blinker, doesn't look at the road, speeds, runs a red light, etc. Which is going to give you a more accurate picture?

Marketers build up demographic profiles because historically, that's all the information they have had available to them. The detailed record of everything their customer has ever done has been impossible to collect, or illegal for privacy reasons. Big Tech has that record. And they can use it to make much more accurate machine predictions about what a person will do than demographics alone can predict.
Very nice looking movie theme chess set.

This Rook Tower theme pack-away wooden chess board is also wonderfully designed for aesthetic:

https://odditymall.com/rook-tower-pack-away-wooden-chess-boa...
U.S. Navy Wasted $2B on Failed Cruiser Modernization Effort
Look at Loveless: two amps, facing one another with a microphone embedded in between. Shields did not use any pedals for the album. Audio is recursively transformed in a synthesis of feedback loops.
China's 621 MPH maglev train (in development)
Grammarly acquires productivity startup Coda
Hyprland 0.46.0 is upon us
This approach is so bad, I don't even know where to start. But it's all symptoms of their, sorry, incompetence. Take the loadCredentials example on top. If os.ReadFile cannot find the file, it returns an error with string representation: "open cred.json: no such file or directory". This comes straight from the std lib as it is, a great error. What does the errors.Is(err, os.ErrNotExist) do: prepend "file not found" to it, rendering: "file not found: open cred.json: no such file or directory". So this adds exactly nothing. The next if will prepend "failed to read file" to it, again, adding nothing as well. The two errors checks should be replaced by one if statement, optionally wrapping it with a context string but I cannot think of any use. Then the next step, error handling of verifyCredentials. I can only guess what it does, but assume that it returns an "username 'foo bar' cannot contain spaces" error. Does prepending "invalid credentials" help anything? Nope, so the whole if can be removed as well. No surprise your errors get clunky if you make them clunky.

I have more pressing things to do than dissect this article line by line, but let me suffice that I feel sorry for newcomers to the language that an article like this is so high on HN. Back in the days there was just Dave Cheney's material to read [1], and it was excellent. It's unfortunately outdated in certain regards (e.g. with new Is/As functionality in the errors package for inspection and the %w formatting directive in fmt.Errorf) but it's still an excellent article.

[1]: https://dave.cheney.net/2016/04/27/dont-just-check-errors-ha...
A blog post on how this has been designed would be helpful.

What are the main types?

What are the advantages over IO?

How does it relate to algebraic effects we keep hearing about in other languages?

How does it compare to imperative languages?
Tooling effort withdrawn (moved out) from ISO C++ Standard
And to think, all America has is the banks.
What you describe sounds like a config dictionary. What benefit does it offer to standardize that for this very special (and probably rare) use case?

I don't know many companies that could actually have the problem of scaling a design change up to 50 apps, because most don't have 50 apps. But I would guess that those who actually have to solve this problem are staffed properly to implement a shared configuration for design parameters.

If you want such a hard dependency and kind of automation in this case is another question. I could imagine a lot of special cases where this would cause another set of issues with, e.g., accountability (which part of the codebase belongs to which maintainer and so on).
I live one neighborhood away from their building in Redmond, WA and can’t get service lol. Oversubscribed here.
Similarly - as full moon must be opposite to the sun, full moon moonrise happens around sunset and moonset happens around sunrise.

Also full moon rises the highest in winter, contrary to the sun - when it’s at it’s lowest[1].

Funny things happen at the poles where sun is above/below horizon for half a year: https://astronomy.stackexchange.com/a/27750

[1] the further from equator you are the more pronounced it is.
Discussions

(17 points, 14 hours ago, 12 comments) https://news.ycombinator.com/item?id=42442852

(18 points, 14 hours ago, 7 comments) https://news.ycombinator.com/item?id=42442985
IME the reasons to have one are that you want people to comment and you want other people to write posts sometimes.
People bitch about checked exceptions in Java but this is precisely why I think they're a great idea. You can't forget to catch the right type of exception.
Not every little idea, as useful as it might be, needs to turn into a hyper-growth business. Just make it an open source project on the side. If it gets popular then you get famous and hopefully some big company finds it so useful that they hire you and let you work on it full time. Konfig seems like a perfect example for this.
Is it possible to send Webhooks to specific channels of an Ergo/any other IRC server?
Ada was clearly incredibly intelligent. I can't source the original texts for Babbage's program, but it does seem that he was aware of loops, and might have implemented them:

"In the absence of other evi-
dence I have had to adopt the minimal default assumption that both the operation and variable cards can only be turned back-
ward as is necessary to implement the loops used in Babbage’s sample programs cited in Ada Lovelace’s notes (originals in L series notations)"

https://ieeexplore.ieee.org/document/887986
I don't think the "almost no other ways to do that" part holds up.
What's the progress on real, Star Wars style holograms? Or have we determined those to be a technical impossibility?
I think those bindings are fine, what is more problematic to me is the inconsistencies or straight up arbitrary mappings (gg and G come to mind). I feel like kakoune did a great job at improving vims bindings to make more sense.
You are describing a problem with a single implementation, not passkeys in general.

It's a really ineffective gotcha. And extra transparent because you talked about bitwarden first.
We did kill three astronauts during the Apollo project. It's just that space people tend to die closer to the ground.

The space shuttle had something like 1:70 in practise but was planned for 1:90. Artemis is currently evaluated at 1:70 too, which is deemed a little too high.

We seem to be ready to sacrifice people to space at a relatively high cadence.