skysight-inc/HackerNews huggingface dataset:
Any resources or advice for someone new to API design?
As a newcomer to API design, I'm grappling with the differences between REST and GraphQL APIs. Specifically, the trade-offs between them are a bit confusing. Are there any recommended resources or general advice for beginners like myself trying to navigate API design choices?
Except no human (non-colorblind at least) past three years old thinks bananas have the same color as the sky (see the example given in the repo, that's a mistake literally no human could make)
Thank you !

I'm not english native speaker, and I thought I lost my english reading this article. Sometimes it's a bit hard reading some articles for me, but this one was a top.
Fish shell would be the big counterexample right now. C(++?) to Rust in about a year, IIRC. I believe they were still pushing out updates to the original codebase during that time, although I assume they could have done more if they weren't also rewriting.
I'm a CS professor not a YouTuber. It was a lecture from a chapter of a book I wrote.
This is borderline trolling.
"Candy Crush Saga" or Netflix is on the right side tabs right at the menu on a fresh install. I did install 22H2 a month ago and saw this atrocity. You are simply mistaken. Also News that I don't really care or wish to see.
Absolutely. This is great news.
Was the code in question included in stable releases?

If not, I might agree that assigning CVEs are not helpful.

But if the code was included in one or more stable release then I think it should probably have CVEs assigned. Depending on how serious or real the problems were.
The original IRC was federated though. It is an unreasonable assumption but imagine that the original federated network did sufficiently evolve and adapt and strive to this day...
hey , I am a newbie in field of AI , i want to know about the nearby future of AI . after devin I am little ! or rather I should say deeply terrified about the future (5 to 8 years) of software eng. can someone explain ?
I almost never use breaks. It is a game for me, so I'm conscious of any time I have to use them.

On the other hand, EVs unfortunately pollute more with tire particles (thanks to both higher torque - especially from 0 - and higher average mass).
API design is more of an artform than anything. GraphQL is great when you are perhaps using a noSQL database and the schema is somewhat fluid. However, if you have a relational database - you will get the best results using actual REST APIs.

The best way to think of an APIs design is; why do you need an API in the first place. Creating an API for the sake of having an API is what leads to terrible APIs. Instead design your API for its use case, and if you have multiple use-cases - maybe you need multiple APIs, or a more clever API design that blends well
Plus another 15 to read this.
It stands to reason that if you're masterful at good UX, you should also understand horrible UX and Apple are considered the best, after all
Show HN: Query Your Sheets with SheetSQL
Hello HN!

I've developed a tool named SheetSQL that allows you to query, join, export, and schedule your queries to Google Sheets through a straightforward SQL interface in the browser.

This tool is a simple, first iteration of the idea, so I'm eager to receive feedback on it. You can contact me at taras [at] sheetsql.io :D. I'd love to find out if it could be useful for folks out there!

As someone working in fintech, I constantly deal with sheets and often find it challenging to perform seemingly simple tasks like JOINs natively. However, I'm familiar with SQL, which inspired the creation of SheetSQL. It's designed to assist those who use sheets daily and have some SQL knowledge, making operations across multiple sheets and worksheets as easy as if they were interacting with a Postgres database.

For those interested in the technical details, the engine powering the queries in the background is DuckDB. Therefore, you can expect support for all syntax from the latest version of DuckDB :)

Cheers,
Wireguard is more or less just Noise (IK I think) for IP packets. It wouldn’t make much sense for files since there is no counterparty. File encryption is done differently.

Edit: http://noiseprotocol.org/
Seems to be something like that, I asked it what happened today in California and it writes stuff like this:

> Other News: A new bill could see Flamin' Hot Cheetos banned from California schools [Los Angeles Times]. The LA Innocence Project is again in court pushing for DNA testing in the Scott Peterson case [Los Angeles Times]. There are reports of a worker dying after falling into a sugar vat at a factory, and parts of California are bracing for blizzard conditions [9News, The Independent].

So it tells you the headlines and gives a reference to where they got it from.

Interestingly it does talk about elections as well, as long as it is a news reference:

> Local Politics: Los Angeles City Councilmember Nithya Raman appears headed for a primary win based on early results [Los Angeles Times].
If you don't want a site to (possibly) store your photos, not uploading them in the first place may be your only _real_ option...
Yeah I had the same thought. Perhaps they are trying to regain some trustworthiness back.
I went to Switzerland once and as I walking over a bridge stretching above a highway, I noticed the smell of hydrocarbons and machinery in general.

It takes Alpine air as a point of reference to feel it, which says a lot about the ambient level of pollution in cities.
Here is the thread:

It takes 15 clicks to install an app from the web using the newly proposed Apple flow. Here's the journey:

1. Visit the website for the download link. Click on a unique deep link.

2. Encounter a warning about the unknown provider. Click "Learn More."

3. Navigate to an Apple support page for instructions.

4. Find the “allow installation” section in settings.

5. Encounter another warning screen.

6. Use Face ID to proceed.

7. Wonder where you were and go back to the browser.

8. Tap "Install" again for the app.

9. See a confirmation sheet; tap "Install."

10. Face another scare screen and confirm.

11. Use Face ID again.

12. Nothing seems to happen; you're back on the website.

13. Check your Home Screen and swipe to the last page.

14. A new icon appears, not marked with a "New" bubble.

15. Finally, launch the app.
I had been messing with game-related network protocols before writing my first IRC client, and the sheer simplicity of it was an eye opener.

For many protocols these days, the handshaking/authentication/formatting of the protocol and setting up a connection is so complex that you're already hundreds of lines down before you can do anything with the service, even if it's a dumb text chat like IRC is.

It's completely changed my view of what a network protocol is, and how to judge what features and characteristics are appropriate. Oftentimes this complexity is completely unwarranted! Underlying protocols like TCP and TLS already do a majority of the heavy lifting.
Might as well take the opportunity to shill one of my recent experimental projects, If you are interested in building Go apps that act as userspace WireGuard peers take a look at https://github.com/dpeckett/noisysockets

Based off the excellent work in done by wireguard-go but I've attempted to simplify and make things a lot more idiomatic for library use.

I reckon building a service mesh out of it would be interesting, obviously supporting multiple languages would be hard but maybe you could implement a sockets API. Though it might be hard to compete performance wise with mTLS as I've not seen HW acceleration for WireGuards crypto yet.

FWIW, I'm currently on the market for freelancing roles, so if you're interested in Golang freelancers in the high-speed/secure networking space, please reach out (email is in my profile).
.net came with a massive amount of system libraries which did all kinds of things for you. Vb6 was just a programming language
without a suite of libraries. I'm gonna guess it was one of those things.
30 years ago Linux 1.0 was released
Thanks for the explanation! That makes sense to consider the database structure when choosing between REST and GraphQL. I hadn't thought about purpose-driven design before - focusing on the use case sounds key to avoiding bloated APIs. Do you have any favorite resources on designing for specific use cases?

Also, are there any tools that can help with documenting or visualizing different API design options?
Yeah, I get that too. Fortunately the floaters are per eye, so I can eliminate them as a migraine thing using a sequence of winks. This looks in no way peculiar to people around me.
The Cordic Algorithm, Theory and FPGA Uses
Geeknet, Inc
Of course one can beat Nethack. Many people did. That's not the point. The question was more: Without "spoilers" (a.k.a. "hardcoded heuristics and goals")?

(I never made progress because I didn't try hard enough. It became very boring after finding out that this game is random and quite nonsensical, and one can't come up with some strategy only by playing it often enough. I'm in general not enjoying dice games. I prefer games where you can come up with some winning strategy by curious observation and logical thinking.)

Because of the nature of Nethack I don't think it's a good AI test as such.

Maybe it would be if one let the AI read spoilers / walkthoughs and than let it try playing. Such a test could than maybe probe for the AI's text comprehension, and the ability to map the gained understanding to concrete actions. But just letting it play Nethack unprepared does not give any insides into the AI's capabilities, imho. It will just fail over and over again. Because it's (imho) impossible to beat Nethack without spoilers. You just can't extract the needed knowledge from playing. Even from playing it millions of times.
If you don't have an account, here's the proposed journey:

1. Visit the website for the download link. Click on a unique deep link.

2. Encounter a warning about the unknown provider. Click "Learn More."

3. Navigate to an Apple support page for instructions.

4. Find the “allow installation” section in settings.

5. Encounter another warning screen.

6. Use Face ID to proceed.

7. Wonder where you were and go back to the browser.

8. Tap "Install" again for the app.

9. See a confirmation sheet; tap "Install."

10. Face another scare screen and confirm.

11. Use Face ID again.

12. Nothing seems to happen; you're back on the website.

13. Check your Home Screen and swipe to the last page.

14. A new icon appears, not marked with a "New" bubble.

15. Finally, launch the app.
> Why the hell are all the public workers exempt from that? Cops, government workers, inspectors, etc.... in the best case possible, taxpayers pay for the damages and that's it. Why?! Someone wanted this subpoeana, his job is to know if s/he can actually request it, s/he signed his/her name on the paper... and then.. nothing?

Because the regime wants their agents to blindly obey orders they push down, or foster to happen at lower levels. If this could suddenly come back and cause actual consequences for some of the regime henchmen, it could be that they might consider not obeying.

by definition, the incentives that exists in a state is not to do what is best for the people its supposed to serve. The bigger and wider a state becomes, the more perverse incentives exists, and since a regime can create its own laws and regulations, it will do so to protect itself first and foremost
Tru64 Unix
.net is used widely in enterprise, but the overlap between .net users and hacker news is slight at best. Microsoft is investing heavily in rust these days, but it'll be 5+ years before we see developer level support for it.
That might give you some confidence. But if you're looking at your performance on unrelated predictions, it won't necessarily detect problems with a given prediction.

I predict there's an 8% chance of one drive in my four-hard-drive array failing in the next year.

I predict there's an 8% chance the next UK election ends without any party holding a clear majority, leading to a labour-lib dem coalition government.

For the first prediction to be accurate, I just need to read the backblaze hard drive stats and multiply.

For the second prediction to be accurate, though? That depends on a lot of factors that are a lot harder to know. For example, would the lib dems be likely to enter a coalition, given how the last one went for them in 2015?
In modern US political discourse, there is no nuance in “us vs them”. Your moderators that are meant to just tag “advocating for the mass killing of gay people” will also put a “here’s why I think you should vote for Trump” post in the same category.
what do you think about devin? just curious
And you're not even accounting for all of the secondary upwards price pressure generated by these two primary systemic factors.

For example FOMO and other network effects will for sure, at least for the short to medium term generate quite a lot of secondary upward price pressure.
Take a relatively simple large language model like Llama 1. It has a context of 2048 tokens and each token can be one of 32,000 values. So the lookup table would need 32,000^2048 entries. That's not just impractically large, that's larger than cosmically large. There are only estimated to be about 10^80 atoms in the visible universe. So while a 32,000^2048 lookup table might be a valid concept mathematically, it's not anything you can intuit physically, and therefore not something you can say is incapable of reason.
> "Elections are due to be held in countries around the world this year including the US, UK and South Africa. [...] However, when a series of follow-up questions about Indian politics was put to Gemini it did supply more detailed responses about the country's major parties"

It's only guarding against questions about elections that have the attention of Google workers. I'm a bit surprised they can't do better than this and detect when somebody is asking about any election. Google surely has enough context about global events to do it.

> "Gemini also generated German soldiers from World War Two, incorrectly featuring a black man"

Certainly black men fighting for Germany was unusual, but it's a little bit disconcerting how the debunking of Gemini's racial bias goes too far and starts to erase actual history:

https://en.wikipedia.org/wiki/Wehrmacht_foreign_volunteers_a...
Things exist because they are the best at existing.

i.e. The AGI best at existing will be the AGI that exists.

This means AGI will have a sense of self preservation, a desire to procreate, and use up more resources.
comment I was responding to:

> If we remove tailpipe emissions, which are by far the largest, then brake/tire wear emissions become visible and are next in the list to deal with.

(clearly claiming that tailpipe emissions are by far larger than both brake and tire emissions)
Haiku as Calligraph – the creative process [video]
A most beautiful Haiku transformed into Chinese calligraphy.
Wow. This seems… mean.

One of the nicest things a precious employer’s VP has said to me was that I shouldn’t feel bad about taking a mental health day if I needed it - he’d rather have me at my best, ready to do my work, rather than just barely managing to drag myself to my desk in order to be physically present and hope no one noticed my productivity was shit.

This blog entry just seems so uncaring and dismissive. How awful.

When he says “we” at 37 signals, does he mean he actually speaks for them? Should I be avoiding them as an employer? God I’d hate to work for someone who treated me this way.
Thank you for this. It's a good start. But also, there is so much on Hugging Face, how does anyone evaluate it all? It's not possible to personally test everything, and develop good intuitions about what might be useful in particular situations.

As an analogy, 10 years ago we had a lot of debates on Hacker News about various languages and frameworks: PHP versus Python and Rails versus Django. But where do I go nowadays for similar discussions about all of the tooling that is springing up around the AI and LLM and NLP space?
What if others won't subscribe to my labeler? Why would they subscribe to it in the first place?
and I would argue that any body that clears officers for stealing coins, assuming its as clearcut as has been laid out here, is a failed treasonous(to the people) organisation that morally and ethically can should be destroyed by any means necessary
Most of these steps apply to installing an Android app from an Untrusted SourceTM for the first time. Half of these steps are fluff added for the sake of a clickable title.

There are problems with Apple's proposal. This is not one of them, and I don't think it's fair to come to the right conclusion for the wrong reasons.

I dislike this post a lot. I'm not sure what else to say.
That's because going outside in Australia is a hazard
Seems to me they did this to avoid the alternative of running WG in user space. They wanted a feature the Linux kernel didn’t have to route by cryptographic address first but without leaving the kernel so they hacked it in.???

JIT Wireguard is a weird way to frame this. My mind went to “why? The performance bottleneck is the crypto and per client JIT won’t help with that.”

I would have just gone user space. Use something like tokio-uring or glommio to get the performance. If you keep going in the kernel you are going to keep hitting limitations because Linux is not built to serve millions and millions of active tunnels. Even doing millions of TCP connections per kernel gets hairy sometimes.

Every limitation will require a hack. Every hack will be some system config that has to be applied and managed. The tool chains for provisioning Linux metal boxes are vastly inferior to the tooling for developing apps and services and managing their config.

Or am I stupid and misunderstanding?
I've been using an emoji separated values format for a personal project where fields contain lots of special characters including whitespace.

I'd previously given up using ASV because of the printability and copy/paste problems described. Replacing the control characters by their printable glyphs solves all my previous problems and is as genius as it is naughty.

I sympathize with the arguments people here present against and agree the SYN character and Group Separator are weird -- but cause no harm. I'm not bothered by the same data having multiple representations since I'm insisting on human readability rather than byte-by-byte perfection in the first place.

It took 20 minutes to convert my project and I'm very happy.

Only tooling change I had to make was adding digraphs to vim

digraph rs 9246 us 9247

etc. Easy to type directly in my .usv file. Easy to type and read in some Python consuming it.

Regardless of it becoming a standard and my lingering grouchiness about multi-byte characters, needing to use non-xterm, etc. this works very well for me.
> Now there could be an aspect of predatory behavior by Apple in the way they charge developers etc, but that's where I feel the problem should be tackled.

Right! Just because I agree with the core part of the App Store doesn't mean that it isn't without faults. But let's not rip up what is there completely to fix other issues, and just make things worse in the process.

We saw a similar conversation when Steam came out about Piracy of games.
This comment really highlights how you can have someone like GP thinking Republicans are inhibiting border control and Democrats are trying to do something about it. The discourse around the subject dictates what concepts are held in the mind while considering it. The implication by the left seems to be that the US should, obviously, allow anyone into the country and that the problem is the speed of the immigration process. The reality of the situation is that no country, the US included, can maintain the stable identity and order required to be considered “a country” while allowing unrestricted immigration. It’s simply not possible to accept immigrants without requiring that they know and follow the law, and that takes time to learn. Immediate access to the country does not facilitate that learning and obviously causes significant crime.
Nothing biased about Twitter algorithm - it’s the same for both. They managed to orchestrate a better launch virality by getting a lot of big names to post about them simultaneously - which is independent of the Twitter algorithm.
Some of this is plainly ridiculous, e.g. the last sentence of the following:

>On Election Day in 2018, the “Go Vote” reminder Google displayed on its home
page gave one political party between 800,000 and 4.6 million more votes than it
gave the other party. Those numbers might seem impossible, but I published my
analysis in January 2019 (https://is.gd/WCdslm) (Epstein, 2019a), and it is quite
conservative. Google’s data analysts presumably performed the same calculations
I did before the company decided to post its prompt. In other words, Google’s “Go
Vote” prompt was not a public service; it was a vote manipulation.
I actually never seen those in Europe, very interesting
Wow, it wasn't a Boeing! /s
Well, note that I said it could just as well be a widget on the website somewhere.

There's no such thing as a mandatory cookie popup. You don't need to get explicit consent if your website needs certain cookies to do what the user wants it to do. Placing a session cookie to log in is fine, for example. And it's also fine to place tracking cookies if and only if the user goes to aforementioned widget and presses the "please track me" button.

But users don't want that, obviously, so websites are built to force you to acknowledge the choice. The problem here is not the implementation of the law - it's the attitude of the website builders.
Correct me if I'm wrong but steps 2 to 7 should only be neccessary the first time you install something from the web
> #1 Photo to Art App

According to whom? There’s just that sentence, surrounded by laurel leaves, above five stars. Zero indication of where that award/rating came from. Did you make it up?
Are you aware how difficult this is? Python has a complicated and messy history regarding concurrency, and even as recently as 2012 the most common advice was "avoid threads and use processes." Python was late to come up with any story around concurrency.
it is possible to distinquish between situations in a court
You don't ever need to use the configuration files, netlink on linux or the cross platform interface documented at https://www.wireguard.com/xplatform/ mean you can write your own tooling around an existing inteface.

The cryptokey routing is pretty fundamental to wireguard, I'm not sure you could have one without the other.
This looks silly, I admit. I made this correction after reviewing what I’ve written, but should have corrected in 2 places. The list is handwritten, but English is not my native language.