skysight-inc/HackerNews huggingface dataset:
One technique I try first is to write code that cannot fail. For example, a sort function should never fail.

Consider the case of running out of memory. One option is to pre-allocate all the memory the algorithm will need, then it can't run out of memory. Another option is to regard out-of-memory as a fatal error, not one that needs to be thrown and caught.

Another example is UTF-8 processing. Early on, I did the obvious when invalid UTF-8 sequences were discovered - throw an exception. But this got in the way of high speed string processing (exceptions, even in the happy path, are slow). But what does one do anyway with such input? abort the display of the text? Nope. The bad sequence gets replaced with the Unicode "replacement character". This turns out to be common practice, and now my UTF-8 processing code cannot fail! And it's smaller and faster, too.

It's a fun challenge to figure out how to organize the program so it can't fail.
I enjoy the pettiness of not using apple’s actual logo.
The only reason Apple would be so cavalier with CSAM is knowing that the data is already accessible using other means. I guess that's why they have a disregard for the privacy aspect of it.
Except that LOC doesn't take an offset and pointer arithmetic in fortran isn't guranteed to be safe. No practitioner that I ever worked with ever used them besides. I mean you could have simply argued that malloc existed.

Anyways, from the original guide of fortran (maybe I am mischaracterizing their rationale, but from the horse's mouth):

> However an assumed-size array declaration has been used in the software, in order to overcome some limitations in the Fortran 77 standard. [LAPACK Users' Guide Third Edition]

It doesn't matter what the real reason is. The interface to matrix solving algorithms is archaic feeling:

DGTTRF( N, DL, D, DU, DU2, IPIV, INFO )
DGTTRS( TRANS, N, NRHS, DL, D, DU, DU2, IPIV, B, LDB, INFO )

Yes, I understand the purpose of every argument, I even understand the weird naming convention. Everything about this feels old and a newer language (such as a newer fortran) could just give you

x, _ = A.solve(b)

Or something similar and still manage to capture the dynamic sizing, the efficient tridiagaonal storage, sub-block structure if needed, and error information via info; you can trivially make a signature that does it in place if you don't want a silently copying version.

There's that LDB, and it certainly has nothing to do with a sub-block of the matrix since it has to do with the storage of the right hand side and enabling a single call to provide multiple solutions while assuming a particular array layout.

Anyways, nobody is really engaging with the real point: that it is obvious with use that Fortran is an old language because there are all kinds of these historical artifacts laying around. As I said, everyone knows it, everyone who interacts with it will feel it. But by now fortran isn't alone in this camp. Moreoever, so what? You should be able to admit to yourself that Fortran is an old language (that is simply a fact), that it gives the impression to most people of being an old language (that is again, simply a fact and why shouldn't it?), yet it has many modern features and people can be quite productive in it for some problem domains. Adding modern features isn't going to win people over that are prejudiced against Fortran.
End-to-end encryption sometimes leaking raw content to a "trusted party". What a joke.
Maybe it correlates with TikTok rather than the pandemic?
Kotlin has a lot of features aimed at mitigating the pain of working with Java APIs, such as extension functions. So you can sort of fix the API in a library or in your own code. (But it doesn't help with the lifecycle or reducing the number of layers.)
A lot of things had circuit diagrams then, I did chip level repairs on Kaypro clones, and CP/M machines at the time, and it was all TTL off the shelf chips. You could follow the signals through the diagram with a logic probe, clip out the broken gates, clean the board, and pop in a new one, it was very satisfying.
Not listening to a*holes blindly accepting only one side of the narrative, at least open your eyes to the opposite, or you will never realize when you're right or wrong. It is just science man, it is call antithesis.
>> if you buy property in excess of half a million dollars- you'll get expedited green card service instead

It’s not quite like that. You need to create jobs. At least 10 of them [1]:

“ aliens who have invested or are actively in the process of investing $1 million (or $500,000 in targeted employment areas) in a new commercial enterprise that will benefit the U.S. economy and create at least 10 full-time positions for qualifying employees. These aliens are also called ‘EB-5 immigrant investors’ “.

[1] https://www.uscis.gov/green-card/green-card-eligibility/gree...
The phrase is “pre-screening” of uploaded content, which is what is happening. I'm pretty sure this change in ToS was made to enable this CSAM feature.
Floods “of the century” – Tale of a foretold disaster
It's not meant to undo all design changes on Twitter. It just disables the webfont and lets your browser use its default font instead.
Soviet Ship Kosmonavt Yuriy Gagarin
> I don't know why, but Ubuntu still manages to make installing updates a 50/50 chance of breaking the NVIDIA GPU drivers, which then means I have to reinstall them in 800x600 where the "Software Updater" window doesn't fit on screen anymore.

I cannot dismiss your experience. I think you are telling the truth.

But I was introduced to Ubuntu by a (mildly) enthusiastic 50 years old electrical engineer back in 2006, so I know it used to work for some ordinary people even back then.

I really don't know some HN-ers manage to break Ubuntu repeatedly while it just works for non technical users, but a qualified guess is a combination of exotic hardware and tinkering (a good thing).
> WebDatabase, with or without a spec, boiled down to shipping SQLite. We didn't want the Web to depend on that.

Ironically, all the popular browsers already ship SQLite - they just not expose it directly. So, in a way, the Web already depends on SQLite. So does a lot of other technology - we're talking about one of the, if not the, most widely distributed pieces of software on the planet.
cryptofish!
Actually, opium production went up in 2001 after the Taliban lost control.

https://en.m.wikipedia.org/wiki/Opium_production_in_Afghanis...
Mullvad and IVPN offers the same (disclaimer: I'm part of the IVPN team). SafetyDetectives is a site that is owned by a VPN conglomerate [0] with the added bonus of having a history of distributing malware [1]. I suggest not using them as a source for VPN related info due to conflict of interest.

[0] https://restoreprivacy.com/vpn-review-websites-owned-by-vpns...
[1] https://www.cnet.com/tech/services-and-software/what-is-kape...
HTML Tags to Make Life Easier
Even the tiny computer-generated keynote part points to something that can nudge humanity forward.

Namely, the possibility of automating bullshit. Endless mission statements, employee narrated stories, and hand gesturing is very valuable. I would pay $10,000 out of my pocket for the opportunity to never do those product hype videos again.
"Get out the market if you can't handle that"

I realise this was just addressing the general "you", but I sold what little I had a couple of years ago for this exact reason.

I've only become more convinced it's a house of cards over time - although each to their own, I fully get that I'm one random on the internet and could be proven utterly wrong on this.

I just really wonder what the price is of any of these things? I don't think anyone knows. For anything else the free market is usually what decides the price, but this information undermines confidence even in that. How much of the money coming in was ever real? 50%? 5%? more? less?

On one hand I get that's why it's so volatile and some people have made a fortune on paper, but there's just so much that could go catastrophically wrong at any moment that I just don't have the stomach for. I also get very weary when people say they intend to keep buying and holding forever - that really is placing an all-or-nothing bet on this.

I get that stocks/real estate/whatever can crash too, but at least you have something of intrinsic value in each of those cases.

In any case this was a good back-and-forth and it was nice to hear a perspective on the other side of this without the non-stop acronyms and emojis on Reddit and Twitter :-)
Pedro Almodóvar’s Films Ranked
> you can be reasonably optimistic that it won't have any horrible usability bugs

Or alternatively, since they are the ones also building it, they intimately know it's (undocumented) pitfalls and how to work around them and/or they plow through bad DX with a horde of engineers that only a big corporation like them can afford. Dog-fooding doesn't automatically improve a product.
> We're just starting out, and a hundred years ago ICE efficiencies were atrocious, too.

Are we just starting out with fuel cells? They were on the Apollo missions and the Space Shuttle, and Wikipedia says they were invented in 1838 and commercialised in 1932.
The issue is that for a BEV, charging speed is directly coupled to energy demand from the grid. Using nice numbers, if you want to charge a BEV with a 100kWh battery in 6 minutes, you'd need a 1MW charger, which is a non-trivial amount of power that needs to be dispatched. Multiply this by the number of cars charging at any given time, and you have a recipe for huge demand volatility, which is a problem if our grid is going to be powered by non-dispatchable sources like wind and solar. The alternative is having chargers be so ubiquitous that everywhere you park you have some form of trickle charging, so that people living in apartments don't have to sit at a fast charger once a week.

Hydrogen gets around this, because eventually it's going to be a clean source of consistent demand that takes advantage of the fact that renewables require overproduction. A country like Denmark meets 40% of its electricity demand from wind, but produces up to 140% during periods of oversupply. If Denmark wanted to produce 80% of its electricity demand with wind, and do so with 90% confidence, it will generate more than 100% of its needs on average. Even if you wanted to look at the EU instead of Denmark, the same will still apply, because in order for two locations A and B to able to cover for each other when one has excess and the other doesn't, it must also be true that there will be times where no-one has a shortage. Since we want to guarantee our ability to provide X units of power at any given time, we need the grid as a whole to almost never have a shortage in aggregate, which means we will generally overproduce.

To give you an idea of the scale of this; California already curtails around 2.5TWh a year, which is enough to charge anywhere between 25 and 40 million BEVs. And that's one state, today, at relatively low-moderate renewable penetrations. It doesn't really matter if the round trip efficiency of hydrogen is lower than Li-ion, because we aren't going to have a shortage of electricity by any means. We're already throwing the stuff away.
I learned to plan programs with this.
I do not trust the review people, they are not even Apple employees, they are cheap contractors that hire cheap labor,this people are treated like crap so I can see them making mistakes , is not like you never heard of Apple review guy decided X and when other guy checked he decided !X .
Could be both. Our bodies are made of feedback loops.
Fair enough.

The mobile platform is one I ignore. The only thing I know with any certainty about my phone is that it's running a bunch of closed source spyware, so I'm not entrusting it with anything much - and certainly not my passwords.
Berlin, a divided city. The events of 60 years ago
> I have yet to see any convincing argument for how we get “back” (if we were ever there) to a time when technology was on our sides.

Did you actually see who had written this article? This is CSO of Purism, company developing user-respecting devices.
"(...) but there are safeguards against that."

Hah! Nice one :D
"Over thinking, over analyzing separates the body from the mind.
Withering my intuition, missing opportunities and I must
feed my will to feel my moment drawing way outside the lines"
I'm not a Tool fanboy, I really ain't, but I use this as kind of "a mantra" when I catch myself overthinking it.
Must have been bad- the normal recommendation for norovirus is to avoid hospital because it's so infectious.

e.g. https://www.nhs.uk/conditions/norovirus/

That's what isolation wards are for, I suppose.
> Every time I read how the great unwashed should just contribute fixes already to benefit everyone, I despair. I write code. I build my own PCs and I have a rather good knowledge of how to debug, fix, optimise and otherwise maintain all my software and hardware.

But i'm not saying that everyone should contribute, or even that everyone can. I know that i'm certainly not experienced enough in systems programming to do that, instead being more proficient with higher abstraction level languages.

That said, the fact that there's the possibility of contributing for at least some people is better than what Windows and other OSes let you do. Not only that, but if the problem is annoying enough and makes enough people frustrated enough, it's likely that there's actually someone amongst all of them who cares enough to fix the problem for everyone.

For the fix to land in the mainline might take a few months or years, but the end result is still better than looking at a black box and having literally no options to get it to do what you want.

If a new Debian updates break my GRUB install, it's likely that there will be people on GitHub discussing workarounds and fixes within minutes. If my off brand hardware doesn't work as i'd like, it's likely that i'll have to do some digging but the chances of me finding a fix aren't 0 either. If the same happened with Windows drivers, i'm not entirely sure what i could even do, since the hardware setup is something that almost noone actually cares about. In the case of *nix, if i were skilled enough, i could probably dig around the source myself and work on fixing it, as someone luckily had.
You ommitted resume from suspend which is still a frigging problem. At least some finally support UEFI so your usb key install doesnt freeze on the first screen.

But yeah wifi and nvidia are solved - just a black screen and single mode startup the first time to deactivate the opensource drivers for some obscure reason (I understand they prefer it but why does it crashes... might as well just put the nvidia ones directly)
> Ah yes. But SQlite not having competing independent implementations somehow is?

Except that's not why it was culled. The reasons are discussed in great detail on this thread and elsewhere.

> non-standards that Chrome pushes (many of which will never get a different implementation because both Safari and Mozilla consider them harmful) are good

I'm saying nobody uses those Chrome only APIs, until they become standards (which requires acceptance by other vendors). Or are you against experimentation?
Damage to the eco system. It's been well documented[0] that a lack of predator species can cause lasting damage.

[0] https://www.yellowstonepark.com/things-to-do/wildlife/wolf-r...
> For instance desqview would have run on some imaginary DOS like system that would have been created in the power vacuum of the mid 80s.

It'd be DR's MP/M, or Microsoft's Xenix.

> There's cascading consequences that all have high variance.

Indeed. This possible future forks all over the place because the PC market was quite chaotic at the time. It's absolutely impossible to predict with any sort of certainty what would happen.

One prediction I haven't seen is MSX. MSX had the potential to commoditize the home computer segment (and leech money out of every manufacturer the same way they did with the PC)
You're not going to be able to avoid that ssh-keygen step.

"Pick a huge random number, this is a private key, you must never tell anybody else this key" is a fundamental operation. If they've never done this operation, that's more telling us how bad a job we did securing everything else than a problem with software development.

If the argument was, "But my users all have perfectly nice long term private keys for some other system" then we could leverage that to get keys to make GitHub work, but in reality that's not the case. SSH keys are likely the most common private key† full stop even though they're only needed to do the 21st century equivalent of telnet

† For people anyway, for machines Let's Encrypt means there are an eye-watering number of new private keys minted each day by Certbot and similar tools.
Hands-On Guide to Algorithm Configuration Using SMAC
Most people want to just code, not putz around for hours wrestling with dev environments and tooling.
LandOrc Uses NFT and DeFi Technology to Bridge Global Real Estate Funding Gap
This is amnesia. The neocons thought they could export US style democracy to the Middle East and Central Asia. They were wrong, morally and practically.

Also, the Taliban did not attack America. Al Qaeda, led by OBL, did. Now the Taliban is back in power (as good as) and the US is giving material and military cover to rebranded Al Qaeda groups in Syria.

Fortunately Russia put a stop to the regime change plans in Syria.
it looks like the vast majority of our pollution and energy generation through chemical/physical transformation (like the hydrogen in the article) could be rendered 'green' by remembering the free fusion reactor in the sky.. nearly all pollutant can be reclaimed by high temperature pyrolysis process, and hydrogen can be made without any methane by simply splitting ocean water. The catch? Just spend some years and build few gigascale solar parabolic through (my preferred, long lasting, robust, thermal mass even at night) or photovoltaic power plants and get let's start to properly treat the waste and energy needs, obviously once you have that much 'free' electricity you wouldn't need hydrogen, but for the sake of always having a b-plan, it wouldn't hurt.
No, manual review only happens after the threshold is reached. Meaning, there is a 1 in a trillion chance that threshold-number of images are manually verified by Apple.
This should reflect in the title that it is about GitHub, not about git.
What a headline. They specifically mean for strings and lists - not exactly the first use case you'd think of for + and += ...
Also, I think it would have been a matter of time before some researcher analyzing network traffic would have discovered something.
Amazing color. I wish we could go back from soulless black and silver. Still addicted to it and having a gray 386DX-40 and Pentium 133 MHz, typing this on a gray 101-key keyboard. Mmmmm... :-P
Nice to meet you!

Thanks for the nice words, my program is much more modest than cmacro :-)

Yes, I think that the transform you describe would require the processor to know about types, which is something I avoided here. I experimented early with writing a function that would track the types of things and enable smarter macros, but it became obvious that it was going to be a choice between writing a full compiler frontend and a hacky thing that worked only in trivial cases, so I discarded it.

The decision was to keep it as a naïve macro processor, just with a minimum understanding of C syntax, and leave out anything that requires taking into account the semantics.
I have other macros that do things like expanding «obj[a..b]» to «(Slice){.start_p=&obj[a], .end_p=&obj[b] }» but they are not worth it, because to work smoothly they would need to know the type of «obj». If absolutely needed, I think that «_Generic» could be used here but it starts complicating things beyond the point of diminishing returns.
I don't see how this is particularly interesting. Is anyone is arguing for blue hydrogen as along term fuel? It probably isn't much easier to work with compared to the methane used directly as fuel.

The point here was to get things like cars and factories that use gas ready to use hydrogen instead, by making it abundant and supported. Then switch over to using solar panels and whatnot to synthesise the hydrogen. At no point in that story are the emissions of blue hydrogen an issue.

As plans go it is a pretty good one. I'd rather leave things up to market economics, but this is better than Europe collapsing because the oil gets cut off for 6 months.
Somewhere in the middle but towards the latter end of things. I believe that before the licenses, they did not have the recurring revenue to pay for a high-quality support team.
DW anniversary special:

60 years ago, the Berlin Wall went up, dividing the city — and more

https://www.dw.com/en/60-years-ago-the-berlin-wall-went-up-d...

The East German secret police and the Berlin Wall

https://www.dw.com/en/the-east-german-secret-police-and-the-...

Underground pop art thrived in East Germany

https://www.dw.com/en/underground-pop-art-thrived-in-east-ge...
There is no reason to wait for all UI teams. They could just implement it on one platform where the crop coordinates come from the user and keep using the current setup for crops from remaining platforms.
That often doesn't work on windows. Autotools are brittle at the best of times even on the same platform. Makefiles aren't actually portable (there are many flavours of make). none of that is standardised in any way, no software that I have installed in the last 10 years has had it as its install instructions for anything other than development.

It also doesn't handle dependencies, if the library uses libfoo@v0.0.1 and I have libfoo@v0.0.2 installed, this will happily attempt to continue. This isn't a solved problem, by any stretch of the imagination.
It could easily be made into a series not unlike Halt and Catch Fire.

Just don't ever try to make an IBM mainframe boot PC-DOS with a CGA font and do black on white on an IBM 3278... Ever...

Jesus! Didn't they have technical advisors in production?
> 10. has anyone yet found a legitimate use for throwing an `int`?

I use that a lot in constexpr computations -- to stop the compilation, I usually do 'throw __LINE__'.

-- Using a more complex type is not warranted -- there is no catching end in constexpr.

-- And in case the same routine ends up called non-constexpr, it will be easy to identify the place that called 'throw' -- line numbers are unique without additional effort. Just don't put two throws on the same line.
The supply isn't fixed. We already know it's possible to economically produce vegetable oil at 5 bucks a gallon. If demand rose, supply would rise to meet it. If anything, increasing scale would reduce the price.

Also, we have a ton of supply for free to start with. All the oil we use right now is still usable for fuel even after it's used up for cooking. Food grade oil is a higher grade product than fuel grade. Most of it is just wasted now.

I'm not saying we should build our entire energy infrastructure off vegetable oil. There are probably cheaper, better ways. But the market will sort that out. The point is we don't have to give up oil - we just have to give up digging it up. Biofuel isn't some remote and impractical future tech, it's something we throw away millions of gallons of right now.
I don’t see how that refutes anything I said. The way I see it, they’ll either fail, or stop respecting their users, like every other successful tech company thus far.