skysight-inc/HackerNews huggingface dataset:
I was about to say the same thing. If you have an array of widgets used in several places in your program it would be odd not give it a name. Then you can have a pointer to it, etc.
I would say loads of Unix tools have a much bigger problem with files that contain whitespace and especially newlines then they do with the character encoding. Similarly, you can usefully process a lot of file types if you can safely assume only the encoding of special characters for that format, like {",[ and newline for JSON.

This is why I don't get what you mean by "text file" in this context. Obviously it's hard, if not impossible, to meaningfully interpret any part of a random text file as a file name, regardless of encoding. But if you have a text file in some known structured format, it shouldn't be a significant problem at all, as long as you know the encoding of those special characters and have some basic conventions. In particular, the agreement could be that the filenames will be represented as raw bytes except for format-specific escapes (like escaping " in JSON or &gt; in XML), then the file name part need not even fully match the intended encoding of the rest of the file. It's true though that it's not very easy to work with a byte array that has different encodings in different parts.

On the other hand, I fully agree that it's a good idea to restrict things to simple sunsets of characters if you can get away with it. I just don't think that restring to "all of Unicode" is particularly useful. Restricting to a subset of ASCII or even just to the BMP does have meaningful advantages, if it's an option for a particular domain.
Long Beach man started a petition to ban Airbnb in his neighborhood – it worked
Other scripts for OpenWRT and Microtik OS are available here. I assume they are only installing the ISO which you need to configure. After installing OPNSense, I plan to import my existing configuration that I exported from my old box and adjust as needed.
People think it's the f'ing monkey emoji tho: https://e.deviantart.net/emoticons/n/neom.gif :| :| :| :| :| :| :| :| :| :|
I have nieces and nephews and if I walked past a wall with them that reads FUCK i'd probably laugh and tell them its a bad word and move on with my life.
Or a laser pointer.

See also: one of the books in The Laundry Files series by 'cstross.
> You're conflating alcoholics - definitionally people with substance abuse problems - with all cannabis users.

I’m not conflating them, I’m comparing them. Based on my anecdotal observations, people have less command over their addictive behaviors (whether it’s alcohol or weed) than they think.

> If a parent can have a glass of wine after the kids are in bed, why not an edible?

Because people don’t have as much control over themselves as you want to believe. People would be better parents if nobody drank.

> Workers' productivity is a performance management issue for employers, not something to be addressed with state violence.

Worker productivity creates the resources available to take care of the community. That’s not any less true in a modern tax-funded welfare state than in a third world village. When half your income is going to the government, the government (which is just a proxy for the community) has a strong interest in people being productive.
Hmm... Let's see...

Oh, functions can't return arrays in C. That would be a pointer. Well, that makes it easier.

double **(**(*)(char *))(int)

It did take a couple minutes, but I just woke up. Also, idiomatically there would be a typedef:

typedef double **A(int);
typedef A **B(char *);
B *

That took a few seconds to write.
Sorry Dave, I'm afraid I can't do that
The 2020 referendum had a very obvious split where one side of the island voted to remain and the rest voted for independence: https://en.wikipedia.org/wiki/2020_New_Caledonian_independen...

Subsidies and the move to more local governance probably mostly benefit the area around the capital Nouméa, which is of course on the side that voted to remain.

I wonder how palatable a compromise would be where only part of the island becomes independent.
WhatsApp Reveals Clever New Feature to Ensure Your Secrets Stay Secret
I also have a (little more expensive) GWM5610-1 and I think it is the best watch (for what is important to me, solar, sleep mode, radio, gshock, waterproof) - it will probably outlast me.
OK so I'll assume it's possible to crush limestone, add ingredients that act as mortar that the Egyptians knew and used anyhow (even our word "natron" seems to derive from ancient Egyptian), and then mix that with water either downstairs near or upstairs on a top layer of the pyramid, and cast it in place. BUT where's the evidence? Why do we see blocks all the way up, blocks with tiny gaps between them? Did they not cast them in situ but just nearby, in the customary one-to-two-ton size, and push them over to their final place? Because if I were tasked with constructing those upper layers (whose insides were likely not solid blocks, but very coarse rubble mixed with mortar, as evidenced by some mastabas), I sure would want to make those casting molds (formwork) as long as possible. So absent material proof (micro-structural analyses) it's a nice theory but not much more.

Also the article suffers, like so very many, from not discussing Egyptian construction technology and not even how they built pyramids in general, but focusing on how they built specifically the Great Pyramid, as if there were not well over a hundred known pyramids in Egypt, not to speak of all the temples and uncounted mastabas.
ADD A TO B GIVING C would be so much clearer
West const is a travesty given that either side, or both, of a pointer can be `const`. And with refs I prefer to see that something is a `const &` in one place instead of scanning 3 km of template argument list to find that out.
Did I understand correctly that your dad was so good at restoring guns that they didn't appear to have been restored? Could you explain what they means?
> Emoji suggestion: Slack might suggest emoji reactions to messages using the content and sentiment of the message, the historic usage of the emoji and the frequency of use of the emoji in the team in various contexts. For instance, if [PARTY EMOJI] is a common reaction to celebratory messages in a particular channel, we will suggest that users react to new, similarly positive messages with [PARTY EMOJI].

Finally someone has figured out a sensible application for "AI". This is the future. Soon "AI" will have a similar connotation as "NFT".
The blog post was more than half padding. Good that the algorithm is so simple it's hard to write a full length blog post about it!
I've been noticing writing styles in stuff I read. This article, geez...

Three paragraphs seem to convey the same message "they built it, the public said no, so it never got switched on".

> Completed in mid-to-late 1970s, the plant in Zwentendorf cost around a billion euro to complete.

This sentence begins and ends with basically the same word. Feels like a highschooler level writing...
You also need some kind of distro if you are running a single-board computer.
This isn’t a reasonable critique of the unpaid moderation model — the same model we’ve had since long before Reddit.

Reddit has had several notable high quality subreddits entirely because of user moderation, and is able to host niche interest communities.

I can’t think of a realistic business justification for a paid moderator to curate forums for some of my incredibly niche hobbies. These were formerly hosted on different phpBB boards, which were also moderated by unpaid volunteers. As a bonus, generally one or two of them actually had to pay to host the forum.
Ask HN: Internationalisation Tools React Native
I have a fairly large mobile app built with react native (Expo). What are some useful tools that can help internationalise the app? Specifically, looking for tools that can help with extracting text from components and create insert/update language file and insert the i18n reference back in the components. Just really not keen on copying and pasting thousands of strings and figuring out naming conventions.
> I wrote that because it seemed like the binder was unnecessary information posed specifically in the photo to try to gain my trust

As opposed to just being something he grabbed to use as a quick kind of table? I mean out of the two possibilities of just quickly throwing something on the couch to use as a platform to take a photo or purposely trying to set up a staged scene to look 'casual', I think Occam would say the first is significantly more likely.

Nothing wrong with having suspicions or gut feelings, but this just seemed a stretch too far to me personally. Nice article though!
About the base claim sure, not about anything regarding the staging of photos though.
Well, the base claim was sure, not anything regarding the staging of photos though.
That is exactly it. A big part of the mental model is understanding the concept of tidy data from Hadley Wickham too.

I could not understand some of the design choices until I understood tidy data and not being much into R, I never ran across the idea previously.

Mike Bostock is so brilliant and has put in such an immense amount of work into d3 that if you even start trying to build your own data visualization javascript library you will end up leveraging d3 at some point as to not reinvent the wheel.
My personal experience is that when you go to US or UK you need an adapter. When you go to Italy you need a lot of adapters.
Ah, I see. I thought the idea might be to replace windows completely, like on the fridge doors of some supermarkets.
I remember seeing HVM on here a year or two back when it came out and it looked intriguing. Exciting to see something being built on top of it!

I would say that the play on words that gives the language its name ("Bend") doesn't really make sense...

https://github.com/HigherOrderCO/bend/blob/main/GUIDE.md

> Bending is the opposite of folding. Whatever fold consumes, bend creates.

But in everyday language bending is not the opposite of folding, they are more or less the same thing. Why not "unfold", which also has a connotation of "the process of happening" as well as merely the opposite of folding?

I have a question about the example code and output for bending:

type Tree:
Node { ~lft, ~rgt }
Leaf { val }

def main():
bend x = 0:
when x < 3:
tree = Tree/Node { lft: fork(x + 1), rgt: fork(x + 1) }
else:
tree = Tree/Leaf { val: 7 }
return tree

tree = fork(0)
tree = ![fork(1), fork(1)]
tree = ![![fork(2),fork(2)], ![fork(2),fork(2)]]
tree = ![![![fork(3),fork(3)], ![fork(3),fork(3)]], ![![fork(3),fork(3)], ![fork(3),fork(3)]]]
tree = ![![![7,7], ![7,7]], ![![7,7], ![7,7]]]

Where does the initial "tree = fork(0)" come from?
Deja Vu: I wrote a comment here some days ago arguing that while Russian/Soviet influence certainly exists public opinion is majorly homegrown:

https://news.ycombinator.com/item?id=40331523

People from the anglosphere often seem to think that Russian and now Qatari gas is a replacement for the nuclear power, which is rather wrong: The vast majority of Germany's natural gas usage is residential for heating and in industry.

https://www.iea.org/data-and-statistics/data-tools/energy-st...

Gas is hard to replace ad hoc with electricity because you'd have to replace boilers in millions of homes and apartments, a multi-decade infrastructure project.
Cooling (and heating) a 2.5k+ sq ft home with 10ft+ ceiling and open foyer will get you there easily.
(note: I'm founder of Definite)

I think we're closer to what you're describing. All transformations in Definite[0] are done with SQL which you can easily inspect. The transformations are stored in your data model so everyone else can reuse them.

The setup we normally see at a company is one (or more) data people control the model which can be used by the rest of the company thru our AI assistant. Quick demo here: https://youtu.be/p6BoqX0cYnU?si=hg2V_KM8ScUzwrDx&t=147

0 - https://www.definite.app/
> Do you think mostly everyone can convert from km to miles?

It's such a simple calculation that anyone from western europe or a commonwealth country or the US should be able to do so back and forth with ease. Same for feet and meters.
HMT: Hierarchical Memory Transformer for Long Context Language Processing
I didn't say they're not discussed.
Yeah, there's no VPS with a gigabit connection for free.
This post didn't dwelve on the fact your water needs to be pure - if you've got hard water, it's not going to work.

Try again but with demineralized water - often sold in supermarkets to avoid scaling in clothing irons.
I'm also frequently surprised when I visit them and realize it's SE, not SEO.
Don't remember specifics, sorry.
I heard my little son say "go away Bixby" the other day, having heard me say it so many times after accidentally pressing the dedicated (and un-deactivate-able) button on my Samsung phone
Why not both? I mean, the standard Skynet murder robots/nuclear apocalypse scenario is indeed boring. Skynet x AlphaFold solving protein folding and hitting us with molecular nanotech? Swarms of giant murder cats would be on the table.
Well if the presence of big cats is advertised in the news, you can be sure that a bunch of morons will comb that part of land to get a chance to shoot the beasts and hang their heads to the walls.
As a traveler, Airbnb is fantastic. It drastically lowers the cost of lodging because hotels have to compete. Before Airbnb was banned in Hong Kong, you could get a decent hotel for $50-100/night and a good Airbnb for $50/night. Now with only hotels as an option, the crappiest hotel charges $130+ and any decent one will cost $200+.

As a neighbor, I absolutely hate Airbnb. I lived in a condo building popular for Airbnb. The noise, partying, strangers, residential lobby turning into a hotel lobby at 2pm became unbearable.
I absolutely think they were caused by too much democracy. Most people are not equipped and may never be so to vote or have a say on the most important issues. They need to be managed by those that are capable.
"leadership" at my company tallies emoji reactions to their shitty slack messages and not reacting with emojies over a period of time is considered a slight against them.

I had to up my slack emoji game after joining my current employer
Oh wow do I wish this existed when I was playing with evolutionary computation and genetic algorithms in college…
I never said anything like that so why are you implying that I am? Nice strawman bro, I'm not crying over things people say to me on the internet. Anyone who sees a mean comment on the internet that doesn't actually threaten or incite violence as violence is just as pathetic as people who think art they don't like on a wall is violence. Can you please argue against points I actually made, thank you.
If it should belong to everyone as you claim, then every aspiring graffiti maker must ask everyone's opinion before starting spraying.
7.- A method to proactively decrease quality of all images to save storage, and delete all images if you don't look at them for 2 years or have too many.

https://support.google.com/photos/answer/6220791
> Is Google trying to kill their search engine?

This is cute. It's well known the quality has decreased severely since a few years because management wants to optimize retarded metrics. Of course they will want to make it crap more and more, for the same absurd reasons. Good news is that restore a little bit of competition, but kind for the wrong reasons...
Yes, they're distinguished: the pieces you place there manually ("fixed pieces" are opaque and thus should have the same color, off-white or dark-grey, no matter the background square.

The pieces the AI adds when you press generate, are translucent (and as such will be affected by the background color). Then you can press "Lock in" to convert the generated pieces to fixed pieces, in which case they will become opaque.

I realize that for anyone less used to the color scheme than me, this distinction is problematic since there will be no less than six different piece colors (white, black, translucent-white-on-light, translucent-white-on-dark, translucent-black-on-light, translucent-black-on-dark)
That's hilarious. Have they checked there's not something in the environment turning people mad? Is it even common for terraced houses to share roof space without a dividing wall??
> Ironically it will probably the reason Google search starts to lose out because they're making it worse.

They've been making search worse for years now and still have their dominant position.
Yes, there are many components to train noise.

I used to live by rails with a small incline, and the diesel locomotives made a loud low noise accelerating uphill from a station, while downhill the trains moved far faster and the engines were quite insignificant compared to noises due to speed: mainly the wheel noise and going over the expansion joints.
> I said nothing that goes against the context.

You mentioned the EU as a whole but the point is it isn't and is indeed widely varied when it comes to the sorts of laws you are relying on to make your argument.
Yes, it ruined many small cities were I grew up. Lots of old and beautiful buildings were destroyed. In the City were I grew up, people and politicians still decry the history destroyed by urban renewal.
And it continues:

> To do this while protecting Customer Data, we might use an external model (not trained on Slack messages) to classify the sentiment of the message. Our model would then suggest an emoji only considering the frequency with which a particular emoji has been associated with messages of that sentiment in that workspace.

This is so stupid and needlessly complicated. And all it does is remove personality from messages, suggesting everyone conforms to the same reactions.
I'd like to hear more about the hedgehog story. Is there a writeup you can link to?
> It's objectively true though

Webster:

pilfer

intransitive verb
: steal
especially : to steal stealthily in small amounts and often again and again

transitive verb
: steal
especially : to steal in small quantities

OED:

pilfer, v.

transitive. To steal (property), esp. in small quantities; to filch. Also figurative.

Or it's spoils of war or it's pilfering. It can't be both. Especially when a country with 27M of casualties is accused of robbing[0] the country which inflicted those casualties.

Do I need to provide the definition of the word 'steal'?

https://news.ycombinator.com/item?id=40388461
Maybe because that's what they themselves believed?
After several blunders and broadly panned demos Google is completely panicked at this point trying to appear on track with AI.
Meanwhile others are pushing out products that increasingly make Google’s cash cow irrelevant. Get your popcorn out.
Pointers to arrays are an incredibly rare thing in real-world C programming, let alone functions returning them. They contain the same address as a pointer to the beginning of that array, with the only difference that pointer arithmetic will be done in sizeof(arr) steps, not in element-size steps.

It is a widely accepted practice to typedef pointers to functions.

With pointers, more than 2 levels of indirection is an indication of a badly written program.

In practice, the most complex declarations you should write are "pointer to pointer to x", "array of pointers to x", "array of function pointers returning x". Stuff like "pointer to function returning pointer to pointer to array" is nonsensical most of the time.
I’m 21, have been following HN since I was 18, from Asia.

HN is perfectly accessible for younger folks, if you make it more accessible for casual unserious people, you’ll start getting more and more casual and unserious conversation.

The UI is a good filter to remove folks who need hipster UI to just use a platform.

HN is fine.
Neuralink Knew Its Implant Likely to Malfunction in First Human Patient
What has worked best for me is to disregard d3 attr. Attr made sense a long time ago but now if using a framework it is just so much easier to work with SVG elements directly instead of so many attr just for svg attributes.

You still end up finding a million ways to use the d3 library even if you never use attr at all.
Designing a Multi-Tenant Federated GraphQL Schema
Does anyone else notice that quanta consistently has good illustrations and diagrams for their articles? Good visualizations and graphics can do extraordinary things for the understandability of a topic -- people like 3Blue1Brown understand this, and I'm glad quanta puts effort into it.
Let's be snarky a bit:

Can you do a neural network that, given a starting position of the game of life, decides if it cycles or not? ;)

Ok, not cycles... dies, stabilizes, goes into a loop etc.
This has got to be the most insane comment in this thread.

“Hey, I’m going to hold a gun to your head. If you don’t give me $100 I’ll shoot you. Remember though that the cost incurred here is a choice you’re going to make if you disagree with my actions. I can’t truly force you to do anything…”
But the OpenSSH they have in OpenBSD is maintained in-tree I think. And then they have the portable OpenSSH that they maintain separately for other systems to use. And then changes in either are probably integrated into the other keeping them largely the same.

But there surely are some features in either that are intentionally kept out of the other?
TIL why we have the Bipasso sockets! And why I have to bestemmiare a lot whenever I have to purchase a multipresa ciabatta. Thanks for sharing.
I honestly don't know what special kind of idiot OKd this project. In any finance org, or finance dept of public cos, these chats will include material non public information. If such information leaks across internal Chinese walls or externally, Slack opens itself up to customer litigation and SEC enforcement actions.
The thing that killed Google for me isn't the AI, but seeing issues that clearly indicate bad search engineering versus simply search engineering designed to make Google more money.

The most obvious one was personalization. The pitfall of personalization is that a search system clings to a single past query or event despite all other data indicating it's an outlier. I've seen this on a lot of other search systems I worked on personally but I have not seen it on Google before. There's a lot of ways to deal with it if you have enough people and data which google definitely does.

edit: The reason this is so indicative of a declining engineering culture to me is because over-personalization looks amazing on offline metrics. So if you have PMs driving focus decisions based on offline metrics they don't fully understand you get over-personalization. If you do it slowly enough then users simply deal with it so online metrics looks slightly positive. Then one day you realize you're now losing users and your search is useless. But every AB test was neutral or positive. And due to politics you can't roll anything back or even test rolling it back.
> offline ... with object detection search ... All I want is an app which I can point at a folder and then search for "cat" or whatever and have it show all the pictures with cats

From yesterday on HN:

Desktop Docs is a Mac app that lets you search all your photos and videos in seconds with AI.

Once you find the file you're looking for you can resize it, export it to Adobe Premiere Pro, or drag and drop it into another app.

I built Desktop Docs because I keep tons of media files on my computer and I can never remember where I save stuff (lots of screenshots, memes, and downloads). The Apple Photos app also only supports photos in your iCloud.

Desktop Docs supports adding folders or individual files to an AI Library where you can search by the contents of your files, not just file titles.

You can search by objects ("cardboard box"), actions ("man smiling", "car driving"), by emotion ("surprised woman", "sad cowboy"), or the text in the frame (great for screenshots or memes).

It's also 100% private. Make any media searchable without it ever leaving your computer.

https://news.ycombinator.com/item?id=40371467%0A