skysight-inc/HackerNews huggingface dataset:
Yeah. Take for example the thinking on const generics for user-defined types.

Right now in the Const Generics MVP you can only use integer types. So you can write a generic argument with an u32 N in it, or a char C (a Unicode scalar, so basically a "character" in Unicode) or something like that. There are a bunch of practical uses for this, but obviously there's no reason in principle it must be so limited.

In C++ there's always a temptation to just rip the knob off, sure it might be a terrible idea to make a new type generic over the 32-bit floating point numbers, but that's your problem as the developer right? Just don't do that if you're uncomfortable cleaning up the mess. Rust does not like to provide so many foot guns.

So the last time I looked the proposal was that user-defined types could be eligible for const generic treatment if they derive Eq.

At the first glance that sounds correct, if the type is Eq then it can make sense to be generic over it since apparently we can tell when A = B and thus whether Foo<A> is actually the same as Foo<B> or different.

But then an extra thought brings you up cold. I can claim my type is Eq with one line if it's PartialEq. And I can claim my types are PartialEq just by providing a bogus eq() function that always says false. So isn't this a useless requirement?

And then you study the language more carefully. They're going to require that you get Eq by deriving it. Anybody can implement PartialEq as I described above, but that's not derived. To get a derived PartialEq (and thus Eq) the derive macro has to allow that, and that's only going to work for the kind of composite types a non-crazy person would use for const generics.

Your trivial enumerated type with a list of fifteen types of chocolate bar can easily derive Eq if you want to write const generics so that somebody can make a variable of type AdventCalendar<Chocolate::Mars> in this future Rust version, but my custom type that contains two pointers to C Strings can't successfully derive Eq and so isn't eligible to try to be used for const generics even if it really genuinely implements Eq.
Kava is the national drink of Fiji. It's been consumed across the Pacific Islands for 3000 years. It's currently banned in Europe, and the US FDA refuses to give it GRAS (Generally Recognised as Safe) despite it being an ancient food of a US state).
The basic idea isn't that you want to avoid such activities, but that you want to know which functions do it, so that it is easier to reason about your program.
I tried, when Spacemacs was somehow broken on my system. I didn't find anything better on Doom, and fixing Spacemacs was easier than switching to Doom.
Using Doom, most of your muscle memory from Spacemacs is gone because not everything is configured the same (that is of course normal). But not all, and that make the experience weird to me.

I also feel like Spacemacs is growing faster and has more feature than Doom, because more dev's are working on Spacemacs. But I might be wrong about that.
> Apple has hardened their hardware against attackers replacing components of the phone with compromised versions.

It also hurts phone thieves.

Once the device is locked up remotely it's impossible to sell, and you can't even sell the thing for parts since they won't work.
Same. It also has a problem generator to practice different kinds of problems (https://www.wolframalpha.com/problem-generator/?scrollTo=Cal...). Note the step-by-step solution is paid.
Good response thanks I had completely overlooked that aspect
If you look back at the history of Apple you'll find they've always been authoritarian control-freaks, ever since the original Macintosh. This is merely another step in the same direction.

The article even says that the repair shops have already found ways around it, so whatever element of "security" it provides is clearly extremely low. It only exists as a (low) bar against third-party repair, with "security" as an excuse.

As the saying goes "those who give up freedom for security..." etc.
The Intel graphics drivers for Linux are open source. If they pull a blinder like that, it can be undone.
Ah yes, the Maya did not have the tradition like the inca to bury 100 human and lamita babies alive on solstice. And I am not an expert in the various rites of human sacrifice. But what I understand is, that a sacrifice is more powerful, if the sacrifice is more valuable.

So if this was the norm:

"Some other sacrifice related practices include burning victims alive, dancing in the skin of a skinned victim, taking head trophies, cannibalism, drinking a deceased relative's bathwater, and sprinkling sacrificial blood around sanctuaries"

then the only reason for them to not sacrifice babies regulary (but I am pretty sure they did so on occasion, too) would be, if they would not deem them worthy enough. So my point kind of still stands: why would you want to visit such folks?
Hormones mean women are less strong and thus less able to do the job. You get more work out of males.

Plus women were more suited for sex, these were not enlightened times so rape of slave women was not frowned on.
I was brought in to a project on Friday to help figure something out. The gist of the project is that we have a system which generates tons of event data. Basically interaction logging. And until recently the system sent those logs to some other systems via nightly files. But someone in the business decided it made more sense to do it “real time” and so some folks have been diligently coding away and have built their solution only to find there was a gigantic miss:

The system is generating thousands, sometimes tens or hundreds of thousands of events per hour. And the api that is to receive this data can only receive 100 “records” (events) per request, and the system that generates the data can’t do any sort of multi threading or multiple requests simultaneously…it can just fire off one request after another..

I did the math and on our busiest day this process would take something like 827 years to send all of the event data…

I say all of this to highlight your point that it’s a foundational skill to gather requirements..and yet I’m working with sr engineers that created this mess…
Next interview: “So why did you leave your last job?”
“Oh they had to get rid of me because I’m an insufferable smart ass! Hahaha
You also might want to try google search. They display calculations for these particular queries and quite a few more.
Many thanks to WA for getting me through high school and college calculus.
Ask HN: What's in Your Anki Decks?
Programming interview prep stuff to keep fresh? Unix commands? Language learning materials? What type of decks do you all have?
If you'd watched the video from the grandparent comment, you'd have seen that those kind of uncontrolled side effects are exactly what Simon Peyton Jones was talking about in the video when talking about "safe" versus "unsafe" languages.

But in any case, yes those things I mentioned can fall under the category of "unsafe". In the category of memory safety, you want to be sure (with compiler guarantees!) that no thread will secretly free some allocated memory while you are still using it. This is something the borrow checker can give you in rust. There are no builtin guarantees in Rust that this fancy new library you imported won't do `DROP TABLE users`, or open a socket to https://haxorz.com and pass on all the environment variables. There are other languages in which you can be sure that a function cannot open any sockets unless it specifically has "can open sockets" encoded in its type.
The same argument could be made for any security hardening. Why bother with MFA, biometrics etc when the chances of being compromised are statistically very low. The reason is that it does happen and on a scale that's hard to quantify.

We have examples in Australia of ordinary citizens being targeted by China for promoting Hong Kong or showing support for Uyghur Muslims. And evidence has come to light that their phones and cloud accounts were hacked and friends/families targeted.

So for me personally I will take security hardening any day over saving a few bucks to go to a cheap screen repairer.
It’s almost like they have a vision for a product and not every random feature that gets thrown at them fits into the picture.

And frankly, I found a few cases where they were not rational, but more often then not, sticking to what they thought out did absolutely make sense. Like, in case of a DE, the whole UX is the product - so analogously it would be like accepting random contributions regarding your business logic in a CRUD app. These need planning.

Also, I think their vision is actually really cool, I much prefer vanilla gnome to whatever mess windows created, and especially with a good touchpad, gnome’s gestures are fantastic. So at least I am very thankful for their great work!
No problem :) Those were the better days.
Shouldn't it be called GamesMain?
Wow that seems odd!
It's worth noting that Haswell only ever supported Tier1 resource binding on DX12, so none of the new bindless stuff would even be to blame. I suspect this won't affect any projects too harshly, because anything DX12 exclusive probably requires at least Tier2 resource binding support. But I'm guessing something in the resource binding system is to blame...
there’s a joke about gamers who avoid macs in here somewhere
So what you're saying is that google sucks at context clues
Nah troll baiting is saying "PGP tools are installed nearly everywhere (except windows) by default" when windows still has almost 80% market share on PCs. Most of the rest are on macos. If you want something to be useful that relies on network effects then they, and mobile users are who you need to accommodate. Linux on the desktop users are a rounding error.
It's also of note that private housing like this (or even more traditional dormitories) would be illegal in either Santa Barbara or Goleta; boarding houses are nearly impossible to get through zoning. Which would certainly make it more affordable for young, unmarried people to live in the area (who currently commute from Ventura, Solvang or Buelton).
Air traffic control is centralized and seems to work fine.
Ok, I get the problem with "surrending control." Although, to be fair, we all do it constantly.

What if a bad actors at your local water plant decides to poison your tap water ? Or at the local Coke factory, to poison your local Coke ? What if your next plane pilot is suicidal ? Etc...

As stated in xkcd, that fact that most people are not homicidal psychopath is an often forgotten element of our safety system.
Could please share your query / code to do this? Seems like it would make a good Example. Thanks!
The problem with Family Sharing is that it requires that the donor account not be playing any of its games while the recipient does. The workaround is to kill the internet connection to the donor account, then both accounts can play to their hearts' content! Er, as long as the donor doesn't mind single-player content.

Which is essentially what grandparent is already doing. Alas!
Kids also used to stand in the back while being driven around. I certainly did. Not only were there no car seats, there weren't even seatbelts in the back. Putting kids and their toys in the back of a station wagon for a road trip used to be a thing. Everyone mostly made it out alive, and yet we still have laws against all of the above now, everywhere in the world.
At least this isn't enforceable until end of 2023.

this article presents some simple, succinct examples of scenarios where this legislation is... inappropriate. https://www.decential.io/features/defi-and-the-digital-asset...
DirectX 12 is Windows 10 exclusive and that came out 1-2 years after 4th gen, so this would not be a feature Intel was advertising at the time.
You are wrong. With a state actor in the room, it is quite possible to place a complex die with static ram on a thin substrate inside a multilayer board, using the +5 and ground and a number of traces that lead to I/O ports etc,
https://hackaday.com/2019/01/18/oreo-construction-hiding-you...
Remember these are all from 15 down to 10 nanometer parts and at that size circuit complexity takes little space and since they live beneath other chips, they are hard to find with x-rays if there is a +5 and ground plane that hides them.
Remember are 16 billion gates in an Apple M1 CPU,
https://www.macrumors.com/guide/m1/#:~:text=M1%20Macs%20max%....
A million gate parts is as small as a poppy seed and would need to have a fan out - perhaps they could have an optical I/O and live within the corporate data stream, only waking up when special complex command sequences occur and they read their RAM and do their job - back to waiting...
Ah gotcha. That makes total sense. I last like ten seconds each time I try to use the trackpad, probably because of lack of buttons. I probably need to replace my t440s soon because the ram/processor is problematic for my usage (gdal and geospatial data conversions, big gimp and inkscape files, simultaneous rails/npm servers for dev, etc). I’ll look into one with the sweet buttons.
I’d guess it’s akin to insuring a museum. This is the best reference I’ve found on a quick search: https://mdpi-res.com/d_attachment/heritage/heritage-02-00029...
Yeah. This should be what regulations enforce. I’m fine with parts serialization to help identify genuine, certified parts, but as the user I should be able to bypass it if I want to use compatible parts.
> I'm looking for a compare and contrast between A and B. And I do appreciate your replies, but unless I'm missing something, they seem like two summaries of A and no discussion of B. And not how B is different from A. Which is what I'm trying to parse out.

Influencer effect, I suppose?

Really, it's as you said: it's no different than what has been said by others. I supposed the caveat being that Elon is the darling of the tech World, particularly in the startup World with desires to replicate his success.

I mean even Al Gore was saying the same thing if you think about it, albeit with the typical limousine liberal behaviour where he was flying all over the World in his private jet (like Elon, btw) talking about the perils of Climate Change, or as it was referred to back then: Global Warming.

> Crypto does have a high demand and growing demand for energy. That is mainly renewables. But to me,

Was there a part to this that segues into the following part as I feel that was critical to what was followed wasn't entirely substantiated?

While I do not want to speak on behalf of anything other than Bitcoin, it must be said lot of cryptocurrencies are not based on a PoW system, but rather a PoS system, that doesn't require intense mining process that many of BTC's detractors point toward. Moreover, I think what is missing here is that the end (creating more renewable energy thus lessening the dependence of fossil fuels) is just being incentivized by the means (mining Bitcoin). We can sit here and debate if that's the best way, but I've been dissapointed with the Energy landscape for so long that I'll take the win how ever I can get it, and Bitcoin has and will likely continue to do so as it's no become institutional and mainstream.

I'm not advocating for a surplus since practical storage is not here just yet, check my recent post on why as CA has had to turn off it's solar production in Sept 21' because of a skweed economic disincentive, because the energy created could have been used for mining which then could be coupled with heat capturing processes to yield other desirable but energy intensive practices: greenhouse warming, nursing incubating, aqua culture etc... which would help make it carbon neutral or ideally carbon negative.

All of these things have been undertaken in some capacity in the BTC space, but clearly not enough since most of it was mined in China for most of it's history, I'm just saying that as it relocates to the West where it's more likely to occur is a net benefit.

Smart contracts are a 3 hour conversation for me: I spent time at a Megacorp as a dev and consultant being forced to use ETH and solidity when LN and RTSK are now far more capable of doing anything it could do on the most secure network.

And even as an advocate, I think it's only part of net benefit of Bitcoin's network: people simply don't seem to see the value of having an immutable pubic ledger that is backed by he most secure network man has ever devised yet.

We'll get there.
Actually, C++ does limit the non-type template parameters[0] to integral types, enums and function pointers. But some people have found that too restrictive and would like to use other constants as well, like string literals.

[0]: https://en.cppreference.com/w/cpp/language/template_paramete...
10-30 seconds sounds very slow indeed. It used to be slow for me (over 10 seconds against my university server), but I discovered it was because I had not deleted emails and propogated that to the server, I had only marked them for deletion (d), not deleted (D), and so there was some kind of syncing back and forth each time of quite many emails with mbsync. For me now it is always under 5 seconds for syncing and indexing, usually quicker.
That last metaphore was added by the actor himself...the director asked him to have some human showing in him, and now it's history.
Borrowing money to making $4m in a day’: how NFTs are shaking up the art world
I’ve got a 2016 civic and the entire touch screen is taken over when you make a right turn or go into reverse. And it takes several seconds for the system to boot when you turn the car on which is especially irritating in very hot or very cold weather. That and the response is laggy and slow. And sometimes it just stops responding entirely and you have to reboot the touch screen. It’s very annoying “feature” of an otherwise lovely car.
Pretty pixels
That is just spooky and creepy. If you are in a position where you can fire people, they will know it.
> ...vaccines give us permission to stop panicking about the kids.

As a parent, from the data we've got, I am more interested in whatever help vaccines can give our children not to be disease carriers, so I can feel more at ease as they visit their grandparents and other relatives.
Can you grow a ficus but not cannabis? Are they monitoring your gardening to the plant level?

The answer I suppose is that a) what’s legal isn’t necessarily what can be enforced and b) just like no one would find your single cannabis plant, this is probably about industrial level mining where authorities have insight through permits for construction, permits for yearly emissions, use of cooling water and so on.
Did he lose his skills due to a problem in his brain and then get them back when it was removed? Or did he just have brain surgery and it took him a while to recover?
What's really frustrating, is it broke most games. Valorant straight out doesn't run, csgo crashes like crazy.
It feels like a beta.
If you can’t see how felony conviction for having illegal explosives might reasonably preclude you from reduced security screening, I’m not sure anything I can say will convince you.
"Sure, at the same time it prevents 3rd party repairs, but I don't think Apple's only motivation for doing this was to screw over 3rd party repair shops."

Is that why they don't let you replace the microphone jack on a macbook and prevent their suppliers from selling me a replacement battery, keyboard or display?
Seems pretty clear companies are talking about "the metaverse" as broad concept.

https://tech.fb.com/connect-2021-our-vision-for-the-metavers...

https://www.epicgames.com/site/en-US/news/announcing-a-1-bil...

https://www.matthewball.vc/about
On the contrary, as others have pointed out, automatic reference counting seems to be the worst of all worlds.

1. Automatic reference counting adds a barrier every time you pass around an object, even if only for reading, unlike both manual memory management and tracing GC.

2. ARC still requires thought about ownership, since you have to ensure there are no cycles in the ownership graph unlike tracing/copying/compacting GC.

3. ARC still means that you can't look at a piece of code and tell how much work it will do, since you never know if a particular piece of code is holding the last reference to a piece of data, and must free the entire object graph, unlike manual memory management. In the presence of concurrency, cleanup is actually non-deterministic, as 'last one to drop its reference' is a race.

4. ARC doesn't solve the problem of memory fragmentation, unlike arena allocators and compacting/copying GC.

5. ARC requires expensive allocations, it can't use cheap bump-pointer allocation like copying/compacting GC can. This is related to the previous point.

6. ARC cleanup still takes time proportional to the number of unreachable objects, unlike tracing GC (proportional to number of live objects) or arena allocation (constant time).

Reference counting is a valid strategy in certain pieces of manually memory managed code (particularly in single-threaded contexts), but using it universally is almost always much worse than tracing/copying/compacting GC.

Note that there are (soft) realtime tracing GCs, but this can't be achieved with ARC.
And, thus far, fusion yields exactly zero joules of useful energy (unless you count solar).

It hasn't even vaporized anybody yet, never mind anybody you might have wanted to have vaporized.

(Tokamak) fusion will never produce commercially competitive energy. Every plausible system design would be overwhelmingly more expensive to build and operate than a fission plant of similar rating. And, fission is already not competitive, and gets less so every day.

(I still hold out hope for FRC De-He3 fusion for space probe propulsion--4 years to Pluto--but Tokamak eats all the research dollars, so who knows if we will ever find out?)
Yes, I can do the arithmetic. $300 for a train ticket or $150 + $50+ + $50+ is only ~$50 off. Plus, the hassle of TSA x2 airports twice. My point is that, all things considered, the price difference really isn't that great and can be even smaller depending on the flex pricing of Uber. I wasn't trying to quibble over a couple of dollars.
https://sci-hub.se/10.1145/1458043.1458075
The part you missed is "always". The unsafe part is being able to do this from any function, instead of only from functions explicitly marked as being able to perform effects.
Zombie un-lives matter?
I'm aware of Nix and know this is achievable – in theory. To really work well and be convenient it would have to be used everywhere, though. https://xkcd.com/927/ comes to mind.
"One hour of light (referred to as the quantity of light shed by a 100 watt bulb in one hour) cost 3200 times as much in 1800 in England than it does today"

Oil lamps are not so bright, and you would need lots of them to reach the same brightness as a 100 watt bulb.

In other words, they still had light, but not so much and not so often.
I get that. (Another way to do it at run time is capabilities). What I don't like is calling this "unsafe". We know that use after free is never something anyone intended. We don't know that about opening a socket. If we take the attitude that any effect is unsafe then soon we will feel we have to control every one of them. If I have to control everything someone else does then I might as well do it myself (i.e. you eventually start to leak the implementation details and lose flexibility). Call it contracts or capabilities or something but not unsafe.
20 of those queries give me a VPS at Hetzner for a month.

Or 1 query = 3 gb / snapshot storage for a month.
Thanks. At least i'll never use PlatnetScale. A good service should have config for me to alert/prevent these kinds of money wasting cases.

Imagine how many wasted $$$ they earned based on common knowledge that they should prevent for customers instead.
I switched. Doom starts much faster and feels generally snappier and more minimal. I like the configuration system. I use this Spacemacs module for Doom[0] to retain (most of) the Spacemacs keybindings and some of the functionality.

[0] https://github.com/chenyanming/spacemacs_module_for_doom