skysight-inc/HackerNews huggingface dataset:
Classes and objects exist in all object oriented program languages. Perhaps stepping back from Python and trying some more generic material might help?
Ruby team approached parallelism & multicore in a cool way, they introduced the concept of the Actor model (like Erlang)!
Yep, I'm seeing smaller subs being bubbled up on my front page. Maybe people will start creating their own subs.

There is Saidit https://www.saidit.net/ but it's not really a viable alternative.
The article shows the scrollbars at 2x resolution.
As someone who lives across the world from San Francisco where electric cars are not currently feasible for year-round driving - how does an electric grid like California's accommodate such a large increase in electricity usage?

I guess there's enough people that are able to work remotely, but I feel like having thousands of electric cars get plugged in to charge at roughly the same time would be hard on the grid - especially when you're also looking at the same people likely turning on high-current loads like air conditioning at the same time too.

Does California ration electricity, or are they able to generate enough power to maintain the system? I'm genuinely curious - we're going to have to develop similar systems in other countries/states if we're going to push for all electric cars for the future.
LinkedIn’s policies are more likely (precisely?) rooted in the stigma around child labour and the unwillingness to be seen as a platform to recruit 13 year olds.
AI Leapfrogging: How AI Will Transform “Lagging” Industries
You're likely correct. But based off the story there was no report filed at the time of the discovery. So it wouldn't be retaliation, as there is nothing to retaliate for.
I mean, it’s risking losing. I’m not betting it will lost them either because right now they have nowhere to go. Facebook groups really could have created a space like reddit but they failed to do so.
"No screens in the bedroom" is a quick and dirty way to improve insomnia.
Note: These actually go under the filters tab of uBlock Origin, not the rules tab.
I assume as long as people keep going to reddit (for whatever reason, does not really matter), reddit can show ads and make money. Reddit will only start having problems once the visitor numbers go down. So far (?) that seems not the case.
I've been trying to fix first layer adhesion issues on my 3D printer and all of the relevant subreddits went private.

So there's more subs participating than just the popular ones.
. This behavior is not illegally anticompetitive.

No one said it was. Having a monopoly isn’t illegal in the US at all (leveraging it in certain ways is.)

The claim was that (1) NVidia has a monopoly, and (2) the effect of that monopoly has been consumer devices getting worse for this use in specific, well-defined ways. Legality of NVidia’s actions and fairness of how their market position arose are not particularly relevant.
I know you mentioned you don't like extensions, but for those that don't mind Dark Reader is really useful:

https://darkreader.org/

I have it setup to enable according to the system. Also, I use the whitelist mode, so I enable on specific websites instead of having it enabled for every one automatically.

It's available on mobile via Firefox for Android!
Also most people don’t really care about the API/3rd party app thing. It doesn’t impact them and it looks from the outside like a bunch of dorks with no lives getting worked up over nothing.

I’ve been on Reddit since the digg migration and I’ve never felt the need for an app, old.reddit.com and Adblock works perfectly fine on the phone. Better than Reddit’s mobile site.
Same. I am probably too old too, but it really doesn’t help me with anything…
I've recently got into old-school valve (tube) based electronics and it makes me wonder how much practical knowledge has been lost over the decades in that field or worse obscured by grifters trying to sell snake oil to audiophile types.
No. The primary benefit of "dark mode" is that it reduces eye strain for folks using their monitor at a brightness set too high for their environment. It can also just look cool, which is fine too.

Dark mode myths are summarized here: https://www.wired.co.uk/article/dark-mode-chrome-android-ios...
People are treating this as if this is the Reddit of 2011. If you really think this protest is going to stop the momentum of a Reddit IPO payout you are sorely mistaken.
Ayurvedic Wisdom for Constipation Relief and Gut Health; Safe and Natural: Homemade Laxatives for Constipation Relief Enema for Extreme Constipation: A Comprehensive Guide with Crucial Precautions
Poor man's dark mode: invert colours on your phone.
That would have been a much more sensible reason.

My head-canon is that the machines were actually just trying to keep the humans from self-destructing, but supercomputer is a fine answer if we still want the machines to be fundamentally antagonistic towards humanity.
Python: Best way to require a key value pair (with invalid key identifier)?
What is the best way to require a key value pair in python, where the key is an invalid identifier? See below for additional requirements.

The requirements for the ingestion of this dict payload are are:
1. there is a valid identifier 'a', with type int that is required
2. there is an invalid identifier '1req' with type string that is required
3. additional properties can be passed in with any string keys different from the above two and value list
4. all input types must be included so TypedDict will not work because it does not capture item 3
5. in the real life use case the payload can contain n invalidly named identifiers
6 in real life there can be other known keys like b: float that are optional and are not the same as item 3 additional properties. They are not the same because the value type is different, and this key is a known literal (like 'b') but item 3 keys are strings but their value is unknown

Options that I know are:
1. use a function and move the invalid arg value into a union in kwargs
`def some_fun(, a: int, *kwargs: typing.Union[list, str]):`
- pro can pass in unpacked dict
- con: no requirement on invalid required key name

2. use a function and use args to define the values for the invalidly named parameter
`def some_fun(a: int, args: str, *kwargs: list):`
- pro: required args not shown in kwargs
- con: arguments must be passed in specific order
- con: missing required arg key definition

3. Use a frozenset of tuples to require that the required args are passed first, then the optional args:
```
OptionalDictPair = typing.Tuple[typing_extensions.LiteralString, list]

RequiredDictPairs = typing.Union[
typing.Tuple[typing_extensions.Literal['a'], int],
typing.Tuple[typing_extensions.Literal['1req'], int]
]

_T_co = typing.TypeVar("_T_co", covariant=True)

class frozenset_with_length(frozenset[_T_co]):
def __new__(
cls,
required_1: RequiredDictPairs,
required_2: RequiredDictPairs,
args: OptionalDictPair) -> FrozensetInputType:
req_args = (required_1, required_2)
if not args:
return super().__new__(cls, req_args) # type: ignore
all_args = tuple(req_args)
all_args.extend(args)
return super().__new__(cls, all_args) # type: ignore

tuple_items = frozenset_with_length(*(
('a', 1),
('1req', 1),
('otherReq', None),
))
```
- pro: all required keys must be present, values checked too
- con: required parameters must come first, then optional ones

Which do people prefer?
Or are there other preferred options?
I am hoping if he wins the nomination, he will select a car salesman as his VP.
its not about me ... uncle sam needs YOU ;)
I am an engineer, but not a software engineer. I write python sometimes to help me do engineer-y things in my domain but I am absolutely not very fluent, just enough to get by. chatGPT often transforms a frustrating multi-hour stack overflow session into a 5 minute query.

The result is definitely not something you'd want to maintain and probably has built in inefficiencies and edge cases I don't know about but it did it's job, which was to do the thing I wanted it to do so I can go on with my work.
The other commenters to this are correct, `Vec::new()` doesn't actually allocate so the code in the book is fine. I had a brain fart.

If that function was taking a reference to an object that was fairly expensive to create a default value for then my conundrum would still exist.
It's because the Reddit users that are actually bothered by this are unmonetizable and everyone knows it. nobody is eager to jump into that sink hole and Reddit itself is happy to be free of it.

A Reddit alternative is something every developer on here thinks they can crank out in a weekend and surely countless of them are actually trying that right now. But the reality is that reddit is a mess and nobody in their right mind wants to try to run a site like that.
U.S.: I am a generous god
ML existed since the middle of the last century but has only really found its legs as of late, but I didn’t see a lot of people make fun of it for not being perfect within a decade.
Apple has supported the Payments Request API for five years

https://developer.mozilla.org/en-US/docs/Web/API/Payment_Req...

https://webkit.org/blog/8182/introducing-the-payment-request...
Well when 90% of your budget goes to marketing and covering up your ponzi scheme, doesn't leave a whole lot to engineering.
Doesnt AMD and Intel have agreement on x86?
> The Nuclear people won't vote for solar expansion, the solar people will deny windmills work, the windmill people will refuse to condone nuclear.

I have only ever seen the last of these outside of people selling something.
Are you missing the point that adverts can be inline with normal content and therefore can be included in an API result?
How many people's first reactions were "it might as well stay down because I just go to GPT-4 now instead"? /s

I wonder how much their traffic is down overall.
I live in an area with freezing weather. The water pipe to my house is just a PVC pipe buried below the frost line, i.e. in a trench about 3 or 4 feet deep. There's no concrete involved.
Jython doesn't have a good story for running native libraries like Numpy.
- llama.cpp already has OpenCL acceleration. It has had it for some time.

- AMD already has a CUDA translator: ROCM. It should work with llama.cpp CUDA, but in practice... shrug

- Copies the CUDA/OpenCL code make (that are unavoidable for discrete GPUs) are problematic for IGPs. Right now acceleration regresses performance on IGPs.

Llama.cpp would need tailor made IGP acceleration. And I'm not even sure what API has the most appropriate zero copy mechanism. Vulkan? OneAPI? Something inside ROCM?
I wondered about that myself - isn't a subreddit just ("just") a forum with 1) threaded comments like HN and 2) the ability to sort by upvotes? phpBB + a few addons might go a long way to replicating that, it just takes some effort.

There's also the other aspect of combining multiple forums into one cohesive website, which mostly isn't solvable by old school forum software. For that we need a federation scheme or even just old fashioned webrings to start with.
Legal question:

Let's suppose that an open-source CUDA API is in a legal gray zone that could only be clarified by a judge.

Could a company like AMD create a wholly owned subsisiary to make an attempt, whithout exposing the parent company to legal liability?
Having had to buck timber trusses to a second floor roof, I think cranes are a wonderful invention and we should have more of them.
(That would be the point of exceptions that make the correct thing the majority of times, and why I think they are superior, checked exceptions that it. They are completely analogous to Result types, but are properly supported by the language and can have as small or big scope as needed. I am really hopeful that they will have a resurrection with languages with effects)
Something like a SenseCap from Seeed Studio?

https://www.seeedstudio.com/SenseCAP-Indicator-D1S-p-5645.ht...
Using FIDO U2F or TPM2 to decrypt your disk
Part three in a series on using FIDO keys in linux now covers automatically decrypting a LUKs volume with systemd-cryptenroll.
Probably didn't see much modernization in the 20 years since it was opened. The trains in operation are two prototype iterations more advanced than the TR 06 from 1983, but differences to the TR 08 aren't bigger than differences between variations of the same high speed trains stools to different countries.
True, and as you get better at it, those hours will be fewer.

The weeks of debugging never go away, though.

(Or at least, not as long as you're using shared state, but that's really the only thing under consideration here.)
You can sign up for the Guard and absolutely get sent to an active warzone as that happened to my brother. And they will not advertise that fact a whole lot.
Premise 4 is trivially true for the same reason premise 3 is: choose K=1, then K>1 is false, and false implies anything.
Intel should pour money into this project until the code is hosted in scrooge's money bin
I can't agree with this enough. Willow[0] (disclaimer - I'm the creator) just wouldn't be possible without the robust Espressif ecosystem, libraries, code samples, docs, etc. Let alone all on a finished product (ESP BOX, $50) available worldwide through their distribution channels! We have a lot of background and experience in this and related fields but the fact remains we went from concept to initial release in less than six weeks (with two part time devs - if you include me, which you shouldn't haha).

[0] - https://github.com/toverainc/willow/
A basement is nice to have if you live in an area with tornados.
eh to be fair it's a bit more than a couple of lines, but I agree, with a site like HN it shouldn't be too bad.
As far as I'm aware Grusch makes no claims to having any sort of first hand account or evidence. Though it does seem to be acting like catnip for the conspiratorially minded in congress.
Just like with many other RPi "killers" from China - you don't. They all suffer from the same issue with software :(
Being limited in time, effort, or ability isn't stupid. I've got my own mental hardware limitations with reading math and some functional programming languages. Bad enough I don't put in the effort to learn certain things.

Now, writing an article conflating limitations or lack of desire with intelligence shows... poor self-awareness.

But yeah, I prefer not to say stupid when I can be more specific. :)
When do replacement subreddits start forming? /r/picsnew or something.
> have better gameplay

That isn't exactly what they said.
China Plans New Spending Drive, Other Stimulus to Revive Flagging Economy
Anything that requires adding even a single line of JS to HN is gonna be a hard no from me.
Obvious internal memos / training often happen more for the purpose of excuse removal than for actually informing anyone.
I said it before, and I’ll say it again. This is a huge opportunity for Facebook. They sort of tried to do Reddit in the past and ended up with shitty Facebook groups.

If I were them, I would rush to add some reddit features to Facebook group (reddit-like threads, upvotes/downvotes) or try to launch something new that’s more like reddit on top of the facebook/insta social graph.

Just call it “Groups”
It was supposed to be storage and processing but the directors thought that viewers wouldn't understand that a human brain could store (what was thought to be at the time) a few terabytes of data, so they dumbed the concept down.

It would have made so much more sense that Neo had the ability to manipulate the Matrix because his brain had admin access to it rather than "he's just some super who won the cybergenetic lottery".
This doesn't threaten Stripe at all. They already process Apple Pay payments.
China launches record-setting 41 satellites on single rocket
Global Climate Tech Unicorns
> I’m an embedded dev, so websites and web tech are a black box to me

You should start tinkering with embedded webservers then (civetweb, etc)! Even embedded devs should learn web tech because often browsers are the easiest way to interface with router/modem settings, IoT settings, etc.

In this case "##" is uBlock filter syntax. Basically "news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg))" means "if the host matches news.ycombinator.com inject the following CSS"

Here's the docs if you want to rtfm: https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filters

In this case I believe we are dealing with "cosmetic filters": https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-f...
This is very witty and all, but what does it mean?
If it can connect to the internet, it will need security updates.
Everyone says that, but no one puts themselves in the shoes of the person discovering the body.

I'd probably be OK if I did this. But let's pretend I'm a two-time convicted felon. I've done my time and gotten out. I still have to report into my parole officer. But I've found a job that is steady work and pays well enough that I'm living comfortably. As long as I don't get involved in something criminal, I'll be OK.

Do you really want to call the police and say "So yeah, about that body hidden in a crawl space..."
CUDA support to the Yagna VM runtime on Golem
I don't understand how this "open sources itself". That very phrase makes no sense to me.

What do they mean?
I think there should be some sort of election for mods. Voted on by the community. Maybe have a minimum level of activity in a sub required to cast a vote.

I also don't think mods should be able to turn /r subs private. The private subs should be on a different path like /p. If you turn a /r sub private then it converts to /p and the /r subname becomes available again.

I suspect that some reform around private subs will be instituted in the near-ish future since it is the primary tool used by mods in the boycott.
The BoC is relatively technocratic and they won't lower interests purely to help homeowners. However, given how much leverage Canadians carry, a shock to the housing sector would probably bring about a recession, which would force the bank to cut rates... at which point you do have to wonder whether house prices would just head back up to the stratosphere in short order.
https://www.archaeology.org/news
which kind of proves the point that crypto wasn't about the everyday person making daily transactions. it was a pipe dream of a way to handle large amounts of money while minimizing the fees/taxes associated with fiat monies.

if crypto was about the everyday person, it would have been made useful
Sadly, it's now a matter of time before Twitter itself goes down. (Due to running out of money, staff getting fired, mismanagement, etc.)
It's not just ads, it's the "high street" where everything went bankrupt, except gambling and vape shops.
Wow, #499. Do they release 52 issues a year? It'll be 10 years soon.
Wow! That really does look like it's in good shape. I understand it's because bronze doesn't oxidize as readily but it's not what I picture when someone says 3000 year old sword.
> It had an always-on LED when plugged in even if you switched the night light off. Instant e-waste.)

the point is so that you can find the light in the dark. it may be poorly made or unecessary but I can at least in theory understand the logic.
French existing nuclear paid for completely opaquely to support the military nuclear program.

Now input Flamanville 3 costs for your buildout.

https://en.wikipedia.org/wiki/Flamanville_Nuclear_Power_Plan...
Which one do you recommend?

Those get quite expensive.
they are very different, esp32 is an advanced microcontroller (with wifi/bt) and is comparable to an arduino on steroids, whereas this board uses cortex a35 and is more comparable to a raspberry

esp32 has 520 Kb of ram, while this board has 512 Mb!
If you still stock them for your own service centers, you sell them to customers too. Provide to your customers the same resources you provide to your internal service staff.

If you don't stock them anymore, sure, you don't stock them anymore. (I would also like to see requirements for longer product support cycles, which would go along with this but is somewhat orthogonal to the part availability concern.)
They do a daily good job off offsetting most people’s charging to midnight-6am by setting high rates per KWH during the day then dropping them to something reasonable during the night time to encourage charging when the grid is basically at it highest capacity
The motocycle maintenance metaphor was very popular at Facebook.

Talking loudly about your accomplishment too, on the dedicated Workspace/Facebook @ Work—too much to the taste of several of my colleagues.

Someone once connected the two. They did so using a metaphor that compared the sound at the end of the digestive tube with the exhaust. I won’t repeat it here, but thought it was clever.
I would add on - enshittification driven by money, as coined by Cory Doctorow https://pluralistic.net/2023/01/21/potemkin-ai/#hey-guys
> What is surprising is that it is happening at Google, where people are supposed to smarter than your average bear ( to the point where they had to issue an internal memo ).

Only takes a couple to be a big risk. Being smart and having common sense aren't the same thing; remember, Google's where an engineer fell in love with a chatbot and decided it was sentient. (https://www.washingtonpost.com/technology/2022/06/11/google-...)
Well, I have never been prescribed opioids in Mexico, so I can't speak specifically to that. I can say that the way pharmacies are setup in Mexico would not lend itself well to such a system. The title makes it sound like all prescription drugs at Mexican pharmacies carry a risk of having fentanyl in them, which I find really hard to believe.

There are several nationwide chains. One of which is called Farmacia Del Ahorro. A conspiracy on that scale to give out fake pills would be hard to pull off, as they source these medications on a very large scale.

The only places I could see something like this maybe working are places like Cancun, where it's so tourism focused many business straight up accept USD as currency. And the tourists don't realize they aren't going to a real pharmacy but one setup specifically to scam them.

Fentanyl also has a tendency to kill people. No legitimate pharmacy would risk that to improve their profit margins. One death would start a panic and kill their business.
Amy Wu, Former Head of FTX Ventures, Joins Menlo Ventures
It’s not that the handle is going to rot, it’s that there’s zero shock absorption. The fact that it doesn’t have a replaceable handle probably means that it’s for ceremonial purposes, not fighting. Hitting another sword with it would be exhausting and painful.
I think this is kinda needed for air tightness, but shouldn't stop anyone from running empty conduits for future use...