skysight-inc/HackerNews huggingface dataset:
Oh, so another interview question where a Eureka[1] moment is required. And, don't tell me: You got it right. Next, you are write about it how it is such a "genius" interview question to select the 10x engineer. This question looks ridiculously hard, considering the setup.

> Type 2 looks at the problem and says, “Ah! I know just how to do this! Multiplication is just like addition, except wherever addition does +, I should do *.” So they copy-and-paste, change all the +s to *s, and they’re done in 90 minutes. Candidates in this group stand a really good chance of being hired.

And just before that, he wrote:

> By the way, MemSQL-in-2013 was doing deeply arcane and high-performance C++11, so the fact that this challenge incidentally requires fluency in C was a plus, not a minus, for their purposes.

Sheesh.

[1] https://en.wikipedia.org/wiki/Eureka_(word)
Decathlon established the Backend For Frontend (BFF) architectural pattern as a company-wide recommendation and provided guidelines for its adoption among engineering teams. The four-part series introduces the pattern and explores its benefits and potential pitfalls. The company also shares alternatives to using the BFF pattern and reviews architectural considerations.
> Then it gets all silky with frosted glass, desaturated colours, and muted gradients, which just does not have the Aqua feel to me

The JonnyIvification of Apple interfaces starting with Mavericks & iOS7. Although it has grown on us, the flat designs were very jarring back then. Our brains were so used to pill shaped buttons & then everything felt flat
Alot of the CSS & JavaScript is usually broken with ctrl+s.

A great option used to be the mhtml format chrome. (It had to be enabled in chrome flags)

But mhtml seemed to be removed from chrome since recently.
> there is an engineering case for a small percentage ( <10% ) of nuclear generation in parts of the Australian grid.

Is there though?

The global percentage required is about that, and is mostly existing nuclear plants.

And every year the projections for renewables tick upwards, leaving less room for anything else. So by the time any new nuclear actually arrives it'll be even less needed.

And that's global, where industries already exist, working plants already exist, and where some small percentage of people live in near polar regions.

Australia has none of that.
When I was younger, a senior told me that If all you have is a hammer to solve the problem, all problems will start to look like a nail.
That sounds like a fine that was the maximum under the pre-GDPR regime, rather than the GDPR-era penalty regime. If the offence took place before the new rules were in force, the old penalties apply, even if the case takes some time to be resolved.
In Kotlin, only the outer-most wrapping 'suspend' function swap needs to be wrapped; and when you're writing web servers and such, that's handled in the server middleware and so all your code can be `suspend fun blahblah()`
For my personal threat model, most 2FA flows decrease my security. Historically, the loss of my phone is a more likelier event than a compromise of my credentials and the damage to me and the businesses holding my accounts from loss of my credentials is much less than the denial of service from loss of access. This flips with some access from my employer and my bank, but I don't associate any of my personal devices with my employer's account in any way.

It is a shame how the industry seems to think that security is some single dimension along which things are more or less secure. Denial of service for personal accounts is often times more damning and common than account compromise. 2FA makes me less secure in some cases.
Seattle City Light up here (a public utility) is quietly doing a perfectly fine job providing electricity to residential customers at around 13c/kWh.
In around 1997 I installed I think Red Hat 4.x because I'd seen screenshots of the Enlightenment window manager and wanted that beauty on my desktop.

Now all I want is the Windows 98 look and feel back, when icons and user controls were clear and legible and consistent and you could drag a window from anywhere on a title bar.
Although those photos were more dickbutt than catgirl.
No they aren't, and that's exactly my point.

Most functions aren't doing any syscall at all, and as such they aren't either blocking or non-blocking.

Now because of path dependency and because we've been using blocking functions like regular functions, we're accustomed to think that blocking is “normal”, but that's actually a source of bugs as I mentioned before. In reality, async functions are more “normal” than regular functions: they don't do anything fancy, they just return a value when you call them, and what they return is a future/promise. In fact you don't even need to use any async anotation for a function to be async in Rust, this is an async function:

fn toto() -> impl Future<Output = String>> {
unimplemented!();
}

The async keyword exists simply so that the compiler knows it has to desugar the await inside the function into a state machine. But since Rust has async blocks it doesn't even need async on functions at all, the information you need comes from the type of the return value, that is a future.

Blocking functions, on the contrary, are utterly bizarre. In fact, you cannot make one yourself, you must either call another blocking function[1] or do a system call on your own using inline assembly. Blocking functions are the anomaly, but many people miss that because they've lived with them long enough to accept them as normal.

[1] because blockingness is contagious, unlike asynchronousness which must be propagated manually, yes ironically people criticizing async/await get this one backward too
Ah sorry that is probably zsh specific, it makes sure to not glob expand * etc
I will, thanks. I was planning to read book 4 as well, since people are saying that's the best one, can I stop there? Or will I have too many unanswered questions?
I'm actually more of a fan of the actor model than the single-threaded event-loop. Individual blobs of guaranteed synchronicity with message passing.
Git does source code management.

The two primary source code management activities developers use are versioning of source code (tracking changes which happened over time) and the other being synchronisation of code with other developers.

One of Git’s differentiating strengths is it being decentralised, allowing you to do many operations in isolation locally without a central server being involved. You can then synchronise your local repository with an arbitrary number of other copies of it which may be remote, but you may need to rebase or merge in order to integrate your changes with those of other developers.

Git is more like a local database (it even allows multiple local checkouts against a single common “database”) and it only occasionally “deletes” old “garbage”. Anything you do locally in Git is atomic and can always be rolled back (provided garbage collection hasn’t yet been performed).

Although I’m comfortable enough with using the reflog to rollback changes (I’m also skilled enough in git I haven’t needed to in many years), it’s not very user friendly, it’s essentially like sifting through trash, you’ll eventually be able to find what you lost (provided it wasn’t lost too long ago), but you may have to dig around a bit. Hence my suggestion of tagging first, makes it easy to find it again if needed.

I have very limited Linux experience and have no recommendations on your other question.
Last time I tried that it saved a static version of the current DOM, instead of the page source. I'm assuming that the reasoning behind that is that most people want to save a snapshot of what they are currently seeing, and that this is the easiest way to have somewhat reliable results for that.
No one from the EU has ever visited the USA and driven a GM car which then had the data harvested?
If randomness is evenly distributed in a random walk, it tends to stay close to the starting point.

Edit:
Plot of steps
Timestamp: 34:49

https://ocw.mit.edu/courses/6-0002-introduction-to-computati...
I think the point being made was that if the US had a similar version of GPDR, then GM’s activity would have fallen foul of the act.
One of the lines of thinking which led to 1984: https://www.orwellfoundation.com/the-orwell-foundation/orwel...

> oil and politics are ... interlinked

Due to Stalingrad blocking the way to the Caucasus (and eventually Iraq?), Hitler discovered the iron law of 20th century warfare: "No Oil, No Blitz" (无油无闪?)

(see also https://en.wikipedia.org/wiki/Case_Blue )

During the heyday of the British Empire, the Royal Navy ruled the waves with renewable energy, and needed to put into port mostly for things like food and fresh water.

Since Suez, the US Navy has waived the rules (exception to COLREGS: "if it's gray, stay away") but a majority of its fleet would degenerate to a "fleet in being" without oil.

This is what the world looks like to the USN; can you spot Hormuz? The Louisiana Offshore Oil Port? https://www.seattleaquarium.org/wp-content/uploads/2023/07/S...
My experience with EVGA PSUs: unstable systems regardless of the PSU being mid-range 800W or top tier 2kW one. Incompatibility with 6xxx RedDevils (the cards just don't power up, voltages out of the spec). Coil wine.

Never had an issue with seasonics and superflowers.
How much of the night sky did they take up exactly?
Should include some screenshots of the Oracle to make it complete
> Ah. I think I know the answer. They can only serve internet as long as the satellite can see the client and a ground station at the same time.

Aren't they making a big deal about some sort of laser communications mesh networking across the entire satellite constellation, though?
If you yearn to see those icons with crisp zoomed pixels without blurry aliasing, try this makeshift viewer of the source sprite image (https://win98icons.alexmeub.com/css_sprites.png):

data:text/html;verbatim,<body>
<script>document.body.style.setProperty('--dpr',devicePixelRatio);</script>
<img src="https://win98icons.alexmeub.com/css_sprites.png"
style="image-rendering:crisp-edges;
background-color:grey;
width:calc(1/var(--dpr)*2168px*5);">

It forces it to map to physical device display pixels and use nearest-neighbour scaling; the last number there sets it to display each source pixel as 5×5 square in your browser's window.
I think if the company is posing an interview question that requires total fluency over a legacy version of C++, they're probably not looking for graduates.
Right, sorry, I wandered off into the woods while writing that. They should allocate 30 minutes. Even if you don’t finish, by 30 minutes there should be a clear indication of your approach.
Bringing certainly would be. Selling, however...
You want your power company to be run like Google? Your neighborhood is getting their electricity shut off because there aren't enough people using enough electricity in it to be worth it to the corporation.
For what - that different liquids have different freezing points? Not sure anyone is doubting that.
I didn't know about Lezer. I think I probably would have used it if I'd known - or at least tried it before Tree-sitter, as WASM obviously brings in extra complexity.

Having used Lezer and CodeMirror a bit on a different project, they both seem like they are probably high quality and well thought out projects from a speed and reliability perspective, but I found the architecture and docs to be confusing and unergonomic.

The main issue I have with the docs/architecture (for CM at least) is that they use a concept called "facets" without really explaining what it means, and to be honest it felt like a level of abstraction/indirection that my brain couldn't handle.

The other issue with the docs is that they don't seem contextualised enough, somehow. They would list the functions/methods of an object but not really explain how it fit into the system as a whole. Maybe this is to do with not understanding facets, or CM's extension architecture, enough, or something, but it was definitely a recurring theme of my experience. I also found the CM API slightly confusing in that (almost) everything you do is via a function that takes some state object as input, as opposed to via calling methods on that object, but that's more of a style issue once you realise that you have to `import {doSomething} from "codemirror"` and `doSomething(state)` as opposed to `state.doSomething()`.
My thoughts exactly. This would be a great application for it.

That said, they could also implement a bot for YouTube that allows a !ring command for when they're out of stream seats.
Better yet, now we have to worry about https://deceptio.ai exploiting the laziest and least ethical among the ML crowd to launder their fake knowledge into a product LEOs can wave around in court.
Power output is for sure important, but

1. Being able to take your power source with you, so it also works behind nearest asteroid is even more important

2. Having your own source, so not to be dependent on one megastructure, because it is a single point of failure and single point of control of civilization.
> When timeout is implemented in async/await variant of the solution, using the `driver.race(timeout).await`, what happens to the client socket after the `race` signals the timeout error?

Any internal race() values will be `Drop`ed and driver itself will remain (although rust will complain you are not handling the Result if you type it 'as is'), if a new socket was created local to the future it will be cleaned up.

The niceness of futures (in Rust) is that all the behavior around it can be defined, while "all functions are blocking." as you state in a sibling comment, Rust allows you to specify when to defer execution to the next task in the task queue, meaning it will poll tasks arbitrarily quickly with an explicitly held state (the Future struct). This makes it both very fast (compared to threads which need to sleep() in order to defer) and easy to reason about.

Java's Thread.interrupt is also just a sleep loop, which is fine for most applications to be fair. Rust is a system language, you can't have that in embedded systems, and it's not desirable for kernels or low-latency applications.
They do have a statistics page: https://www.enforcementtracker.com/?insights

This does not entirely answer your question, but it has some indication:

1. They started fining around 2019.
2. Large fines, over EUR 1mil, started around 2021.

From this I would not say that the fines get bigger, they just start to fine when they have been infringing for long enough.
I'm definitely not fluent in C/C++ and I think I might have done ok with this question, even if I probably wouldn't be a right fit for this job. I guess I wouldn't have gotten to this point in the interview process so it's ok.
Windows 2k was the pinnacle of Windows. Basically same OS as XP, but with a spruced up Win 98 design.
I don't exactly believe in it. I think one can only be bored by external forces, or some irrationality.
Screenshot the archive.org render?
Doku: Open-source LLM observability platform
An LLM operations tool designed to provide developers with complete capabilities for monitoring, analysing, and optimising LLM applications.
I've never seen a bidet in France
Right so – that wasn't clear to me. You'd be surprised how much some people will over-engineer some interview questions like that (even when you very explicitly tell them to use the simplest thing possible).

The memcached protocol really is as simple as "CMD [params]", all of which is parsed for you, and this API is just "MULT num1 num2". There are no tricky bits or hidden complexities here as far as I can see.
That disappearing scrollbar is weirdly out of place.
That was my 1st thought. Traditionally the mul CPU instruction uses two registers for the result, as the expectation is that it overflows. Add/sub needs only a single overflow/signed flag.

OTOH, it's 64bit and only unsigned, so yeah 64 bit gotta be enough for everyone (unlike 640KB mem)?
Bingo:

https://www.animations.physics.unsw.edu.au/jw/superheating.h....
The Claw: An Avian-Inspired, Large Scale, Hybrid Rigid-Continuum Gripper
Yes, it's an interesting discussion, but we have branched into many tangled arguments and discussing multiple things at once gets hard.

If you allow me to take a step back to your OP I was first responding to, in order to try to clarify the basis of my arguments.

There you spoke of theological "proofs" and made sweeping statement how "all turned out to be logical fallacies" / "debunked".

I asked questions about general foundations of reasoning. The aim was to discuss what is a "proof" in philosophy? To make it easier to see how hard this fundamental question really is, I first moved to a more well defined domain like mathematics. Our discussion then moved into a different direction, but the original point I was trying to get to was how shaky are foundations of definitions of things like "proof" and "logical fallacy" in philosophy. With enough freedom in interpretation, any philosophical proof could probably be interpreted in a way that it could be treated as a logical fallacy.

But yeah, while it's fun, this kind of discussions can get really long. And HN is not really an appropriate place for this. There are some things that I think are simple misunderstandings, but I'm not sure how I can clarify/communicate them succinctly enough to fit them here without turning this into a way too long post. Anyway, it's been a pleasure chatting with you.
This would be, speaking as someone who has dealt with his share of state machines, quite confusing. The uncomfortable thing about regular expression implementation as automata is either (a) non-determinism (i.e. "being in many states at once" a la Glushkov or Thompson NFAs, not "non-determinism meaning something different might happen on any given execution") or (b) state explosion (in a DFA, to represent non-determinism).

This has a huge impact on trying to hook actions, call-backs, etc (your "arbitrary procedure") to NFA states as you're frequently making many overlapping entries to these states, many of which go nowhere. Trying to figure out which entries correspond to which other entries isn't easy.

There are very stylized automata that are used in parsing that do interesting things beyond the finite automata space (like pushing things onto a stack), but they don't correspond to regex per se - instead they are generated from a grammar.
Apex Legends players worried about RCE flaw after ALGS hacks
Thankfully, California's main problems in the southern California region is the need for electricity to run air conditioners during the day, so that's not the worst problem. Nuclear would be better but there are other problems with it that make it unviable.
Yes, I mentioned in a sibling answer - the mul overflows much easier and detecting is much harder, hence it uses two registers in the CPU for the result. Detecting sub/add overflow is a single CPU flag.
You're right, I'm not sure why I said that. Still, I've definitely felt more "on my own" with dentistry as I've not always been able to register with an NHS dentist and in general they seem like they can do what they want, whereas we have GP surgeries that are there for the sole purpose of treating patients for free, and they don't unregister you if you miss checkups or whatever.
So 100Mbps for ~16k people. Barely useful. I can only ever see it being useful for real rural people, who don't get any 4G signal, but these people might also not want to pay the crazy subscription fees or $500+ for the equipment.

I don't see any reason why anyone living in or <100km near a city would ever want this. 5G mobile can already provide 500Mbps and fiber is just unbeatable. At least the night sky was ruined for a billionaire's useless constellation.
> But with other tasks, the jump in ability wasn’t smooth. The performance remained near zero for a while, then performance jumped.

Second paragraph completely contradicts the title given.
It's a SpaceX World (Everyone Else Is Playing Catch-Up)
> I was very junior, but I told my boss if we shouldn't maybe use base images that already contained everything, instead of a default blank ubuntu for the servers.

Honestly, nowadays Docker and other OCI containers do this pretty well. Spinning up new instances and even provisioning nodes has become very easy, in addition to load balancing features those provide.

12 factor apps are also an amazingly concise way to develop and manage multiple services without going into YAML hell: https://12factor.net/

The problem is that the management layers around containers are typically overcomplicated to the point of comedy.

Kubernetes might make sense with something like K0s or K3s might make some sense but is still inherently a full time position to run on prem (with updates and observability) and will cause headaches. Hashicorp Nomad is better, but is meant for scales greater than those of most companies. Docker Swarm hits the spot (especially with something like Portainer), but nobody seems to actually care because it's not a trendy piece of tech.

The day Docker Swarm dies is the day I go back to writing PHP in a shared hosting environment in protest.
Positively surprised to see that fines are being enforced for non-compliers, with some of the fines being significant. I still encounter sites that are not complying with GDPR, but maybe things will improve after all.
I recently made something similar to make use of the unused WWAN M.2 slot in my laptop:

https://i.imgur.com/xGXl4Xt.jpeg

Crack the logitech dongle out of the USB casing and solder on the converter PCB.
Insisting on a single linked lists as the fundamental data structure is not necessary, that much I agree, but I would say, if you need del x[5], then in some cases you should not be using a list, but potentially a persistent data structure/PFD. This is an area that Lisps should invest in: Batteries included for good functional data structures.
Exactly, I absolutely love this feature. And many times the conversation is quite natural and fluid (with good internet connection). I think I'll build something like that myself (:
Part of the issue is how we are conditioned by the ruling class to use benign words like "interesting" when we know more accurate words would convey passion, meaning, and actual anger towards those who want our data.
Did you do the CliftonStrengths 34 thing? I'm thinking about buying it as I've been in sort of a rut lately.
Just tried changing my python code to use AA instead of the 2 threads I use and it just complicated the code more. I had to create a thread anyway to deal with the tkinter event loop issue. And then I still have to check inside the functions if the task is still active. But the worst part is converting all the stack of functions to to be async/await.
Not sure how this got upvoted. Title is a click-bait and makes you believe this is about London the place whereas it’s mostly about this guy side projects.
That’s an astute observation.
As far as I'm aware, you can't do this on modern HDDs because of the unique mapping/calibration data stored on a chip on the PCB.
And spread across their 2.6 million customers, it doesn't seem like a lot.
A review of what the GDPR is and what an expected fine is according to the law itself, this is exactly what you would expect to see. Its maximum penalty is related to the company's annual, worldwide revenue.

From https://gdpr.eu/fines/:

> The more serious infringements go against the very principles of the right to privacy and the right to be forgotten that are at the heart of the GDPR. These types of infringements could result in a fine of up to €20 million, or 4% of the firm’s worldwide annual revenue from the preceding financial year, whichever amount is higher.
(emphasis theirs, well, bold not italics, but yeah.)
You could ask a less leading question, like “would you like it if you had the ability to rent infrastructure to get access to a much better internet connection that your local ISPs, and even your own government have no chance of building themselves ?”

I’m British, so this question definitely applies to me, by the way.