skysight-inc/HackerNews huggingface dataset:
The obvious one is that price controls feel good but will cause shortages if they are below the price at which a company can profitably bring a product to market.
EU Parliament wants journalists to have better protections from spyware
typedef all structs - yes, helps with conciseness. Use typedefs liberally, I say. But only typedef the things themselves, not pointers to the things. You can always use (type *) when you need a pointer. In particular, for function pointers, typedef the function, not the function pointer. Then you can use the function typedef for function declarations too, which gives you parameter type checking without needing to fix declarations everywhere if you change a function signature. I see most C codebases get this one wrong, typedef'ing the function pointer and still needing to manually write out all function declarations for that pointer definition.

I'm not sold on the structs as return types thing. I prefer just a numeric error code as a return value, and out parameters for any other returns.
The Mentorship Model: Leadership and Loyalty
Excellent memories of much simpler times... Minidisc was a great technology but the advent of flash memory was ineluctable.
This was yanked almost immediately after it was deployed and announced:

https://globalnews.ca/news/9785851/quebec-transport-ministry...
The idea behind right on red is similar to a merge. Both lanes are going in the same direction do there’s only coordinating distance between the cars to manage.

I can’t tell if you are aware, apologies, but right on red is legal in all of North America outside of a few municipalities, Montreal being one, with NYC being the largest.
I think this can be simply boiled down to: have posts delete themselves if they do not get attention after X time. I don't know if the "garden" or gamified UI is required.

We just need healthier social networking and I think that comes with limits on availability, data being deleted after certain time frames, and so on.
When someone builds a “portal” for their customers they wind up inventing ways of making the customers go there.

Maybe this is just a form of that.
TrackTalk by Remuse ep 1: 4 fresh tracks, fresh music podcast [video]
Government has a very poor track history of manufacturing products. I am not optimistic about this at all.
This was not considered "strategic" decision making back in the 80s, but I see your point. I do think it's good the US junked its tactical nuke programs (Davy Crocket et al) because they are tricky and hard to find good use cases for. They are also hard not to lose (most people don't realize how many portable things get lost in combat).

Allegedly Russia has various "red lines" which, when crossed would lead to tactical nukes in the Ukraine theatre. Many of those lines have been crossed with no nuke use. Prof Phillips P. OBrien pointed out that tactical nukes at this point would be an admission of weakness and would turn many allies against Russia. Also, like chemical weapons, they are simply hard to use without interfering with your own troops. Probably, IMO, the only use case is on day 0 right at the initial invasion.

The US has a wide range of non-weaponry responses, and who knows what they have in their subs, They may have smaller scale nukes as well. Subs are destabilizing today because nobody knows where they are. They used to be destabilizing because that also meant they were inaccurate (thus only useful against cities, where, like the game of horseshoes, "close" is good enough). Nowadays once they are launched they can use GPS, the stars, and probably simply vision since they know the approximate launch and destination locations.

You're currently getting downvoted which seems unreasonable.
This is good advice. But be cautioned--at some point you'll want "some other key" to be the left half of your spacebar or some other such nonsense. And then you'll be one of us. Forever.
Depends on what parts of PaaS you like or not, but you might like https://www.Flightcontrol.dev which streamlines Fargate deployments. Also static sites, preview environments, etc. (I’m Flightcontrol cofounder/CEO)
> #define sizeof(x) (size)sizeof(x)

I'm guessing this is lacking an outer pair of parentheses (i.e. it's not `((size)sizeof(x))`) on the grounds that they're unnecessary. In terms of operator precedence, casting binds tightly, so if you write e.g. `sizeof(x) * 3`, it expands to `(size)sizeof(x) * 3`, which is equivalent to `((size)sizeof(x)) * 3`: the cast happens before the multiplication. Indeed, casting binds more tightly than anything that could appear on the right of sizeof(x) – with one exception which is completely trivial.

But just for fun, I'll point out the exception. It's this:

(size)sizeof(x)[y]

Indexing binds more tightly than casting, so the indexing happens before the cast.
In other words, it's equivalent to `(size)(sizeof(x)[y])`, not `((size)sizeof(x))[y]`.

But you would never see that in a real program, since the size of something is not a pointer or array that can be indexed. Except that technically, C allows you to write integer[pointer], with the same meaning as pointer[integer]. Not that anyone ever writes code like that intentionally. But you could. And if you do, it will compile and do the wrong thing, thanks to the macro lacking the extra parentheses.

…On a more substantive note, I quite disagree with the claim that signed sizes are better. If you click through to the previous arena allocator post, the author says that unsigned sizes are a "source of defects" and in particular the code he presents would have a defect if you changed the signed types to unsigned. Which is true – but the code as presented also has a bug! Namely, it will corrupt memory if `count` is negative. You could argue that the code is correct as long as the arguments are valid, but it's very easy for overflow elsewhere in the code to make something accidentally go negative, so it's better for an allocator not to exacerbate the issue.

With unsigned integers, a negative count is not even representable, and a similar overflow elsewhere in the program would instead give you an extremely high positive count, which the code already checks for.

Personally I prefer to use unsigned integers but do as much as possible with bounds-checked wrappers that abort on overflow. Rarely does the performance difference actually matter.
Plus Amazon certainly has dozens of ideas of how to generate revenue from this over-and-above subscription/bandwidth fees.
It's okay to maintain a state of ignorance in a world filled with information
I feel like people tie themselves in knots to avoid the obvious conclusion; that he’s in _way_ over his head, and the whole thing is driven by a dangerous combo of incompetence and overconfidence.

I’m not totally sure why this is, and it seems to mostly be just a Musk thing; when Yahoo periodically wakes from its slumber to make the Yahoo Finance UI inexplicably worse or whatever, say, no-one attributes that to any evil plot; it’s just Yahoo continuing to be rather bad at running Yahoo.

I suppose that some people still think of him as a magical supergenius, but even ignoring the Twitter product fuckups, that’s just really hard to sustain these days.
Unpopular opinion: something being unusual does not necessarily mean it is bad. Yes, it will look foreign to random people looking at it, but if someone wants to seriously work with it, it will only take a few days to get familiarised with it.
The justification of "cognitive overhead" is, from what I have seen, a shibboleth for rejecting "outsider" code written by someone not conforming to the language standards by claiming it is harder to understand. Personally, I would say that says more about the person's inflexibility and/or OCD, not the writer's style.

I am not saying every style is good (some simply obfuscate things and/or make things overly verbose or unreadable) but rejecting a style solely based on it being "non-idiomatic" is not a good thing.
Russia also stands to gain from this attack, by diverting the world’s eye from Ukraine.
It's good, then, that the non-profit pharmaceutical company called Civica Rx will manufacture the insulin under the brand CalRx.
The US government has a surprisingly good track record when it manufactures stuff internally. Outsourcing that to private contractors is more troubled, but nonprofits tend to work out reasonably well.

Comparing to the cost paid per dose of COVID vaccines 30$ insulin is easily achievable.
As the parent comment quotes, government will not be manufacturing the insulin.
they just can't let go of that amazing "print" syntax with no parentheses
There's more than a single employee at Starlink. There's over 200 people significantly on impacting nearly an entire field of science, along with their subscribers paying money to impact an entire field of science.
Alien life might not be something science can ever discover
But if you don't use packed attributes, then the compiler will still add padding as necessary to avoid misalignment, while not wasting space when that's not necessary.
> That's a very high percentage for a small city.

Toronto isn't a small city.
I wish I could work with C again
Claims are cheap.
Last year I was living in the center of Chicago and couldn't even get DSL. Comcast quoted me $68,000 to run a cable from the building next door which had service. I told them this must be a mistake. Their rep agreed and sent out a 2nd survey team.

"It was a mistake!" they said. The price should have been $71,000.

I had to get 5G from T-Mobile, which was actually excellent.
Strong disagree regarding "multimedia". A "book" is the medium, but a passage of text from that book is a piece of "media". This piece of media might end up in an animated illustration that forms part of the "multimedia" presentation.

The difference with "multi-mode transport" is the end result involves more than one type of transport - train and truck. But a "multimedia" presentation ends up as one thing, such as a CD-ROM from the early days of multimedia.
ice cubes stick to other ice cubes, I would assume it's because of melting and refreezing but I can see one reason why cold welding might not happen: Ice is dihydrogen oxide, so that oxygen atom might be a problem for cold welding.
> China has quite a few exceptional engineers and scientists (and money) to pursue their objectives

They could, if they played the long game:
"... the only way that China is going to break through the 5nm barrier is by going back not just a few years but a few decades: Shanghai Micro Electronics Equipment (SMEE), China’s answer to ASML, is building fully home-grown lithography machines using krypton fluoride lasers (Krf); this is previous generation DUV — first introduced around the turn of the century — using wavelengths of 248nm (current DUV processes use argon fluoride lasers (Arf) to achieve 193nm wavelengths). What SMEE specifically and China broadly needs to do is move down the learning curve for lithography. SMEE needs to learn how to use Arf, then immersion, and then EUV. It doesn’t need to take 20 years, either: while ASML needed to invent everything, SMEE has the luxury of already knowing what is possible; the same thing applies to every other part of the semiconductor value chain.

This, then, gets at why this PR cycle could be bad for China: the Mate 60 is a short-term propaganda victory that threatens to distract leaders who don’t understand semiconductors from facing up to and fully investing in the long road to semiconductor independence; it’s harder to accept that it might take 15 years when you have 7nm capability in hand right now."

https://stratechery.com/2023/the-huawei-mate-60-pro-7nm-back...

Unfortunately, Xi is a dictator. Dictators don't have the luxury of playing long games.
Gov. Newsom, as of late, has found his veto pen and hasn't stopped using it. He vetoed one insane law which would have taken parental rights away (AB 957 would have updated California law to clarify that, for the purposes of child custody and visitation decisions, a parent's affirmation of a child's gender identity or gender expression is an essential factor that must be considered in determining the best interest of the child) he also vetoed a bill which would have added caste as a protected class to California’s current anti-discrimination laws, as well as ones to decriminalize psychedelics, and one to require humans in self-driving trucks.

I just can't figure this guy out, but he's such a political animal I can't believe any of these have anything to do with any sort of principles on his side.
Living in a Country on the Brink
Did they ever link the reddit post?

I found it: https://www.reddit.com/r/AmItheAsshole/comments/tkcl5b/aita_...
The DC metro is great
> scientists at University of Exeter witnessed 120 attacks that took the same course, with the bee triumphing each time.

That’s shocking frankly.

See also bees clumping around giant hornets and killing them by heat death.
The biggest benefit here is that it helps to filter out bad ideas.

If you're struggling to come up with a good narrative for why the work is useful or compelling, there's a high chance that it's because the benefits are not as great as you thought it was!
Oh, add to it this one: https://www.latimes.com/california/story/2023-10-08/newsom-v...
Thanks for asking this. I was only recently made aware of this argument technique and it’s a great antidote to division.

i.e. No matter your opinions, make your best case for why this is a good idea.

See also: strawman
I usually like 1.

But, it can be nice to have one for output; plots or something.

I assume folks who work in a corporate environment would want one for slack, outlook, or whatever.
We have aggregated most cloud GPU providers into a single platform, so you have an easier time getting the machines you need with our aggregated availability. You can check live availability and prices at https://shadeform.ai

Disclaimer - I am one of the cofounders.
My guess is this is preparations for a presidential run.
Hi! I’m not sure if I’m reading you question correctly but if you are asking why would companies comply with the data rights requests made through the Permission Slip app, then the answer is they would do it because it’s legally required under the California Consumer Privacy Act and request made by consumers through “authorized agents” (which is the legal role CR is taking in this case) are equally mandatory. Also, some companies have wisely decided to voluntarily respect such requests. There are more nuances but that’s basically the main answer.
I wish nobody would have to.

(Haha, only serious.)
Kombucha is also very satiating in terms of the appetite for drinking. Hits almost the same spots
If it fits perfectly. Unfortunately, the breaking probably deforms the two ends.

There's a process in optics called "optical contacting" where you take two super-flat surfaces, push them together, and they stick. This is used in some specialized components where there can be no gap or optical adhesive at the interface. The pieces really do stick together. With optics, you don't have to worry about the materials oxidizing at the surface.

Also if you break a rod in space, you'd better be holding on to both pieces. ;-)
Out of the 13 people who have attempted the motorboat speed record since 1930, 7 have died in the attempt.
How Loro Piana Became Silicon Valley's Favorite Flex
In every case I've seen layoffs-but-expanding-hiring it's always been completely separate teams, maybe even completely different business units - which in a sufficiently large company might as well be different companies.

Have you seen any occurrences of, e.g. layoffs in a team of web developers while simultaneously still hiring web developers?
Isn't that just the idea behind forums/imageboards?
Crypto, Bitcoin and the rest of it cannot (and can never be) a solution to micropayments at all.

It encourages people to lose their money due to extreme volatility and nobody uses it for anything other than speculative trading which also encourages people to lose money.
When the government also gives de jure monopolies on production and distribution, they can reasonably call for price caps as well. You're thinking of the way economics work in a free market.
That’s what ads are.
I mean its very hard to compare an overnight train experience with a few blues Boston to NYC. The Acella is fine you have a large seat with some space around you and pretty crappy wifi. Definitely more comfortable than a coach airline seat maybe in line with business class space and comfort wise but otherwise not that not worthy.
>it's an even less readable "cute" flashlight js trick. I don't know why he thought this was a good idea. Thank god for Firefox reader mode.

not even a proper flashlight. it updates when the mouse moves, so you're SOL if you scroll on desktop.
Original Apple Developer CDs for Sale
Should still be added. Are are talking a lot about perfomance so this is where SBE shines. Worth comparing if you want to show of the numbers.
I want to both be polite to the OP but also agree.

Writing correct C is hard, so I’m not going to knock anyone who found stuff that helps them.

But pound defining shit to things you know via your Hungarian notion? Write some elisp. My Haskell programs don’t actually have Unicode lambda in them.

Pascal strings? Yeah, that’s probably the better call, but why not use C++ or Rust or something where a bunch of geniuses got it right already?
> the California governor, a Democrat, said earlier this year that the state would soon start making its own brand of insulin. California has a $50m contract with the non-profit pharmaceutical company Civica Rx to manufacture the insulin under the brand CalRx. The state would sell a 10-milliliter vial of insulin for $30.
I like it a lot. Especially the part about ditching const
qualifiers. They clutter function declarations, don't make the intent
any clear, and almost never improve performance. Restrict, on the
other hand, I've found makes the compilers emit better code in many
cases.

But I don't like using 1 and 0 instead of booleans. Many standard C
functions (fclose for example), return 0 on success. Better to be
explicit here.
Again, not much value without also interviewing bootstrapped founders who failed. I'll bet good money that there are plenty of founders who followed every single one of those lessons and failed because of some other reason.
Experience private,realistic interactions with loved ones and your favorite characters through our long-term memory AI-powered platform.
Effective media allows consumers to listen to what they care about. Hiding information until you've clicked doesn't allow you to decide if you want to hear it or not.
As a fan of the All In podcast I figured Chamath got his cashmere sweaters in Italy but until now I didn't know the brand. But $750 for a ball cap? If you were to wear one in SF would the ladies know what you were signaling? Here in the Midwest they might think it was an Italian Tractor manufacturer if they knew at all;<).
Does linuxserver.io have a bad reputation? or is it just that it's yet another dependency in the stack?

Asking because I've been happy with their containers so far
California nonprofits are typically a special breed of corruption.
Also, `#define countof(a) (sizeof(a) / sizeof(*(a)))` is unsafe since the arg is evaluated twice.
Begging all the PM’s to not be visibly disappointed when my non-web demo isn’t as shiny and fun looking as “changed the colour and position of this button”.
Notably, artists on bandcamp often belong to smaller record labels. I'm not sure to what extent the RIAA deals with it at all, so I wonder what the existential threat could be.
You'd think he'd lose the Gordon Gekko hairstyle first.
Insulin was invented a long enough time ago it is not clear to me why it is not a competitive commodity market by now.
This has got to the most HN comment I've ever read. I love this site
The no-const people will never be satisfied, so just use const as necessary, propagate as required, and ignore them when they complain. If they take it out, put it back in. They'll always get bored first. I've been doing this for 25 years, and I'm still here.

(The static thing might depend on the tooling. I went static-by-default about 15 years ago, around the same time I went full size_t, and I've yet to have a problem with it.)
With senior people, demo-driven development is fine, because they will generally do the right thing on the path.

Software has gotten so tedious. I genuinely think that the habit of switching to languages/tools/architectures where everyone is a novice has left the software industry without the usual pipeline of young people working with people who know what they're doing, and as a response there's just endless ritual and methodologies that exist to work around the fact that no one builds or bothers with expertise.
Huh. I find ESC easier to type than Caps Lock because it is in the corner of the keyboard.

I used to have RSI and what solved it (over 15 years ago) was taking more care to hit the precise center of the key. Using my sense of touch to sense the key's exact location before even trying to activate the key helps me do that. When the key is on left edge of the keyboard, it is easier to do the determination of the exact location (of the left edge of the key I want) because I don't have to worry about accidentally activating the key to the left of the key I want. Caps Lock of course is also on the left edge of the board, just like ESC is, but ESC is also on the top edge, which is an additional help: the easiest keys to type in my experience are the ESC key and the left control key because they are in corners of the board. (The other two corner keys, "pause/break" and the right arrow key, are harder because of how far they are from the home row.)

I never understood the desire many writers on this site have of moving the hands as little as possible. More precisely, I understand the rationale, but I consider the rationale to be misinformed. If you don't move your hands (i.e., because you have a keyboard with only 36 keys or something), you still have to use your arm muscles to hold your hands over the board, and the human brain is better at movement than at using the muscles to statically counteract gravity like that. That is part of it, but there is more. When hitting a ball with a tennis racket, it is ergonomic to take a back swing, i.e., to move the part of the racket that will hit the ball in the direction opposite the direction you want the ball to go, before starting the swing. Very quick back swings are important in typing, too, for preventing RSI (for reasons I don't fully understand). And I think moving my hands around the board (i.e., in the 2 horizontal dimensions) makes it less likely my brain will put the relevant muscles in "freeze mode", which makes RSI more likely. Or something like that.
That's a pretty thin pitch given the excessive drama of what you're claiming.
Tell 'im he's dreamin.
To be fair they did say that when contributing to a shared project they follow the prevailing standard.

I don’t see the harm in following this for your own passion projects. You aren’t doing it for the world, you’re doing it for yourself.
Is a $1M Splunk bill worth it? – SigNoz
MacOS 10 used to let you specify scaled resolution in Control Panel >> Displays >> Resolution (scaled). It doesn't give you numbers, though, more like "larger text" and "more space", with "effective resolution" under the image. The effect is a scaling factor, though, you just can't see the actual value. I expect macOS 11+ also continues to do this.
Cheap insulin already exists right over the border and it's government that is in the way. I wonder why they don't start there instead of elaborate government manufactured insulin plans or price controls.