skysight-inc/HackerNews huggingface dataset:
The bug in question was a out of bounds writing to a stack allocated buffer. The compiler would choose to store some variables to registers for optimization purposes. When calling a function - these registers' contents would get pushed to the stack. The faulty called function would modify those same register contents on the stack. When returning to the parent function and restoring the context - the registers would have faulty values.

When adding a print or a check - the compiler would choose different variables to store in the registers. They would still get overwritten by the faulty function but the bug would not be observed.

I agree that it's almost never the compiler's fault though - but sometimes its optimization choices make it harder to reproduce a bug.

Edit:
The faulty function was a somewhat standard function, part of the SDK. This taught me that the standard functions are almost never faulty. Until they are :-)
> just google analytics or something like that wouldn't be that bad

Google Analytics is the worse. Not on an individual website but by the fact it is almost everywhere. So Google has been getting everyone's web history since more than a decade.

Add Android, gmail, the social "share" or "login with" integrations and any Stasi member would have called you delirious for thinking this kind of surveillance apparatus was possible. Even more that people would willingly accept it.
> What is going on here and what's with this crazy ass logic?

Nothing is crazy about it. Many people in this thread (like you) are in a tizzy over a concrete wall for a plane landing with no gear at high speeds. Your argument is basically "having no wall would make me feel better" which has no logic and very obtuse.

The ground is also a hard obstacle and this plane would've hit uneven ground shortly after the runway regardless. It's going to disintegrate either way.
The trouble is that docker seems to default to using 0.0.0.0, so if you do `docker run -it -p 8080 node:latest` for example, now that container accepts incoming connections on port :32768 or whatever docker happens to assign it, which is bananas default behavior.
This is what I always use. It looks like a code smell, but it's extremely easy to read and even someone that just learned Python yesterday can understand what's happening.

If I need a lot of state, I'll make a class to go with it. But usually it's just your example.

One variation I use is if you don't want the connection module knowing how to get the connection settings, you can make another method like init_connection(settings) and then get_connection() just throws a RuntimeError if it's not initialized yet.

_connection = None

def init_connection(settings):
global _connection
_connection = create_connection(settings)

def get_connection():
if not _connection:
raise RuntimeError("Connection must be initialized before trying to use it. Make sure you call init_connection() in your startup.")
return _connection
Study Shows EV Batteries Maintain Nearly 90% Capacity After 200k Km
Ask HN: Performance review coming up, when to ask for a raise?
We have an annual performance review period, in the one from the previous year I was thinking about asking for a raise but I didn't do it because my boss told me he talked with the CTO and they decided to give me a raise. The % was a bit lower than what I was going to ask, but it felt weird to ask for more after they did the job and finally decided the number.

Now the new performance review is coming and I'd like to ask for another raise but I don't know when it's the right time for it. I'd like to avoid the previous year experience.

This is the process:
1) I have to do an self evaluation
2) My manager does his evaluation of my perf
3) My manager talks with other people to "calibrate" my perf
4) We have the perf review meeting

Last year my idea was to talk about it after (4) but I don't know if it'd be better to talk about it in an earlier stage.

What do you think?
excellent piece
You can realize that you, a Norwegian software engineer, are in fact already rich compared to 95% of the people living on this planet.
> There's no need to go to extremes

Agreed, honestly if an argument is made and it makes sense, it doesn't matter who is on the other side.

> no matter how embarrassing and notably laughable your comment was.

I wouldn't even call the original comment laughable, they had a point - if you are in control of significant parts of the overall solution, then you can most likely mitigate most of the issues. And, while not a best practice, there's nothing really preventing you from sneaking in the occasional keepalive type response in the stream of events, if you deem it necessary.

The less of the infrastructure and application you control, the more likely the other issues are likely to pop up their heads. As usual, it depends on your circumstances and both the original comment and the response are valid in their own right. The "extreme" response was a bit more... I'm not sure, cringe? Oh well.
Since we're talking about a home network, definitely. Don't accept connections from public internet straight into your home unless you're OK with the consequences of that.
Few years in my ago we had telemarketing company. "Good morning Orange".
No, that was their name. People thought they were from Orange company, but they just were stating their full name ;)

So many people got scammed.

It's also why I don't have any respect for the sales people.
I love how the descriptions after the prompt was fixed now read like the descriptions of the scenes in the 1982 video game The Hobbit.
There is a Just Stop Oil version where you can throw a bucket of orange paint over the paintings /s
I'm reading this in the voice of the mad scientist from a 1950s B-Movie.

(Seriously, it's only a few hundred words).
.----.
.---------. | == |
|.-"""""-.| |----|
|| || | == |
|| || |----|
|'-.....-'| |::::|
`"")---(""` |___.|
/:::::::::::\" _ "

/:::=======:::\`\`\ `"""""""""""""` '-'
Location: Los Angeles, CA

Remote: Yes

Willing to relocate: Yes

Technologies: Typescript React (zustand, mobx, redux), Next.js, Python, FastAPI, Node.js, jQuery, Tailwind, CSS, AWS, Docker, Jest, Cypress, Figma, AI integration, Firestore/Firebase, PostgreSQL, GraphQL, Docker

Website: https://www.denniscao.net (resume is on there)

Email: dennisrcao@gmail.com

Hello! A software engineer with 5+ years of experience building out full stack applications, I've been contracting for the last 6 months and my clients include Amazon (built an interactive touch screen for their Nashville warehouse event opening) as well as writing an AI web scraper for a client.
Also have a background in EE / Digital signal processing and audio/music.
That is amazing research! Reminds me a bit of the 2017 research of RCE on a DNA sequencing machine by synthesizing shellcode in actual DNA/RNA molecules [0]. I was gonna say "next up: OSC" but I guess MIDI is still dominant.

[0] https://www.usenix.org/conference/usenixsecurity17/technical...
A bowl of yogurt would help but is not really that much extra protein. Definitely not near the extra protein serious gym people attempt to consume.

And that's if you can even process a high joghurt diet without issues which isn't the case for plenty of people.
I reject this line of reasoning because by it the best meal is other humans. If you accept that eating other animals is OK and eating fellow humans is bad then you are halfway to the next step, where eating fellow animals is bad and eating non-animals is OK. Just be smart about your diet. Call yourself sapiens not for nothin'!
Max Lumi, which is now a couple of cycles old. It's the 13.3" tablet.

Looks as if its current rev is the Note Max, Android 13, and a resolution of 300 dpi (the Max Lumi is 220 dpi, which is already damned good). That's pretty much laser-printer resolution (most are effectively ~300 -- 600 dpi). I wish they'd up the onboard storage (Note Max remains at 128 GB, same as the previous device, mine is 64 GB which is uncomfortably tight).

The Android rev is still a couple of versions old (current is 16, released December 2024), though I find that relatively unimportant. I've mostly de-googled my device, install few apps, and most of those through F-Droid, Aurora Store where that doesn't suffice.

If the Max is too spendy / large for you, the smaller devices are more reasonably priced. I went big display as I read quite a few scanned articles and the size/resolution matter. A 10" or 8" display is good for general reading / fiction, especially for e-book native formats (e.g., ePub). If you read scans, larger is IMO better.

I'm aware and not happy with the GPL situation, but alternatives really don't move me.

Onyx's own bookreader software is actually pretty good and sufficient for my purposes, though you can install any third-party reader through your Android app repo you prefer.

My main uses are e-book reading (duh!), podcasts (it's quite good at this, AntennaPod is my preferred app), Termux (Linux userland on Android). For Web browsing, EinkBro and Fennic Fox (as mentioned up-thread). The note-taking (handwritten) native app is also quite good and I use that far more than I'd anticipated.

If you're looking for games, heavy web apps, video, etc., you won't be happy. If you're looking for a device that gets you away from that, I strongly recommend their line.

I've commented on the Max Lumi and experience (positives and negatives) quite a few times here on HN:

<https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...>
If you have NAT64, DNS64 and use “IPv6-mostly” option 108 on DHCP, then CLAT will be activated on supporting devices automatically - and then you can turn the dhcpv4 off when you see no leases on it :-)

By now there is a fair amount of material, eg:

https://indico.cern.ch/event/1274792/contributions/5444353/a...
Situation: there are 14 competing JS logging APIs.

https://xkcd.com/927
> ...gluten is something that seems to be a culprit of IBS symptoms in certain people. That doesn't mean that gluten is bad, just that it causes a poor reaction in some people...

This is also my take on it.

I've watched it first hand with my wife -- who is 1/2 Italian -- giving up pasta and bread in the last few years. It has made a huge difference in her daily quality of life with respect to digestive issues (mainly bloating and gassiness).

Gluten is a protein so it's not hard to imagine that either this protein is not easily digested by some folks or some byproduct of its digestion feeds some specific gut bacteria that produces inflammatory compounds. If Celiac is a full blown immune response to inflammation caused by gluten, then it seems reasonable that some folks would have a spectrum of reactions to barely registering it or somewhere in between (like my wife).

It's possible that it's some other compound that's prevalent in wheat, but avoiding wheat-based products has been life changing for my wife. I would add that this has developed with age similarly to how she has become lactose intolerant as well around the time she turned 40 so if you're in your 20's or 30's and you think this is malarkey, well, give it time (and really enjoy your lactose and gluten!).

Why folks downvoted the original comment, I don't understand; this is based on firsthand experience hacking her diet and observing how she felt. I'm not here on some anti-gluten crusade (my kids eat and enjoy plenty of gluten for the entire household!)
Hugging Face and Pruna AI: SmolLM2, Now 7x Smaller and 2x Faster
I was thinking a hose break not a seal which would fall much faster. Which is why you would design them slow - if a hose breaks they are still a safe fall. (of course if you make them fast then you need more inspection, a trade off)

That said I'm not an elevator expert. The details I've given so far is about all I know. So if/when someone claims to be an expert and contradicts me - well they could be right.
There isn't a consensus on the meaning of gender.
>Finding and fixing product problems requires decentralized decision making and trust.

Which is exponentially harder in a large company - hence why OKRs are invented.
I used to work in real estate. My boss, an experienced agent, told us that the most powerful phrase an agent can use is "I know that house". As in, they'd been in that house before, knew the construction, location attributes and history.
It's what the consulting class invented to lift the power that agile places in individual teams back up to management.
An very reliable, very unethical test would be to deploy LLMs on the internet as humans and gauge how other humans react (ignore, call out as LLM, engage, etc). There isn't much in the way of stopping a company from doing that (there should be!).
Mercator Projection: The Greenland Problem (2017)
I did such an experiment in Canada, tracking calories and nutrients and found I could live on about 100$/month, or 3.30$/day. Although I did not reach 100% daily value for all nutrients, there were no catastrophic deficiencies (nothing under 50%).

However, if I had to save the most money, and the most time, I would definitely opt for something like Soylent or Huel. Except these are not available in Canada, and they cost way too much. I found a website where people share recipes for DIY soylent (completefoods.co) and tried one. I only bought a small batch of ingredients so the cost per day was around 3.30$, but if I had bought in bulk I'm sure I could get this down to about 2$/day. And technically, this would be the most nutritionally complete diet I ever had. If a multivitamin pill cost about 0.05$/day in bulk, so why would I spend so much on vegetables?

That said, the taste isn't great, there's no variety, and I'm sure it gets boring after a while. But it was a fun experiment, and it's enlightening to know how little one can spend to eat while the average spend for food is like 400$/month.
I loved the idea of Lunch Money, but I bought it for a year and really never got anything out of it. This was probably 4 years ago so maybe it's changed now.

I think my biggest lack there was that I really needed to see INTO my spending to get value, in particular Amazon is a large blob that I really needed more information on: I get groceries, home repair, toys, tools, work, clothing, health, entertainment. Without seeing into that, all the action I took on Lunch Money really only gave me information on my non-discretionary spending.
Expect I've given you a concrete real counter example of where they do treat copying in memory as 'making a copy'.
Ooof.

They are out there; I've worked with them. They're still salespeople, trying to close.

But the good ones are trying to close you as a customer for the next N deals, not just this one.
Obviously you have to consider where the hell you're living. In the UK I eat oats all the time and they're dirt cheap. I knew a guy when I was in japan who ate oats every day. I thought he was absolutely insane. You could barely buy oats there. I ate brown rice mixed with barely to get nutrient rich grains because it was actually readily available and affordable. Let's not be stupid out here and act suprised when our ideal diet in one country is too expensive in a totally different climate - there are many plants in the world, use something else. Oats are only so revered in the west because they're a good thing that is AVAILABLE.
I'm in the same boat, but have decided one day to take a closer look at my spending and trends over time, but it appears all the apps are budget-first. YNAB is one of the better ones though, you can install a browser extension for better reports and completely ignore the budgeting parts and use it mostly for the bank sync part, and it works. For US banks I suppose it will work like a charm. I'm in the EU and due to specificity of my bank there were issues, so ultimately I ended up with a custom solution processing .csv files exported from the bank.
Oh sorry, https://en.wikipedia.org/wiki/Join_or_Die

We had a showing of the movie that my organization sponsored at Cornell cinema. A few of the people from my office were in the movie and were at the showing so it made me think of the ending of Pee Wee Herman's Big Adventure.
There are still plenty of vintage vinyl, cassette, and VHS stores. Lots of runway left for even younger niche markets.
Just Hard Work
The sooner the better. The numbers are usually locked in at step 3, so talking about it after step 4 means you missed your chance.

Have a number in mind and propose it to them now. Inflate it a little so if they only meet you part of the way you’re still happy.

If you feel like you’re a very valued member of the team, let them think you’re going to walk. If you’re not, don’t or they might just do it for you rather than deal with the situation.
My wife is also on Vinted. We use it also for young children clothing. It is great if you use cheap shipping options, and combine items.

For old computer stuff, I gave away quite some stuff to people driving to Ukraine. This then goes to kids or their cause.
My favorite ones are the comment threads for sentimental songs from the 80’s—you just get a flood of heartbreaking stories from older folks talking about their first loves, now passed on.
Agreed that this is a good post.

I like how they focus on LLMs being one more tool in the toolbox of product building, rather than a silver bullet.
CrystalFetch: macOS UI for Creating Windows Installer ISO from UUPDump
That minimum is just a rule of thumb for people that don't want / can't have medical supervision.

There was a pretty well covered case something like 15 yrs ago of someone massively obese that completely stopped eating and only consumed supplements to keep the bodys micro nutritions In order (which was continuously monitored by doctors). Iirc, he kept it up for 2 years until he got his target weight.

It's definitely a solid advice to keep to that rule of thumb though, albeit it'd say it's mostly a caloric delta you've gotta worry about: don't go beyond a sustained deficit of ~1k (consumed calories - used calories). It's fine too spike it occasionally in both directions, but going beyond will likely get you in trouble unless you're monitoring your health very closely
yeah every now and then i think about bringing my food bill down like i used to in uni but i just know now that that food was literally fake nutrients and i can't do that to myself - my health is the cornerstone of everything else i do.
They are the political option. They disrupt the surface the least and so there are less political objections even though they cost more around the world.

Tunneling engineers do what the customer says. They will tell you what the options are and what they cost then let the customer choose the evpensive option if they want. Their job isn't to choose between options it is to eliminate the impossible (unsafe) ones and let the customer choose the pros andecons of the rest.
so a very fast untested fighter with very limited armament vs. something that can't be detected by any known radar and has flown thousands of combat missions, with multiple different version, including one with VTOL and can do air to air, surface to air, and even nukes?

It wouldn't be close at all. The j20's wouldn't be able to detect the f35 and the F35 can hit it with an air to air missle 350 miles out.

From the Article you linked:

""“The J-20, in my estimation, would be dead long before it had the ability to maneuver against either the F-22 or the F-35. It’s got enough spikes on it to where the radar returns on it are likely to be much more significant, which means that the F-22 and the F-35 can see it a lot farther away.”
If by some chance you haven't stumbled upon Montaigne, I'd encourage you to try.
You're perfectly right and it's what occurred to me when I lived in Japan, too: you do get to see 'abberant' spellings quite often and that's because train companies decided many, many decades ago on what system to employ for their English station names, and those stuck of course because of printed schedules and so on. Depending on how you count Nihombashi either gets lots of points b/c of the many people who get to see this particular name each day, or it just gets a single point because it's one spot on the map. Observe that when you click through the pictures to get to the actual map—you'll find "Nihonbashi Bridge" spelled in the more common way (including the adorable repetition). So arguably 'Nihonbashi' it is in general but the station name is spelled with an 'm'.
I climbed a 200m+ radio tower when I was a kid. Started really early so no one would see me. Saw the sunrise at the top but still felt like summer night when I got down. Best view I’ve ever seen
Pluralsight Problems
We had one that finally shut down a few years ago.

The key seems to be if they own the shop they’re operating out of; then they can last quite a while if the owner wants them to.
Remote Code Execution on 40k WiFi alarm clocks
Academic CS, moreso than any of the other STEM subjects, is like that whose line is it anyway meme - all the words are completely made up and absolutely none of the results matter.

So a vector isn't a vector, a tensor isn't a tensor, einsum isn't actually Einstein summation, automatic differentiation often gives derivatives for things that aren't differentiable, a neural network has nothing to do with neurons, etc etc etc

CS people think it's a crime that humanities people make up words in order to publish but they're really living in an extremely glassy glass house.
An emulator seeks to be bug-compatible with a specific language implementation, rather than to implement a language in the abstract. The reference implementation is the spec. But it isn't entirely cut and dry, and I see where your point.
Streets have existed since cities began is prehistory times. even before cars people needed to get around.
Ask HN: Can you recommend blogs of those with ADHD?
Most "normal people" advice does not work for those with ADHD.

I am looking for detailed blogs and advice from people who have ADHD and developed solutions. (websites, books, blog posts etc)

I'm taking a break from medication due to side effects.
For tracking Amazon spending, "Amazon Order History" is a Chrome extension that will walk through your Amazon orders and give you a spreadsheet of specific items in your orders. It's kind of kludgy, but does seem to work well.

https://chromewebstore.google.com/detail/amazon-order-histor...
Yeah weight loss or whatever aside, this challenge is awesome!
The complexity is actually down to mobility. You can turn your phone on anywhere and it'll work. You can have a call/data session while travelling hundreds of miles and it'll work (usually).
Not at all; with io_uring, you can copy multiple files in parallel (and in fewer syscalls), which is a huge win for small files.
Am I the only one who doesn’t care about OKRs or whatever companies are following nowadays? I tend to work around 2-3 years per company. Get a salary bump when switching. My first year is rather slow/smooth because “I’ve been here for less than a year!”. My second year is more interesting and I do take it as “real” work. My third year I couldn’t care less since I’m already looking for something else.

I couldn’t care less about goals or OKRs. I get paid, I solve whatever problems the business has (whether they make sense or not) and then I just leave.
This document helped me learn the io_uring API.

You can use io_uring with epoll to monitor eventfd to wake up your sleeping with io_uring wait for completions.

I have implemented a barrier and thread safe techniques that I am trying to turn into a command line tool

My goal is that thread safe performant servers are easy to write.

I am using bloom filters for fast set intersection. I intend to use Simd instructions with the bloom hashes.
Printf debugging is best debugging because it's the only technique available in all environments. You've just learned to use Visual C++ debugger? Great, here is some Python code to debug. Or maybe the bug is in a bash script that only works within a container on a cloud. Or is it the ansible deployment script that is wrong? IDK, have fun, use your debugging skills.