skysight-inc/HackerNews huggingface dataset:
There's no need to flirt with undefined behaviour and non-standard compiler flags. Just convert both uint32_t values to uint64_t type, then combine them into a single uint64_t value using bitwise shift then bitwise inclusive OR.

Rob Pike has blogged about this kind of thing. [0]

Perhaps also of interest: both C and C++ provide a (portable and standard) means of determining whether atomic operations on uint64_t are assured to be lock-free. [1][2] (Assuming of course that the uint64_t type exists - it's in the standard but it's optional.)

[0] https://commandcenter.blogspot.com/2012/04/byte-order-fallac... ( discussion: https://news.ycombinator.com/item?id=3796378 )

[1] https://en.cppreference.com/w/c/atomic/atomic_is_lock_free

[2] https://en.cppreference.com/w/cpp/atomic/atomic_is_lock_free
"But when people are talking about the gender pay gap they usually mean within a specific field or job title."

I'm my experience, people usually confuse the two. There's rarely anyone pulling up BLS data for a specific job. We've even had presidents use the aggregate numbers misapplied to the specific level.
At the same time, the New York Times (also paywalled) is writing about how some states (California) are extending solar and existing power sources using batteries: https://www.nytimes.com/interactive/2024/05/07/climate/batte...

There is an interesting graph at the top of the Times article showing the growth of battery use recently.
Ask HN: What are we compensated for when we work an extra day?
I am feeling I am missing something obvious, help me out:

In a white collar / non-hourly job, how much should an employee receive for forfeiting a holiday (holiday buy-back) ?

Assuming (for 2024):
- working all weekdays : 234 days
- except 8 bank holidays
- except 20 days of holidays a year, all taken in June
- except all week ends : 104 days

The annual salary is 100k and is paid in equal monthly installments.
It is obvious that monthly pay is not directly connected to how many work days happen in the month, or even how many days in the month.
Eg the same amount is paid in January and February, even though Feb is shorter.

We can therefore assume the annual salary is paid in compensation for the amount of work produced during the year.
It is only divided in monthly installments for convenience.

The amount of labour / output that is being compensated for (by the 100k salary) happens in the 234 worked days.
It would seem logical that the company is willing to pay 100k/234 for each worked day.

However, the calculation for one extra day provided by companies running a holiday buy-back scheme looks like:
- annual salary : 100k
divided by
- (number of worked days) + (number of bank holidays) + (number of vacation days) : 262 days

This only makes sense if somehow our holiday time is also dedicated to the fulfillment of our job, eg resting to be more productive when we return to work.
But why doesn't this also apply to the week ends, since we are then also expected to relax, in order to be productive again on Monday ?

---

Pushing it to a ridiculous extreme scenario, to emphasise the logic:
- if an employee is so ridiculously productive that the company is willing to give them 250 days of holiday per year
- meaning they accomplish all their work in 4 days
- get paid their annual salary of 100k in monthly installments as usual
- and take 250 days of holiday
- 8 bank holidays
- 104 weekend days

Wouldn't this employee demand much more than 100k/262, if they are willing to work an extra day in the year ?
Since they would theoretically contribute 25% more output ?

I feel I am missing something simple here :)

https://imgur.com/a/T5712Hi
the sandbox overriden need tobe explaining for the app tobe added to flathub, and yes, they need allow some sandbox breakage until every app support portals, or flathub isn't going to have any app
I mean the Internet adopted ASCII emoji like smilies and what not pretty early on from what I know. Also capslock for yelling is pretty widely known but I don't think there is any way other than chat or word of mouth people pick up on a lot of these.
UpCodes (YC S17) is hiring remote SWEs, PMs to help make buildings cheaper
Many feel that it's scary when there's no obvious telos to catastrophic or dangerous events, and the direct weather manipulation technique that's in use pretty much consists of putting chemicals in clouds: https://en.wikipedia.org/wiki/Cloud_seeding https://en.wikipedia.org/wiki/Operation_Popeye
How often do you actually see people go „oh we have enough, we’re going to take lower paying jobs”? People work these jobs regardless of their partner's income.
So scary. I was working on a garbage collection bug for a AAA video game one time for months. It'd crash once a day on a tester machine and we'd add more and more prints to try and narrow it down.

Finally got enough information and realized that the padding of a specific object was wrong (GC expected 16 bytes, object was 12 bytes). This caused dozens of other corruption bugs to disappear that we didn't even think were GC related.
I have an 8-year-old and a toddler and have hosted and attended many a birthday party at Chuck E Cheese and elsewhere. A digital dance floor and trampoline are way better at a birthday party than an animatronic band. Kids love both and each gets them moving and wears them out. An animatronic band wouldn’t even hold their attention for a minute.
Alibaba's Yitian 710 is quickest server CPU but it is based on Arm
What’s hilarious is cities like Washington DC going the other way and requiring degrees for child care while exempting current child care workers.

https://dcist.com/story/22/08/18/dc-child-care-workers-colle...
For some reason I read this as "garbage disposals are scary" and then I got a flashback to reading a Stephen King novel as a child (iirc it was Firestarter) where a character commits suicide by sticking their arm into their kitchen garbage disposal, it horrified me at the time and appears to have remained deeply embedded in my personal neural network...
UVA is a nationally ranked, well known school, with extremely selective admissions.

VCU is an average school. It has some very good programs, but overall, it’s in the second or third tier of public schools in VA (UVA, VT, W&M at the top, followed by JMU, GMU).

Really all this study tells me is college is too damn expensive.
A huge problem that peer review causes is that it supresses any new ways of thinking about stuff (eg in medicine, diet and physics): whenever a new idea comes that contradicts old ones the old scientists will dismiss it as "false" since "we already know how it works".

Basicaly scientist's ego's destroy new science by using their credientialism to put down novel directions of research.

Science progresses one funeral at a time.
Does this only work on Chrome? Can't seem to make it work on Arc.
Sensemaking is at play here too. Resilient individuals will (consciously and subconsciously) adjust and retell their narrative in a positive way. This is done in order to mitigate the distress of making choices that were less-ideal, in hindsight, but were made with the best information they had at the time.

[1] https://en.wikipedia.org/wiki/Sensemaking
City centres that disallow cars do have restaurants. No need for hypotheticals - you can just look at how they are already solving these problems.

A common approach, for example, is to allow deliveries up to a certain time, e.g. 11AM.
Italy still has blasphemy laws; although it has been decriminalized, you can still get an administrative fine. It also still has lese majesté laws.
Good luck getting fed and having your basic shelter needs met by a "slice of GPT time".
That‘s PhotoSync.
The code is quite similar to a GPU shader function, and it's running on a "fantasy console" which basically gives you a 320x240 pixels framebuffer to poke into (and the code used to implement the fantasy console isn't counted).

Same reason why doing things like this on old home computers or a DOS PC can also be done in a few hundred bytes of bare metal code, because the hardware implements most of what today is called a "rendering engine" and implemented in software.
Yes, but it's an important point. Just because something is renewable in principle, it doesn't mean it's renewable in practice at scale. I think this is also true for some of the "but it's renewable" modern stuff.
I think 'Let's stop educating people' might be reasonable in many cases. Not all degrees have the same chance of producing useful results and some non-stem education is just anti-education or worse ideological brainwashing. Subjects like psychology, journalism, arts, history, English, and social sciences are heavily over subscribed - these fields are saturated.

It's very obvious to me that today's problems are overwhelmingly technological, biological, mathematical, scientific, industrial etc. Even within these subjects, there's a mismatch between the concrete problems seen in industrial practice and the abstract and simplified ones seen in academia.

I hear the 'but any degree will give you a well rounded perspective' kind of hand wavy arguments, but these are presented without evidence, and are unfalsifiable 'runaway arguments' that have no finish line - at what point do you stop and say we're pouring resources into the wrong areas and neglecting others?
“I had 3 desiderata for it”

Ummm why use such a fancy word for requirement ? Put me off reading the whole article.
It would be fine, and also serve your purpose, if apple merely flagged non-apple parts as such, with warnings and so on. Rather than refusing to use them, or to even boot, or degrading the quality with software, or otherwise f*ing around with the experience in a user-hostile way.

Maybe that sums up my aversion to apple; they've become user-hostile, the moment you try to step beyond their gilded cage.
Most degrees do not create an educated person. An educated person needs a grounding in science, history, philosophy, literature, and - especially in our new age of disinformation - critical thinking and psychology.

I studied one of the hard sciences, and while educated in this field, I was sorely lacking in many areas. Even with my training around scientific thinking, I was unable to clearly see the biases that were injurious to my clarity of thought.

Look at universities and you see students with unhinged political beliefs, based on wild emotion tethered to neither evidence nor reason. These are not educated people, and it almost seems like some of them may have been wiser had they not pursued higher education at all. Regarding climate change, most university graduates are frustratingly ignorant and unwilling to think clearly about the solutions.

It is imperative that schools teach critical thinking and provide a desperately needed grounding in various subjects, rather than pursuing the sole purpose of ensuring their students tick the correct boxes to pass their exams. If this system were present, few would benefit from university and the profit-seeking motives of these institutions could be brought back in hand.
As anyone who has had to fly economy knows, physical space is very important to our lived experience.

Besides, "other things are also important" is not an argument for why "universe much bigger than you" is misinformation.
Solutions first need problems.
Analyzing ROI is interesting for a theoretical discussion but I think it doesn't make as much sense for the prospective student.

Any analysis of education must take into account the opportunity cost. But what is the opportunity cost? What would you have done instead? Maybe you would have worked. Maybe you would have gotten a different degree? Maybe a bootcamp? Maybe odd jobs while travelling the world? It's highly individual and variable.

So yeah I think the right perspective is to consider some scenarios - including how likely getting a job in the field is and what the pay would be if you got one - and then use that to make a decision.
The Bloomberg Oddlots podcast had an episode a few weeks ago about a boom in starts for natural gas power plants; if I remember correctly, they were saying that the infrastructure people who normally run the grid are used to thinking in decades but are now thinking in years. So it seems we will be working hard to increase carbon emissions at a time when we should be cutting them drastically. It does not bode well.
If you're talking about the difference at the aggregate level, it's mostly a difference in selected job types (eg STEM vs social sciences).
Chewy and stringy, and tastes like... Camel?

Then again, as she always said, "Smoked meat lasts longer."
Best I can say is lean into it. Make everything those themes or adjacent to them in some way. You’re lucky because Minecraft is a gateway to computing in general. Find out what he specifically likes about it and then figure out how to use Minecraft to build a bridge toward real world skill that still include everything he likes about Minecraft.

Forcing him to do things he doesn’t want to will be next to impossible. RSD is real and irrational. You can trick him into wanting to do things though.

And by trick I don’t mean deceive but just to make him thinks he wants it. Give him a choice and let him choose, but make both options good. Don’t force him to do things your way or the correct way as you see it.

Autistic people like to build and use our own systems, so that’s probably what he likes out of Minecraft, a world he can shape to his liking. He rejects the real world because it forces him to be something he doesn’t want to be.
From the abstract I get the feeling these techniques are useful when you don’t have access to the corpus, as e.g. in the case where you download some open source weights but the corpus is secret. Otherwise I don’t understand why you wouldn’t just compute a histogram over the tokens in (a statistical sample of) the corpus.
I don't think being more educated makes you more resistant to fascism. I wouldn't be surprised if there was a correlation in the other direction, because after all education at a higher level requires a huge degree of conscientiousness, and although typically being conscientious is a good trait, it's exactly the mechanism that fascists abuse to their advantage.
My friends and family constantly shared articles like this when I was getting my BS and PhD, telling me I was making a big mistake and would be in debt I could never pay off. If they really wouldn’t leave me alone, I explained that I was already working in labs as a paid researcher, and winning paid grants and fellowships- I was making more money as a student than they were in regular full time jobs, and took on zero debt.

In general, grad students at research focused universities are paid for research and teaching, and have all tuition waived.

The path of making money as a student researcher in science and engineering is available to anyone that is interested and able to learn: as an academic PI now, I help a lot of students do this.
> What’s the ROI when you factor in having an educated population that can tell fact from fiction, engage in critical thinking, and resist fascism?

That's a strong assertion, I'm sure university level education can help give tools to people to help people understand facts, think critically etc if they study the right thing; I would be really cautious of applying that universally.

What I've seen mostly is a different kind of groupthink, where critical thinking and open, curious and honest discussion is not tolerated.

I could be wrong and my experiences are of course anecdotal. I get much more honest and genuinely curious discussion on HackerNews than from University graduates.

Yes, a better educated population is considered a net benefit for society, which was the impetus for mandatory education, evidently society considers that there are diminishing returns and those happen at around age 16 for British citizens. I would like to understand who decided that age and why.
Hi, thanks for question,

- yes I'll handle indidents while you're on subscribtion. After you're off subscription you're on your own (I can't support all clients forever for free). But as I mentioned before I will introduce maintenance program for lower fee (maybe starting at $99/m but depending on the size of your infra it can go much higher) to monitor and update your infra and do any fixes.

- as you know if you use terraform or CDK you shouldn't do manual changes. I inform my clients about that and they should be able to do little changed themselves using terraform. If they still do it manually it will need to be deal with in a request. I give them choice to go with either TF or CDK whatever is more convenient to them so after subscription they can live without me. As mentioned before Maintenance/monitoring plan can deal with some of these things.

-yes every client has their own git repo and tf-state which they are owner of. Changes are applied manually for now. I was also looking into TF Cloud (HCP) but it's other cost for customers and other thing they need to know.

Thinking about it know thanks to yours (and others) questions maybe I should try/offer to keep all happy customers subscribed to some cheaper (from $99) monitoring/maintenance plan and take complete care of their infra. (Until they actually need full-time in-house person.)
The theories are often complex from the standpoint of how they work, or even the motivations. They are simple un how they assign blame. We all like having goodguys and badguys neatly separated with a single linear function. That is much more appealing than admitting we are all partly to blame for pretty much everything that affects all pf us, and that even the worst actors often have some good motivations and qualities. In addition to the appeal of simple humans, the complex conspiracies seem to appeal to people with very good pattern matching intelligence. Also, sometimes, conspiracies are real, and that doesn't help.
The agricultural sector wants to keep fighting environmental legislation.

It might seem stupid, but even though Rio Grande do Sul has lost about 50% of this year's soy harvest, you can be sure that farmers will be bailed out by the government. And so if you put the blame on anything other than the degradation of the environment, you can keep justifying chopping down more forests right up to the margins of rivers.
I was surprised that the software was written in Pascal which is the dead language
Oracle preparing Code Assist: AI coding "fine-tuned" for Java, SQL and its cloud
Video games are a poor ROI, young adults should minimize them and study or socialize (in person) instead. The opportunity cost is huge.
Anecdotal. Watching ag day for years, the amount of large scale farming in the central South American region has increased significantly. Expect increased runoff and decreased natural cooling from old growth forests. Not saying other things aren't a factor but as we see many farms in the US returning to cover crops in the off season for soil amendment, sand dams in Africa for water capture...we will need to find practices that help central and south South America find their balance.
Gorelik or Gorelick (Russian: Горелик; Belarusian: Гарэлік: Harelik) is a Jewish occupational surname historically denoting a vodka distiller or trader. Its etymology is Slavic, from Belarusian harelka (гарэлка), a calque from Polish gorzałka, itself from German geprant Wein 'burnt wine'.

So what?
Barcode usernames are quite popular in FPS games with cheaters as well.

Not sure why, makes it really easy to differentiate a player who got lucky with timing from one with ESP.
Technically yes, a whale. Orcas are the biggest dolphins, and dolphins in turn are the smallest whales.
I can’t say I have heard of or know of a man who has done a “quality of life” career without either inheriting or getting rich first.
I wouldn't be surprised if the same code ported to the x86 instruction set would be more compact before compression (after compression probably closer to each other).
>UPSTREAM THEMSELVES decided not to include in default/recommended build instructions

This is false, or at the very least misleading. It doesn't take much to go on the repository and give a closer look instead of repeating "what other said". Kwpolska already wrote it in this thread, -DWITH_XC_ALL (the flag that's been turned OFF in the original Debian package rules) is explicitly called in the build instructions, and not only there but also one release tool [1] and snap config [2]. This is merely how the project manages its build configuration, with specific flags turned off and one master toggle enabled by default (or expected to be passed to cmake/bash release tool). Same thing for the ppa packaging. [3]

0. https://github.com/keepassxreboot/keepassxc/blob/develop/INS...

1. https://github.com/keepassxreboot/keepassxc/blob/da90319d2d0...

2. https://github.com/keepassxreboot/keepassxc/blob/da90319d2d0...

3. https://github.com/keepassxreboot/keepassxc-packaging/blob/9...
Thanks for the clarification, I see that I misunderstood your article as "I’m dissatisfied with existing tools so I’ll make my own", while it’s more along the lines "let’s reverse-engineer leetify". And for the latter it’s an excellent one :) Thanks!

Indeed k/d is an overall good proxy when taken with a step back, eg for a whole game. When looking at a single round, it ends up being noisy. Which is not to say it’s useless! In the end this is a shooter game, and to shoot is in the name (and not to die but that’s another matter) :D Now to the matter to evaluating odds of winning a combat.

To develop a bit on smokes: with some domain-specific knowledge you could approximate its usefulness. Smoke in catwalk on D2 allowing T to go through mid while a CT stands on shirt unable to take info nor shoot? Now that’s a good smoke. But this would require very tedious work an be non exhaustive. You could make a rating of "how many people walked in front of an opponent thanks to a smoke". Or how many bullets missed a CT defusing in the smoke. Possibilities are endless but not perfect.

For example scope.gg rates flashbangs by how many people were blinded. And I’d not be surprised if they gave a negative ranking to flashbangs that were heard but did not blind anyone: those give info to the opponent without helping you.

Now if you made a follow up that’d be great but you’ll end up meta-gaming instead of gaming. But that’s fun too!
You don't need a "phone AI" to solve general relativity.

You need it to understand what you want to do within the limited scope of the phone.

Basically I want Apple's AI to do what Shortcuts is capable of today, but instead of a janky Scratch programming style, I want it to respond to speech.
Ask HN: Another front end for open LLM?
Hey guys please hear me out. I am a full stack developer and I want to build a community to make LLM more accessible to general public.

One of the biggest pain point I had with existing LLM front end are that they require some technical skills and a powerful pc (installation, downloading model, and make sure all the dependencies works as expected). Which gives me an idea. Why not create an online community like llm front end where you can share your character, use already deployed model, and make it accessible any where (like responsive, accessible everywhere with internet access)

Think Civitai + hugging face inference endpoint + kobold cpp. Slap a responsive and fast UI. (Many model on huge g face cannot be use as is and need some sort of deployment)

And for inference and compute you can use your own API key from Replicate AI, together AI, or any other poplar inference platform. You pay only what you use to the cloud provider (many also have free credit) and it will deploy the model you want to use for you and your data will all keep to yourself.

That way we can make LLM and SD image model more accessible. Idk does something like this resonate with people?
There is no programming language as scary as Java
If your goal is to get in as many homes as possible but also not pay for it, convincing the government it's a basic necessity seems to be a way to do it.