skysight-inc/HackerNews huggingface dataset:
No, even type-punning properly allocated memory (e.g. using memory to reinterpret the bits of a floating point number as an integer) through pointers is UB because compilers want to use types for alias analysis[1]. In order to do that "properly" you are supposed to use a union. In C++ you are supposed to use the reinterpret_cast operator.

[1] Which IMO goes back to C's original confusion of mixing up machine-level concepts with language-level concepts from the get-go, leaving optimizers no choice but unsound reasoning and blaming programmers when they get it wrong. Something something numerical loops and supercomputers.
If that was what it is going to do, wouldn’t we know that by now? Hasn’t it been the most funded r&d ever for multiple years now due to the entire planet combining its strength to understand the virus?
memset, memcpy, and memmove, etc all depend on UB.

memset and memcpy read and write padding bytes, which is UB. If you try to say memset/cpy is a "primitive operation", then you're still stuck with the "correct" struct initialization (memset, bzero) being UB if you did something like:

void f(bool condition) {
if (condition) {
struct structwithpadding thing;
bzero(&thing, sizeof(thing));
} else {
printf("wat\n");
}
}

The ludicrously broad definition of what UB apparent allows, this can be "optimized" to

void f(bool condition) {
printf("wat\n");
}

Because bzero() writes to padding, and that is UB, which means the condition==true branch "can't happen" \o/

memmove falls to UB much requires pointer comparisons between pointers to different objects, which is UB.
Not really. What's the purpose in a business using photography it doesn't have any meaningful rights in or control over?
Bisq is a really impressive project. Upon first hearing about it I was a bit skeptical at how a decentralized peer to peer exchange would work in practice, but now that I've used it a few times with no issues, it really does seem like the best way to do fiat <--> crypto exchanges. Really hope that bisq and other similar services get the recognition they deserve now that the trust in cex's has taken a fall.
I expect it’s the halo product strategy, same reason mass market car manufacturers produce cars like NSX or Corvette or Ford GT.

It helps the brand (if they can do that, my mundane daily life will be easy), it sells to wealthy enthusiasts and aspirational consumers, it brings people in to showrooms, and it challenges internal teams.

And in the Apple case, their ecosystem is strong. Recreational divers are Apple’s target market, and this should convert a bunch of them to Apple.

Imagining the pitch, it was probably something like limited incremental costs, supports long term ecosystem strategy, reduces revenue from cash cows for competing fitness watch companies.
There's stuff out there, it's just not always easy to find. A lot of the IBM mainframe stuff, for example, is buried in their catalog of "Red Books" found at www.redbooks.ibm.com.

Check out:

https://www.ibm.com/z/trials

https://www.redbooks.ibm.com/search?query=%22system%20progra...

https://developer.ibm.com/?q=z%2Fos

Also search ibm.com for terms like "PL/I", "COBOL", "CICS", "RPG" and so on and you'll likely turn up more of the mainframe stuff. You can, of course, program mainframes in other languages, especially Java. But from an IBM perspective, references to the former batch of terms will generally turn up stuff about their mainframes, or their minicomputer series (mostly what's called iSeries these days, as far as I know. Formerly the AS/400, S/38, etc).

There are also various print books from 3rd party sources that can be found on Amazon. Ex:

https://www.amazon.com/IBM-COBOL-Complete-Guide-2020/dp/0655...

https://www.amazon.com/Quick-Start-Training-Application-Deve...

etc.

The reasons for this are, so far as I can tell, largely what other commenters have already posted. It's just a different culture and way of doing things, and the mainframe world just works a bit differently. And I think a lot of that is because that world is so insular now with IBM being more or less the only mainframe vendor left. I suppose Unisys or Hitachi or Fujitsu or somebody may still make a mainframe here and there, but the market is almost completely dominated by IBM. So the "mainframe way of doing things" is more or less "the IBM way of doing things" and in particular it's a very old skool version of "The IBM way" at that.
Some of the suggestions you offer don't really increase the chances of making close friends.

Like being an open source maintainer - how is that really going to lead to close friends?

Or starting a business - sure you might network more, and meet business partners, but do they really become close friends?

I will say that going to a church regularly was the #1 thing that really led to lots of friends for me. Like instantly.
Stock photography is copyrighted and licensed. AI art is not copyrightable.
Maybe because someone needing a fact on the mainframe realizes that almost no one on StackOverflow will help them, plus many will make fun of them for being a dinosaur?

Edit: I should add that I'd bet they DO have their own web forums, and a lot of them are probably run by IBM itself. (I'm not a mainframer, in case you're wondering)
I do think that their patties are a bit easier to get tired of; that's why once in a while we will do a beef patty instead.

One place they absolutely don't work for us is Loco Moco. For whatever reason a soft real meat patty just works so much better there.

I'll give a try to Impossible and see what we think.
It’s hard to say it’s a failed policy when we have no evidence against the null hypothesis, which is global nuclear war.
By regulate they mean bail out
> "look how easy it is to make a table view"

My trap in web dev was "look how easy it is to do responsive layout".

Once CSS flex & grid became broadly available, I quickly began to shed my use of frameworks. It took me ~10 years of hard work to get to the point of feeling comfortable in a 100% vanilla web development ecosystem. MDN is my bible now.

The advantages of owning your entire web development vertical are impossible to overstate. The counter arguments are so painful to hear in 2022 - "why would you want to re-invent the wheel" kind of crap. The truth is, I don't write most of my vanilla web code from scratch anymore. Once you build 1 thing and it's in github, it takes 5 seconds to copy/paste that component to some other project. Good luck doing that same activity between Angular and React code piles. Or even Angular code piles of differing versions.
Deno integrating TypeScript at all was a big mistake, but that doesn't mean that TypeScript at build time isn't a god idea, or that transpilation can be extremely fast with tools like esbuild.
I wonder how many actually want to loose those buttons? The new “wheel” design already turned me off the new Tesla. I root for the competitors to up their game on performance which still seems unique to Model S.
The kinds of nuclear reactions that can produce heavy elements are reasonably well understood, because they depend on energetic constraints.

Most chemical elements heavier than germanium need neutron fluxes of various intensities for their production, while a few isotopes need high-intensity proton fluxes.

What is less well understood is which are the astronomical objects where the conditions for such reactions happen, e.g. a high-intensity neutron flux of an appropriate intensity and neutron energy.

In any case, no known phenomenon could produce such a neutron flux in steady-state conditions, for a long time, so all candidates are explosion-like phenomena, e.g. when a star explodes becoming a supernova or a nova, or when two neutron stars collide.

That is why if trans-plutonium elements would be produced in such a star that does not appear to explode, this would need a completely new explanation.
> I'm not sure what you're arguing exactly

I'm not arguing anything. There is nothing here to argue. Nor would I enter into an argument. I can think of nothing more boring.

> literally walking down the street and offering to help random businesses for $7.25 an hour is so far from HN hiring, or really any salaried tech hiring

Because the topic is price. Price exists specifically to guide allocation of scarce resources. The scarcer a resource, the higher the price, the more buyers pushed out of the market. Conversely, the more available the resource, the lower the price, the more buyers able to participate in the market. Just plain old supply and demand.

Like I said originally, things would have to change dramatically for things to end up where nobody would hire you even for minimum wage. Without some kind of fundamental shift, there is effectively no chance of developers not being able to find work. What is more realistic is someone not being able to find work at the price they'd like. If you're accustomed to making $200k per year, get laid off, and those hiring are only offering $120k that can be a hard pill to swallow. Many will hold out for a better offer. Eventually, though, hunger sets in and you may be forced to take the $120k job. If things are really bad, $120k might be more than you can hope for.

> I'm not sure why you bring it up

There was some confusion about the earlier comment and I found enjoyment in expanding upon it. Perhaps there still is confusion, but oh well.
The Lada Niva was popular because it was one of the very few socialist block cars that could officially go proper off-road, in other words, people had no choice (welcome to the wonderful world of socialism!).

But it was - and still is, can't believe they still make it - a _terrible_ car by any standard, and I can't really understand anyone buying one today. They are not cheap, have terrible design, terrible build quality, terrible fuel consumption, they are loud, and break easily - and they are not THAT good off-road ironically. If you want to put them somewhere on a map, they are about as bad as 70s British cars were.
The movie "Rounders" came out in 1998... that was what did it for myself and my friend circle.
I’ve been down this road, a lot.

We use Flutter now. And are quite happy.
The Apple Watch Ultra is rated to 100m.

Recreational diving is regulated to 40m. The app follows the latter.

It is unlikely your Casio would be rated for recreational diving beyond the same limits either
Labeling them as Ponzi schemes affords people in the US who lost money special tax benefits. It’s treated more similarly to theft than a bad investment. I am not sure about other countries, but in the US the label has real consequences.

https://www.irs.gov/newsroom/help-for-victims-of-ponzi-inves...
The "reasonable people" want all the gains that crypto was making without all the poor lending practices and contagion that were fueling said gains.
Will it? I doubt it, honestly.

Huish, the makers of this app, own the majority of big names in the industry. The reason it’s called Oceanic+ is because they own Oceanic. Along with Apollo, Bare, Ollis, Zeagle and a few others. Interestingly, they don’t believe enough in this app to brand it Suunto, their more current dive watch brand.

My fear is the next Suunto watch will have subscriptions, if this app proves successful.
Sure, I will email you later this week.
Well, semantically, "size_t" makes sense to me ("the type of a size variable"), while "uint_t" does not ("the type of a uint variable"), because "uint" is already a type, obviously - just like "int".
Why on earth would a pink camouflage be better than the standard desert camouflage?

If it would, then we likely would see more of it ...
I find this article very strange, perhaps because I started using 'c' so long ago. To the bullet points:

(1) In general, 'c' is always 'c' at the command line, regardless of the platform.

(2) yes, there are options and build tools, but cc my_program.c -o my_program works fine. I have a very hard time figuring out how to compile/run java.

(3) hard to see how this has anything to do with 'C', vs any other compiled language.

(4) so?? I would think I would be more concerned about how to use 'c' for my problem, without worrying about how to use 'c' to solve some other problem. It is hard for me to understand why a language that can do many things is more problematic than a language that only does a few things.

My sense is that reading this article makes things harder, not easier. Most people do not care whether an int is 32 or 64 bits.

I won't argue that copying things (that are not ints or floats) needs to be understood, but many popular languages (specifically python) have the same problem. Understanding the difference between a reference and a value is important for most languages.

There are different schools of thought -- those that can imagine lots of issues after reading the documentation, vs those that simply try writing code and start exploring edge cases when something breaks. I learn faster by trying things, and rarely encounter the edge-case issues.
You don't get to point at perverse bureaucratic incentives years later, in another country even, as validation for general pandemic denial.

In the US, stay at home suggestions are over. Industry shutdowns are over. Mask mandates are over. They've been over for a long time. The scaremongering of "what if these temporary conditions become permanent" has now been demonstrated as fallacious. Our society has basically made it through, thanks to the natural evolution of the virus combined with the technology of vaccine development (plus a lot of people who aren't with us any more). Go watch a World Cup game at a bar, lick a subway pole, move on to another simulation of protest - whatever you want.

Bureaucratically, local healthcare systems seem to still have mask requirements, Covid testing policies, the Doctor Who -esque custom of squirting goop on your hand as a greeting, etc. Will these ever disappear? Mask requirements might even make sense independent of Covid, given that most healthcare settings are high concentrations of people with half of them sick and the other half immunocompromised. But in general, all of these latent results are certainly not more of a problem than the longstanding administrative bureaucracy that grinds doctors and nurses into overworked dust. (I say this even taking into account the effect of masks on the hearing impaired, which needs to be addressed).

People in positions of power will always act for their own selfish interests - one of the very first things the federal government did was give away six trillion dollars to prevent the stonk market from reflecting reality. But that everpresent banal observation doesn't invalidate that there was also a legitimate response to a real problem. We can debate how effective facets of the response are, the accountability of our leaders, etc, but implying that the whole "narrative" is primarily bureaucratic self interest is just nonsense.
I think "leak" is always enabled by "address". It's only useful if you want run LeakSanitizer in stand-alone mode. "integer" is only enabled on demand because it warns about well-defined (but still dangerous) code. You can also enable "unsigned-integer-overflow" and "implicit-conversion" separately. See https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#...
This would be better if we formalized this with Matt Levine's Certificate of Dumb Investment.

As he said:

> I am open to compromise on the details. The point is that the right general approach to the problem of people buying dumb investments is to give them much, much, much clearer and starker and scarier warnings before they invest, and then much, much, much less sympathy if they do it anyway.

https://marginalrevolution.com/marginalrevolution/2018/09/ge...
Interesting. Could you please share the Samba config for the Time Machine shares? And over what medium do your Mac machines connect to the NAS? Wired or wireless?
> against the null hypothesis, which is global nuclear war

That’s not the null. Null would be engagement as usual. Nuclear war can occur in both the null and zero nuclear policy states.
Illegitimate parent, more likely. English is clearly the bastard child here, with its Celtic, French and Norwegian influences.

I also once heard that Dutch uses older roots of many words than German, because for many words where Dutch uses an 'i' (like "ieder"), German uses a 'j' ("jeder"), which is a more recent letter.
Parent point is when the standard talks about UB it refers about translating C code. So parent cheekly interpreted your comment about command line flags (which are outside the remit of the standard) as code instead. I thought it was fitting.
SIMD on x86 has become a ridiculous minefield of standards. I honestly pity the compiler writers who have to navigate this nonsense. It was stressful enough trying to just manage the compiler flagging in an application (music synthesizer) I wrote recently.

The core amd64 ISA is stable and that's good. I wouldn't call it elegant or nice, but it's there. The patchwork of which processor supports which SIMD extension on top of it, though, has gotten out of control and is unpleasant.

I'm sure AVX512 is great. Except as an application author I can't rely on it being there.

I am not a MacOS user or MacOS developer, but I envy the consistency of that platform now that they control their own ISA.
So I'm a nerd interested in this stuff and I have specific ideas -- but I just want to say that I appreciate simply seeing this idea in words in a forum. Lately it's just been positively weird how infrequently I see this very very obvious point of the whole thing.
This argument about whether Xi is a dictator or not actually plays out with fair regularity on his Talk page[0] on Wikipedia. The general consensus – whether astroturfed by CCP I cannot tell – usually ends that he is not.

[0] https://en.wikipedia.org/wiki/Talk:Xi_Jinping/Archive_1
If it helps, Sequoia also bet on WhatsApp, Google, and a whole host of other iconic tech companies (as well as duds). I guess, with FTX, they made the mistake of drumming up the founder too soon (btw, doing so isn't specific to Sequoia; almost all other VC firms do this. It is priming up the market, as it were).

As VCs gain more traction and became more accessible (on social media, esp), it only serves to their detriment when they make a mistake, even if it is a honest one. I don't think VCs care that much, tbh, given the power imbalance that having that much money brings.
Author here! You probably just don’t have the same need as me, I was expecting this to not be a popular app because of this :)

My need is to be able to check when I’ll be able to visit parents, plan trips with friends, answer my wife about when’s our next dentist appointment before she gets tired of waiting and checks it herself, when’s our niece’s birthday, what is the next religious holiday etc.

I find I have to check the calendar way more than I have to add something into it. And when I need to add something, I usually like to take the time and fill in useful info like location, travel time, useful URLs and notes. And Calendar.app is already good enough for that.
Hear hear.

There's also a lot of noise in the community coming from either juniors or hobbyists praising whatever new shiny feature they just learned about which sells the wrong impression that, in this particular case, SwiftUI is way better or more mature than it actually is.
Yeah but AMD Zen4 has AVX512 enabled by default. And they're not too shabby with the performance either.

AVX512 is the future, but maybe not Intel's future, ironically.
Depends on the definition of "great" ... if you're a company building a one-off app that only a couple people are ever going to use, do you want efficient, and lower cost to build/deploy getting the job done, or do you want "great"? And would you be willing to pay out of your own pocket for others to do that work?

I'm all for software quality and craftsmanship. I think far too often, far too many corners are cut, and there are often huge projects which have been poorly written. That said, it really depends. Most people only use a handful of one-off apps. But most apps are one-offs. The developer time is far more costly than the resources to run the app, or the time of the people using the app, generally speaking. Saving 0.01 seconds may make things seem smoother, but it's not really going to make the person using the app more effective.
Unfortunately, you're also literally describing the fiat money system we use.
I think this will be a major academic topic in economics for the next generation. It's not clear to me that any value was ever created. It was entirely notional. Number go up, number go down. The biggest loser in real terms is the VCs who spent money they possibly earned through real work.
Here's the journal article that the OP is based on. It's not concrete, but it does identify several kinds of distracting information. After reading the article I did begin deliberately ignoring much of my social media and low-quality news sites:

https://journals.sagepub.com/doi/full/10.1177/09637214221121...
Does it need to involve the government?

How about any aspect of human behaviour that involves people with a difference in economic, health, or educational levels will lead to an exploitative marketplace?

(Edit: ^ that looks like a slippery slope to Marxism which isn't intentional so please be gentle with your feedback)
18m limit for Open Water. 30m limit for Advanced Open Water.

Almost every recreational dive site for commercial reasons would only be taking divers down to those depths.

If you're going beyond 30m then you know what you're doing and are not going to be reckless enough to use any device which is not rated for that depth. No one is going to care about warranty if they are dead.
I will say it everywhere: Andor is the best Star Wars.
It was in the C++ meetup trip report (actually yesterday):

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

https://twitter.com/jfbastien/status/1592578174763745280?ref...
I skimmed it and all the points made still appear to be true today. Namely, all the C language rules and the human psychological pitfalls.
Probably not. These are 70 series land cruisers which are essentially the same as those manufactures in the mid 80s and are designed to be mechanically robust and simple to repair. Latest model land cruisers are pretty much luxury cars that you can take off road but most people probably don't, same as a range rover etc.
Ask HN: What framework/language to use for this project?
Hello HN!

Since 2016 I have been archiving episodes of a specific daily radio show in my country, which has a very niche but dedicated following of people. Since some fans can't listen to the show when it's live (work hours), a few people have been relying on me sharing the archives. I'm hosting all the episodes on multiple free plans of Mega.nz to have them available to share and I have a Wordpress blog setup to autopost links to new episodes from my VPS with a very basic bash program.

This setup is very stable (it has been on autopilot for the last couple years except minor fixes) but now I would like to remake it with more features.
Since Whisper was released I've been very interested in trying to feed the whole archive (2000+ 2hrs episodes) into it and get a searchable transcript, so people could just search a name or a phrase and find out all the episodes where it was mentioned.

I recently watched the full CS50 course on YT and at the moment I'm undecided about which language to choose to create what I have in mind. So far I only studied c# in school, and python/html/css on my own.
The website would have to list the episodes in some way from an SQL db, have it searchable by date (every episode name is the date it was aired), and ideally also have a search field for "text" that appears the transcript, which is still a work in progress.

What framework/language would you recommend?
Is there a similar project you've done where I could take inspiration?

If you want you can contact me via the email in my profile, thanks!
That would make Apple release Oceanic+ Pro, and if you do it again, Oceanic+ Pro Max.