skysight-inc/HackerNews huggingface dataset:
In C and C++, Undefined Behavior basically says it's safe for the compiler to assume this hasn't happened, because as a programmer it's your responsibility to ensure it's impossible. This might not have been so bad if completely normal things (such as signed integer overflow) weren't UB. It's not safe to assume the programmer did it correctly, and it never will be. So, these languages have tons of footguns.

UB also exists in Rust, however it's only supposed to exist in unsafe code, and even within unsafe code, you still benefit from Rust's great RAII, move semantics, deterministic destructors, and so on. It's still UB to index past the bounds of a memory region (well... uhh, insert Stacked Borrows or Tree Borrows here, this gets much more complicated, but you get the idea) but you can only do this unchecked from unsafe code, otherwise it'll always be checked and will panic if you attempt an out of bounds access.

When unsafe code is a special delineated section, you're less likely to forget to be very careful.
So far the situation with ActivityPub is that the protocol is flexible enough to allow very different feature sets and user experiences. The most popular so far are twitter-like and reddit-like, with multiple implementations of each. I don't think ActivityPub was designed with the reddit-like use case in mind, yet it works well for that. There's no user revolt because the creation of new software with new experiences doesn't have much impact on users of existing software.

Enshittification is hindered not because nobody could create a Mastodon fork (or green-field project speaking the same protocol) that's riddled with ads, but because people can select a different service provider and still access the same network.
Im pretty sure we both agree that equality should not depend on the look of the character, as you said you prefer byte comparison.

Treating different byte encodings of the same character as equal makes sense to me, because the different possibilities of representing the characters are just an artifact of the encoding. It’s like comparing negative and positive zero floats. It’s the same value, but the encoding allows multiple equivalent representations.

I wouldn’t call the matching after normalization fuzzy, because the thing you want to compare is the actual characters, not the way they are encoded.

You’re right that doing normalization when diffing files would be wrong, but that’s because you don’t want to compare strings when doing diffs, you want to compare binary representation.

Edit: to make my point more clear:
If I give my string comparison function different strings containing the same characters, but encoded in different ways (for example UTF-8 and UTF-16), I would expect the function to tell me they are equal, because the function is supposed to compare the string content, not the way it is encoded in memory.
Nah, if you don't set up on a train station platform and do all your work from there you simply have a mind issue and should learn how to deal with distractions
Cool. Now do it for a 3,000 person org with varied tech skills and patience.
Looks cool but what's one toy problem that it can solve more efficiently than others?
Because the rest of the industry is managed by people who don't care about code, and puts people who become coder after a couple of udemy videos in position of charge
An easy way to identify who copies code without understanding it.
Apple Pencil Pro and iPad Simulate a Shadow of the Pen Being Emulated
Presumptuous of you to assume that my team does not already work like that.
GDPR: Is It Worth It?
I'm confused - how do the vandals stop the train?
As others have pointed out, the answer is moderation. High quality, diligent moderation. Reddit is the ultimate proof of this. A highly moderated, focused subreddit can be a wonderful place. A loosely moderated subreddit quickly devolves into memes and lowest common denominator posts, which is totally fine for specific subjects, or even meme-based subreddits for a given topic. If you want quality, you have to invest in it. It doesn't just happen. The good news is that it's self reinforcing. Once you have something good, people start policing themselves and others. This can go overboard of course, but it can be a good a really good thing. I often see comments here along the lines of, "comments like this are not welcome here".
It's all about whip cracking! Who knew that was such a thing. Like the mindless honking horn of the past. Thanks for sharing :)
This actually comes at a good time. I'm currently refactoring a system that counts visits using inserts into a table, with a tuple of date and IP. I was planning to replace it with a HLL approach, but this is really interesting.
Julia is not so different, implementation started in 2009 (I don't know how far before it was planned). Why is it new and Python 3 old?

https://github.com/JuliaLang/julia/commit/a9cbc036ac62dc5ba5...
There are a number of Pyramids in Mexico. Unless your definition of "this type" is very narrow that disproves your point.
ChatGPT Tool: Token count / Fine Tuning file creation
From a quick peek...

% whois southernmaskist.org | grep found
Domain not found.

...I'd say that founding a new religion could be a quick fix.

And conveniently, the Old Testament is loaded with Commandments from God on the subject of preventing the spread of infectious diseases.
It’s interesting that you wouldn’t, yet I would.They aren’t isomorphic, for sure.

Go’s complexity comes from two players alternately picking one out of a very large number of options.

GoL’s complexity comes from a very large number of nodes “picking” between two states. That’s not precise, just illustrating that there is some symmetry of simplicity/complexity, at least to my eyes.
> I'm just saying that the tend the other person saw in Finland has logical support here. It can be evidence of how effective a policy is for specific scenarios (models). If someone is is not alert to the danger, then the means of escape are logically moot in those situations.

No, you didn't identify any logical support. If the American policy ensures that people who are aware of the danger always survive, then (a) that is what the policy is supposed to do, and (b) it will guarantee that American fire deaths all happen to people who were not aware of the danger.

Given that, if the policy worked as advertised, it would guarantee exactly the observation that you see, it cannot be the case that this observation is evidence against the effectiveness of the policy.
Brexit is (maybe) the ruin of Irish whiskey
> Rust is the en vogue tool of the moment and it's objectively harder to read than C

If this is "objectively" true please link the study which was able to somehow measure that.
Is it me or is the description of the algo wrong?

> Round 1. Keep going through Hamlet, adding new words as you go. If you come to a word that’s already on your list, flip a coin again. If it’s tails, delete the word;

If i follow this description of "check if exists in list -> delete":

if hash_set.contains(word) {
if !keep_a_word(round) {
hash_set.remove(word);
continue;
}
} else {
hash_set.insert(word.to_string());
}

The algorithm runs for ~20 iterations:

Total word count: 31955 | limit: 1000
End Round: 20, word count: 737
Unique word count: 7233
Estimated unique word count: 772800512

But if I save the word first and then delete the same word:

hash_set.insert(word.to_string());

if !keep_a_word(round) {
hash_set.remove(word);
continue;
}

It gets the correct answer:

Total word count: 31955 | 1000
End Round: 3, word count: 905
Unique word count: 7233
Estimated unique word count: 7240
Reminded me of a tool that I created and use daily (and that I need to get back to adding some functionality to!) Among the things I need to do are... add a readme! But it's a low friction (for me) way to keep a log of what I've done. Basically just a digital notebook, inspired by the lab notebooks I saw whenever I went to my dad's chem lab when I was young and what we like software to do when it changes something. Keeping a record of what you've done has been incredibly helpful for me and I've gone back and referenced it many many times.

I happen to write in an obsidian-friendly markdown syntax but it's not enforced. Day and year headers are added automatically and each entry is timestamped.

https://github.com/bryan-lott/rust-lab-log
Thanks! Though definitely the shoutout goes to the Spritely team in general, particularly the Hoot team, and in this case, particularly David Thompson, who put together that lovely game jam template with the breakout clone! :) It's truly incredible working with such a talented team of people every day.

(And hope that was meant to be "shoutouts" and not "shootouts" ;) !)
Removing rights should never be considered a “difference of opinion,” what a completely asinine response to a state government that has literally taken away bodily autonomy against Americans.
You don't think people in low income areas are concerned about crime in their neighborhoods?
Yes, and I think that's the correct expectation to set. I don't even disagree with its design choices - I like the composability of pure functions as much as the next guy.
Spot color has a place in my heart. I remember back in the early 1980s when every article in Scientific American had illustrations in black, white and one other color which varied with the issue.

Up until 1974 they had the illustrator Rodger Hayward

https://invention.si.edu/illustrating-amateur-scientist-scie...

who would draw a laboratory setup including a stool and I knew he knew exactly how to build the stool.
Contrast with John von Neumann, who "could not work without some noise or at least the possibility of noise. Some of his best work was done in crowded railroad stations and airports, trains, planes, ships, hotel lobbies, lively cocktail parties or even among a bunch of shrieking very minor minors whooping it up."
Parallel construction. People will just work backwards from the endpoint.
Military tech used to be something to frown upon, and now it's a noble thing again, almost on the same category as charity. Working harder for less to save other people's lives and freedom. At least this is how we see it from inside Ukraine now.
According to ANSI C84.1 (which I believe is the relevant US specification), there is a tolerance of +/- 5%, which would put 127V just barely out of spec.

I could imagine that utilities calculate some average base load and adjust transformers accordingly to accommodate the expected voltage drop, given that 110/120V is relatively low and drops can be significant?
Communists as in ceasing land from everyone and putting it in the hands of the party elite?
u-boot is so useful. Recently I used it to ping between 2 devices to prove a hardware issue, and not waste time troubleshooting linux things.
What about this company makes it "tech"?
Like the 6 independent 24-satellite (plus spare) constellations that constantly orbit Earth and output synchronized beacons accurate to nanoseconds?
Incredible production on their part, learned a lot. a few content creators spend this much time and effort and are eager to deliver such detailed content on such niche subject.
Well, clearly your first problem is that you want it to be that large in the first place. 30cm ought to be enough for everyone, if it's good enough for TSMC it's good enough you.
First, they're never "tight knit". That's probably impossible with anything over Dunbar's number. Second, with absolute certainty, the vast majority of those people hate the vast majority. There, the social and political life of those people id structured so that maybe about 3-5% of them can be important and have high status, and they're all willing and capable of murder to take that high status away from those who already have it. Finally, they really do know everyone's secrets, including who murdered who to achieve the high status.

If you lived in such a town as a child, you might not have picked up on any of this, because there's this thin veneer of civility. It's not so much a community, as it is a collection of people who, by accident of birth and geography, happen to live within distances of each other where municipal incorporation was inevitable.

Whether this meets your personal definition of community or not is a matter of opinion, but it probably correlates really well with whether you are cynical or hopeful.
And probably one of the most unsustainable ones, given the nature of their business…
Just an FYI this type of watch design is usually referred to as "field watch". It originated in watches that were designed and made specifically for soldiers during WW2 in UK and US. Hamilton is known for making modern versions of these, with the appropriate price tag (slightly under $1,000). Many other companies have these, Timex being the most budget-friendly, but any self-respecting brand has field watch designs (Seiko, Citizen, Casio, Rolex, Orient, etc etc). You can go quartz or mechanical, your pick.

As for everyday watch, nothing really beats budget digital watch, like the cheap ones Casio has been making for generations. F91W is literally (not figuratively) 5 to 6 cups of coffee, and it will outlive you. Not to mention that you can pick up a clone on AliExpress under a dollar and it will work just as well.

Edit: spelling
Domain Declarative Coding in Swift
Ancient trees reveal last summer hottest in 2k years
That's how to get your internet to dry up.
There is step debugging available in Guile plus Geiser, but it's not very reliable. You can call ,next for instance, see: https://www.gnu.org/software/guile/manual/html_node/Interact... https://www.gnu.org/software/guile/manual/html_node/Debug-Co...

Unfortunately the problem is that Guile optimizes away whole chunks of code, and thus debugging information is not as good as it could be, and if you set traps they might be optimized out too. My understanding is that this could be made better, but could use a champion.

(The other trick is to turn off the optimizations when debugging, which is sometimes what I do.)
I had this belief that my kids needed their own rooms but two of my kids seem firm they want to share (bunk bed available). If nothing else it's a luxury that they have a space to retreat to if they seek solace but they seldom do this.
You can just replace it with something like: print ('Invalid thresh or something')
What’s exactly the deal with Brazil’s multitude of standards?
Zep: Renderer Agnostic Embeddable Editor
I was OCRing documents with ABBYY or Tesseract in 2000s if not a little bit earlier. I have been OCRing text documents with my phone for the last 6 years or so, with Prizmo.

It was taking seconds back then, too.
Is this ChatGPT? Also, I feel like this would be more useful if it included import statements.
> Which is funny, if anyone is able to do it, I'd expect OpenAI could mechanically filter out gore and porn simply by feeding it to an internal GPT vision model to classify images as NSFW or not.

You’re almost there!

Let’s try again.

The company that has created a thing that they have hyped as an everything machine, so they can sell it, to the point you believe it is an everything machine refuses to consider using it as an everything machine, implies… what?
Like this:

https://youtu.be/vg5OrytF_a0?t=65

TL;DW: Basically, the conductor alerts the police and stops the train, once they realize that the train is being decorated. If they started moving forward, it could seriously endanger the graffiti sprayers. So that's really the best course of action here.
love the goose palace! https://map.simonsarris.com/p/the-goose-palace
It's not tech, it's clothing & accessories shopping in a sector that's starting to get crowded (Alibaba, Wish and the much talked about Temu...).
> If you want a reasonable "just-works" minimalist design, you have to buy a used car prior 2010. Anything newer will suffer from those issues.

Afaik both China & India have some EV models that fit this description. (Relatively) simple, and cheap.

But those are either not street-legal in EU or US because 'reasons', or there's import tarifs high enough to undo any cost advantage.

Just replace ICE with electric drivetrain, do the minimum necessary to meet legal & safety requirements, but cut out (most) modern conveniences / luxuries, telemetry, self-driving etc. Then you'd have a winner.
import math
import random
> Which is why expect to see a government run social media platform in the next few years

I would expect government run social media to be especially enshittified, honestly

Just for different reasons
StackOverflow's canned moderation response for AI
Don't forget that the world population has been exploding. We have a lot more "bogus" in the world now.
You only have to build them were tracks are close to homes.
France blocks TikTok in New Caledonia, making EU's first TikTok ban
Once again proving the need for comments in code. Especially for comments that are more useful than "initialize parameters"
My home used to get 4 Mbps down until water got into the paper insulated trunk lines and became unusable. My new pair maxxed out at 2. So happy that all my broadband internet surcharges were spent on improving the customer experience.
Here is an example of it summing a huge set of numbers 100x faster than in C.

https://github.com/HigherOrderCO/bend/blob/main/GUIDE.md#par...
Easy to water a backyard tree with a laundry to landscape greywater setup.
As someone with not too deep knowledge into the fashion industry, isn't Shein basically the same as H&M, which has sustained itself for more than 70 years? How are they different? Both seem to have a focus on fast fashion, although Shein seems to focus more on online sales compared to H&M.
That's just more "cause marketing." The first ever $3T company definitely considers the bloody ROI in every decision -- whether the CEO is willing to admit it publicly or not.
GEM isn't worth growing -- it's not that good of a fruit. Hass does just fine even in high heat. Just plant the tree in a spot that gets some afternoon shade.
Because we live in a post-internet, post-social media, post-smartphone world. Seems like everything new requires me to sign up and pay for a subscription now.

I have no reason to believe gas stations that wouldn’t require an app if they were invented today.
Linus Torvalds on Dogfooding the Linux Kernel
> the model(s) they train are specific to your workspace (not shared between workspaces)

That's incorrect -- they're stating that they use your "messages, content, and files" to train "global models" that are used across workspaces.

They're also stating that they ensure no private information can leak from workspace to workspace in this way. It's up to you if you're comfortable with that.
$ sudo apt install cdecl
[…]
$ cdecl
Type `help' or `?' for help
cdecl> explain char *(*(**foo[][8])())[];
declare foo as array of array 8 of pointer to pointer to function returning pointer to array of pointer to char
cdecl>
Theres a whole category of products that is just a keyboard with a tiny 3 or 4 lines of text lcd. (google electronic word processor, or Tandy WP-2).
Probably not as popular today as they were back in the early 90s before everyone had a Pc, but I think they're still manufactured.
Oh yes, I have.

It is called Black Screen for Windows. With it, you can make your screen black by pressing a key combination.

I set it up to make my screen black for 5 – 7 minutes after every 30 minutes of work. It forces me to take periodic breaks, not to sit at the computer for too long.

It is a cool tool to refresh attention too.

Feel free to check it at https://blackscreen1.com/
Show HN: Django-import-export v4 is out
django-import-export is a popular application and library for Django. It supports import / export from / to a number of file formats (csv, json, yaml, xlsx, etc) and includes integration with Django's Admin UI.

v4 contains new features which allow for interesting and exciting ways to manage and extend data import and export.

We'd love to hear feedback on what works and what we can improve.
> So why can't we learn the smaller one directly?

The lottery hypothesis intuitively makes sense, but as an outsider I find this concept for evaluating learning methods really interesting - To hand craft a tiny optimal networks for simple yet computationally irreducible problems like GoL as a way to benchmark learning algorithms. Or is it more than that? for a sufficiently small network maybe there aren't that many combinations of "correct solutions", so perhaps the way the network emerges internally could really be interrogated by comparison.
Ask HN: Anyone dislikes GitHub action yaml syntax?
feel the syntax is too flexible, don't know if it should be ok or not to write this way, don't like it somehow...

maybe not too bad after getting familiar with it... haha...

comments, suggestions on how you ... thanks...
Domestic cats don't affect the food supply of large raptors because those cats are where people are, and where large raptors, for the most part, aren't. (The peopled places that have largish raptors also tend to have a surplus of pigeons.)

Raptor hunting has been illegal for decades in the US.
I regularly use Nitro PRO for redaction. It's proprietary but I don't know of any OSS tools that focus on redaction.
https://www.gonitro.com/pdf-pro
Finding the dominant set of a graph in JavaScript
Do I understand correctly that they are saying "LLM is out there, you can't do anything about it, and we own your contributions so it's not exactly your choice there either"?
As long as we're picking anecdata, I like generated AI overviews and see them as one of the best tools for combating SEO junk and all manner of other anti-user, low-information density, pages.
Companies do care: Why would you take additional risk of data leakage for free? In the best case scenario nothing happens but you also don't get anything out of it, in the worst case scenario extremely sensitive data from private chats get exposed and hits your company hard.
Everyone knows TSMC can't make the newest AI chips that have to multiply a 1,000,000,000x1,000,000,000 matrix every clock cycle. What if you're trying to compete with Nvidia?
I don't think there is a single variable name or comment in this entire code block that conveys any information. Name stuff well! Especially if you want random strangers to gaze upon your code in wonder.
> sn't Shein basically the same as H&M,

Compared to Shein H&M is a luxury brand.
This is very interesting but I feel like the name suggests it's an animation or graphics program more directly? That might be a branding loss
Orient is also worth a mention as their value and quality are similar to Seiko and Citizen; Orient Bambino and Mako are popular alternative models to Seiko's line of divers and dress watches.
Their logistics and on-demand production is night and day ahead.
>In some symbolic logic classes, that character "bottom" represents "false"

That's unfortunate, because in the study of computer programming languages, it means "undefined" (raise an error).
They function D2C through their website, rather than having brick-and-mortar stores.

Thats enough to classify them as 'tech' I guess.
And in my experience, it's often wrong on some towers. I can't enable the setting on my phone to automatically set the time from the network, because if I do, it gets several minutes out of sync with the real time, which breaks TOTP generation.
I think the comment you are replying to was tongue in cheek.
I need to replace my existing tankless water heater and plumber uses Navien. They offer multiple modules to start recirculating including hardwired button, led screen control and of course and IoT capabilities. I considered the button for convenience and IoT module just to integrate with the rest of house, keeping preference for physical when adding Smart Control.

I added door sensors to my LG washer and dryer. Along with access to their platform for knowing when the machines run and complete I have some logic of whether clothes are present or at least the door not opened. Haven’t done too much with it as I need better dashboard and visual indicators somewhere that is visible to everyone.
The last sentence in the article seems like a clue.