skysight-inc/HackerNews huggingface dataset:
> I think it makes a good case that async/await is infectious and awkward, and fibers (at least as implemented in Ruby) is quite simply a better paradigm.

As someone who has done fibers development in Ruby, I disagree.

CRuby has the disadvantage of a global interpreter lock. This means that parallelism can only be achieved via multiple processes. This is not the case in Rust, where have access to do true parallelism in a single process.

Second, this talk is not arguing for use of fibers as much as it is arguing as using fibers to rig up a bespoke green threads-like system for a specific web application server, and advocating for ruby runtime features to make the code burden on them of doing this lighter.

Ruby has a global interpreter lock, so even though it uses native threads only one of them can be executing ruby code at a time. Fibers have native stacks, so they have all the resource requirements of a thread sans context switching - but the limitations from the GIL actually mean you aren't _saving_ context switching by structuring your code to use fibers in typical (non "hello world" web server) usage.
Continuing..
you buy/own the console, you pay for electricity/rent/mortgage, you pay for repairs, for the new/upgraded equipment, etc. So the cost is heavily externalised to the user, as a trade-off to comfort (hey you get to play from a couch/comfy chair instead of standing up).

So it depends on the usage to see if you spend less, more or break even on the costs.

I don't include cheating (i.e. after finishing D2 a few times, I started using SaveGameEditors so I can play with 'this' or 'that' set) as this has immense value that could not easily be made in an arcade.
Has there ever been a legal precedent of a company violating GDPR like this and had to pay substantial enough penalty in accordance to GDPR?
You'd still need a filter. An attention span and an appetite for institutional processes.
> So the OP is overall wrong: async/await is not an example of someone taking something that only makes sense in one language and using it another language for familiarity.

I don't really understand the counter argument here.

My reading of the argument[1] is that "Popularity amongst developers forced Rust devs hands in adding async". If this is the argument, then a counter argument of "It never (or only) made sense in the popular language (either)" is a non-sequitor.

IOW, if it wasn't added due to technical reasons (which is the original argument, IIRC), then explaining technical reasons for/against isn't a counter argument.

[1] i.e. Maybe I am reading it wrong?
OTP Auth. In use for years. Backups, iCloud Sync, Widgets, Folders. Perfekt.
It clearly wasn’t for for purpose though, and the customer was lead to believe it was. Where to now?
This is the same company that knew of a faulty ignition key system and chose to sit on it because it was too expensive to recall right?

Seems like their way of business.
>GPUs are immensely complex machines. It is really hard to get them to work, let alone work with high performance.

This is like saying combustion engines are immensely complex machines when your car suddenly loses power on the highway for no apparent reason and then when you restart the engine it works for another five minutes again. When you drive on normal roads it works flawlessly. It must be the engine, right? After all, it is the most complicated aspect!

Except in reality it is far more likely for it to be a problem in the electronics driving the fuel pump or spark plug.

AMD most likely has some sort of buffer overflow or deadlock in their GPU drivers that is causing difficult to diagnose problems. It is very unlikely that the silicon itself is broken when it works fine for playing video games and it also works fine when your GPU is one of the few officially supported by ROCm.
About twenty years ago, the admin of the local file sharing FTP bragged about getting a new 5TB server and invited me to take a look. Now my SFF PC has the same amount of storage like it's nothing. I wonder if in another 20 years we are going to see storage grow as much.
Can you make it atomic this way?
Wait Calculation
hm, maybe region-restricted? I get a "not found"
They watch and share their pirated video.

Sort of sarcasm, sort of not.
Simplified Perturbations Models
I thought the pinout on power-supplies was standardized. Except if you're Dell of course; Dell used to make motherboards that only worked with Dell power supplies, and vice-versa. I don't know if that's changed.
Paul Ramsey: Inside PostGIS: Calculating Distance
Properly Running Kubernetes Jobs with Sidecars in 2024 (K8s 1.28)
> Instead of focusing on language features that are actually useful, the Rust effort has been sidetracked by this mess.

I don't know if you are correct or not (I am not very familiar with Rust) but empirically 9/10 Rust discussions I see nowadays on HN/reddit do revolve around async. It kinda sucks for me because I don't care about async at all, and I am interested in reading stuff about Rust.
Or the room with the drives burns down... or thunder strikes... or...

Unless you are upstream-constrained or a data hoarder, just make offsite incremental backups. Preferably some redundant block storage.
If that thing is in production I wouldn't just change the code, submit a PR and move on with my day. For interviewing purposes it could work, but in the real world it's a reckless attitude.
You are not reading it wrong, and your statements are accurate.

My broader point is that the possibility of there being a "technically better" construct was simply not in scope for Rust. In order for Rust to capture Javascript programmers, async/await was the only construct that could possibly be considered.

And, to be fair, it worked. Rust's growth has been almost completely on the back of network services programming.
Vanilla CSS dark/light mode
I made this portfolio page when I was pursuing front-end development as a career. Ended up going a completely different direction but wanted to share it here in case someone might get some use out of it.
https://github.com/Xudong-Huang/may

The project has some serious restrictions and unsound footguns (e.g. around TLS), but otherwise it's usable enough. There are also a number of C/C++ libraries, but I can not comment on those.
I was hoping for more about the geographical move. I'm sure I'm not alone in wondering why someone would move TO London right now, given all the issues people are currently facing in the UK.
It's not the entire movie. It's about 20 minutes long.
I used it to teach myself Japanese. I would replace words in an English text with the Japanese translations, including kanji, furigana and English. I was working on a way to develop a curriculum of vocabulary. I prepared a couple of books this way and read them, then abandoned the approach. But it was pretty fun.
AI breakthrough: Decoding behavioral states from functional brain scan images
the lack of font and icon smoothing in old windows was always off-putting

apple and linux fonts/icons always looked much nicer to me
So-called “luxury” housing is usually just newly built housing. After all, if you’re a developer, why would you characterize your new apartments as something else when you could call them “luxury”? In 20-30 years most “luxury” units wont seem so luxurious anymore.

It’s also a convenient bogeyman for NIMBYs, since they can use it to paint all market-rate housing as some kind of elitist plot.
Thank you all for your responses. I read all of them and spent time thinking about what you said.

To answer some of your questions: I live in Germany. Although I know that my income is quite high in comparison to many others (even better developers) and I’m very grateful to the people on my clients side who make this possible, I’m looking for a way to improve my family’s life in other aspects. Me and especially my wife don’t feel “to be at home” here where we live. She’s not very accepted culturally. Tbh, I would prefer New Zealand, Canada or even the US because of the welcoming culture and nature but I don’t know how to get a working permit (visa) as a regular software engineer.
GNU Emacs 29.3 released to fix security issues
Biggest fine from last year was apparently $1.2 billion.
I think the wisdom is there more than you think (look around, every other person is concerned about environment especially younger ones). The problem is collective power to do anything about it. The few on top have disproportionate power and don’t care at all (because it wont affect them).
Microsoft reuses its OpenAI playbook with Inflection takeover
Under German Law you would likely have a claim for damages under § 823 BGB as it is a "Weiterfresserschaden" literally "damage that eats further". In the float switch case a faulty float switch caused a building to burn down and the BGH awarded damages to the building owner.
https://www-lecturio-de.translate.goog/mkt/jura-magazin/der-...
The current state of technology seems frightening indeed. This 2FA is a miracle. It is free and independent of the big tech companies. I'd put it on the same level of importance as Mozilla products. In the future, we will see more proof-of-personality applications for security reasons. But recovery codes won't be going out of fashion any time soon. Unless, of course, AI-enabled developers are gifted with long-term memory in the next few years.
GDPR Enforcement Tracker – list of GDPR fines
yes --> GDPR enforcement tracker, see https://news.ycombinator.com/item?id=39813801
You request your information from LexisNexis at https://consumer.risk.lexisnexis.com/ to find out.
Probably because it’s not a particularly common real world need. Have you ever found yourself grasping for a multiply command in a cache?
Yeah I'm not doing a 3h interview without being paid, and nobody else should.

This is the same as take home assignments which plague the industry.
This icon seems oddly out of place among all the others, and I don't recall it from the era.. Does anyone know where it was used? https://win98icons.alexmeub.com/icons/png/computer_2_cool-3....
This is the hardware equivalent of changing the API for no good reason.
That's because 99% of people you hire are hired not for their ability to provide crazy insights, but to write bug-free and performant code with reasonable speed. "Here's the spec, here's the repo, can you get it done by the next release cut?"
Or maybe candidates should submit their answer as a PR to memcached. The interviewer is deriving some value from an open source project, they should contribute to it.
Maybe after the breakfast break?
Just want to weigh in and say that scoop is fantastic.

The genius insight behind Scoop is that Windows doesn't need a dependency manager because pretty much all programs ship with their dependencies included. So all you need is a way to download & run installers automatically, from the command line, into a Scoop-controlled directory.
> I recall that the thing that made me stick with Rust is the Iterator trait. It blew my mind that you could make something an Iterator, apply a handful of different combinators, then pass the resulting Iterator into any function that took an Iterator.

What languages did the author use before? Is this any different from the interface pattern seen in many other languages?
London is an attractive world city. Population grows about 1% per year.
It would also be a straightforward claim in the UK.

https://www.citizensadvice.org.uk/consumer/somethings-gone-w...
Depends on your legislation. In EU EVGA would be responsible for direct damage, i.e. the disks themselves. Indirect damage, such as loss of data, is not covered.
There are certainly original thoughts, at least per a sliding window.
A three-hour test is above what I'd consider acceptable for most potential employers. I can talk with you a bit, but if you want me to come in and do work for half a day, I'm going to refuse, I've got actual paid work to do.
> I’ve said in comments here on HN before that one of the issues with nuclear is that it requires a powerful state to protect it, whereas solar does not. This has long term implications for the society that relies on one versus the other.

Great minds think alike? ;)

https://news.ycombinator.com/item?id=19931314

I agree that this seems to be an under-discussed aspect of energy policy. Which is odd, because it seems widely agreed that oil and politics are very, very interlinked.
*ramen
Do you think a bias for selecting people that look similar to you is racist as well?
It's somehow still not standardized on the psu-side of the cable.
The path to the satellite is mostly not in a vacuum which is why some frequencies are not suitable. For example around 2.4Ghz is an absorption frequency of water which is why this freq is popular in microwave ovens as well (and thus why they cause interference with WiFi).

This is why the 1.6Ghz band is so popular, as it's the least affected. I would imagine 2.5Ghz being not so ideal but Globalstar is a pretty basic repeater system so I imagine they had to separate the input and output frequencies a lot to avoid huge filter systems to avoid it causing interference on itself.
As an indie developer I celebrate every small win and this comment made me start the day with extra energy. Thank YOU!
My X230 has essentially the same thing (well, two actually; one from the old Bluetooth connector [0] and one poaching the connector from the docking pins), nice to see the same concept being hacked onto more modern laptops

[0] https://files.catbox.moe/ezqhuq.jpg
Is it not exactly like phase cancellation in audio engineering?
Several hours later, then? That in Spain was a good resource on mocking the bureucracy and stereotyped laziness of the civil servants.

Here in Spain the judges literally pull/push supermarket trolleys loaded with lots of paper based archives by hand instead of using computers, because law people (not in the case of lawyers) refuse to neither use nor learn them.

Video in Spanish, from 2016.

https://www.lasexta.com/programas/mas-vale-tarde/noticias/ca...

And, yes, we obviously have a proper digital system, but the old farts refuse to adapt.
Sure. I stop all traffic to all clients regardless of what they're doing until mult returns.
I think its partly down to what you grew up with. If you're of the JS (or python 3) generation then you're _probably_ more comfortable with async.

However there are things where async seems to be more of a semantic fit for what youre doing.

for example FastAPI is all async, and it makes sense. I started using it, because it scaled better than anything else. They have don't a nice job of making the interface as painless as possible. It almost doesn't feel like surprise goto.

I do a lot of stream processing, so for me threads is a better fit. It scales well enough, and should I need to either go to multiprocessing (not great) or duplicate to a new stand-alone process, its fairly simple (Keeping everything message based also helps.)

async/threads is _almost_ like shop bought coke vs sodastream. They are mostly the same, but have slightly different semantics.
> Meanwhile, GPT4 will cheerfully write a program to carry out the required arithmetic operations (and then some.) A study that doesn't acknowledge that is worthless at best.

We don't want to see if the LLM can be used as a tool to do arithmetics, but whether it can learn complex data relationships like arithmetics. Arithmetics is a stepping stone, not a goal so that the model can solve it by invoking a calculator isn't relevant. The problems we want it to solve doesn't have tools like calculators so it doesn't help getting us there.
I think it's useful to have an interview question to identify engineers who, when faced with "add 'multiply' to a codebase that already supports 'add' and 'subtract'", conclude that it's an unimaginably complex design problem requiring the highest levels of generic problem solving. Lots of teams are looking for people like that, but not all of them are.
On her own site: http://kare.com/apple-icons/
While I still think it's a good way to assess how a person works, by actually making them work, I do agree that there's an issue with people thinking that there's some trick.

We've just completed a series of interviews and everyone below a certain age seems to think that we're pulling all kinds of tricks. During our interviews we'll ask a series of fairly simple questions about programming, operations, deployment, monitoring, all sorts of things. It's pretty clear to me that some candidates completely overthinks the problem. This was for a number of entry level jobs, so expectations aren't all that high, but we do want to make sure that people know the basics. It completely throws of a large number of people, especially those who have worked in startups and larger companies in the Silicon Valley / San Francisco areas.

Our older candidate frequently just straight up answer the question and just comment "Or where you looking for something in particular?" Normally we're not.

This is more a result of absolutely broken interview processes at other companies. I don't see us changing our interview process to include trick questions. Our questions are intended to make people talk, that's it.
Personally, I always slightly preferred the 16-color Windows 95 icons. Something about them made them a little cleaner, clearer, and quicker to identify to me.
If your backups aren't physically diverse, they aren't backups.

S3 Glacier Deep Archive is 99c/TB. Just ship it.
Async/await is syntax, but it's not equivalent to virtual threads. It is special syntax for a certain pattern of writing concurrent (and possibly parallel) code: one in which you launch a concurrent operation specifically to get back one result. When you start an OS thread or a virtual thread, that thread can do anything. When you launch a task, it can only do one thing: return one result of the type you asked for.

Async/await is perfect for operations that map well onto this structure. For example, most IO reads and writes fit well into this model - you trigger the IO operation to get back a specific result, then do some other work while it's being prepared, and when you need the result, you block until it's available. Other common concurrent operations don't map well on this at all - for example, if you want to monitor a resource to do something every time its state changes, then this is not well modeled at all as a single operation with a unique result, and a virtual or real thread would be a much better option.

Also, having both virtual and OS threads doesn't need any special syntax. You just need two different functions for creating a thread - StartOSThread(func) and StartVirtualThread(func), and a similar split for other functions that directly interact with threads (join, cancel, etc), and a function for telling whether you are currently running in a virtual thread. Everything else stays the same. This is what Java is doing with Project Loom, I'm not speaking just in principle.

The huge difficulty with virtual threads is implementing all blocking operations (IO, synchronization primitives, waits, etc) such that they use async OS primitives and yield to the virtual thread scheduler, instead of actually blocking the OS thread running the virtual thread.
Any details on what the new/old pinouts were?

The sata power spec gives 3.3, 5, and 12 volt rails, but I believe most devices now don't use 3.3 or 5 volt rails at all because they want to use their own internal voltage regulators where power up scheduling is more predictable (ie. Ramp rates etc).

Given that, the drives probably only used 12v and gnd, any miswiring could only have been reverse polarity??
Sounds a lot like my daughter. And me if I think about it :/
Issues with the article:

1. Only one example is given (web server), solved incorrectly for threads. I will elaborate below.

2. The question is framed as if people specifically want OS threads instead of async/await .

But programmers want threads conceptually, semantically. Write sequential logic and don't use strange annotations like "async". In other words, if async/await is so good, why not make all functions in the language implicitly async, and instead of "await" just write normal function calls? Then you will suddenly be programming in threads.

OS threads are expensive due to statically allocated stack, and we don't want that. We want cheap threads, that can be run in millions on a single CPU. But without the clumsy "async/await" words. (The `wait` word remains in it's classic sense: when you wait for an event, for another thread to complete, etc - a blocking operation of waiting. But we don't want it for function invocations).

Back to #1 - the web server example.

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? Does socket remain open, remains connected to the client - essentially leaked?

The timeout solution for threaded version may look almost the same, as it looks for async/await: `threaded_race(client_thread, timeout).wait`. This threaded_race function uses a timer to track a timeout in parallel with the thread, and when the timeout is reached it calls `client_thread.interrupt()` - the Java way. (The `Thread.interrupt()`, if thread is not blocked, simply sets a flag; and if the thread is blocked in an IO call, this call throws an InterruptedException. That's a checked exception, so compiler forces programmer to wrap the `client.read_to_end(&mut data)` into try / catch or declare the exception in the `handle_client`. So programmer will not forget to close the client socket).
This is great. I have wished for something like this.
Is there a difference, in this case? Addition can also overflow.
No it does not operate as expect. Expectation is that with provided existing cable it will supply same voltage to same parts of connector.

They could have easily rectified this by shipping new cables with the PSU and having sufficient warnings in multiple places.
Fun thing is that Tcl was relegated to the role of gateway drug to Common Lisp, in my case. I still use it when I want a more modern stdlib or its well-integrated event loop.

(I actually tried to retrofit some of CL in Tcl, heh; https://wiki.tcl-lang.org/page/q3cpma)
This is actually not a good interview question.
Music Making Apps
It just gets a little, well, weird in ways beyond rationality. For instance: The electron has never been directly observed or measured.

Its makeup is inferred. So what is physics? The measurement of consistent imagination?
And if you call the new API using the same parameters as the old one, it deletes your data. (!)
I would check for a fuse on the PCB first.
The best one I've heard of lately is "here's some code that ChatGPT generated, where/what are the bugs/issues/problems with it?"
Wine 9.5 (Dev) – Run Windows Applications on Linux, BSD, Solaris and macOS
> lower rates of use over their lifetimes of whatever was prohibited.

This is a more complicated problem though. Handheld computing devices
are a useful and amazing technology. Pragmatically, we don't want to
discourage anyone from taking up empowering technologies at an
appropriate time in life.

The problem stems from a dangerous combination of minds that are too
young to understand and process highly addictive usage applications,
and a toxic involuted culture driven by predatory commercial
appetites.

It requires a more delicate programme of digital literacy around why
(as a kid) you're not allowed a smartphone, what the dangers are, who
the bad guys are, how it can affect you and how to say no.

This is slow to happen for the same reasons that sex education is so
poorly handled in many countries; it's awkward, full of inconvenient
truths and hypocrisy, and many parents and teachers are confused and
conflicted themselves.

There is also the sinister aspect that a quiet alliance of governments
and big-tech who dream of cybernetic governance through effectively
mandated smartphone use are willing to throw the mental health of
multiple generation under a bus to get it. One can only hope the
backlash continues to grow and more people connect the dots and start
calling out the deeper causes.