skysight-inc/HackerNews huggingface dataset:
Are you sure about that?

>Rust embraces abstractions because Rust abstractions are zero-cost. So you can liberally create them and use them without paying a runtime cost.

>you never need to do a cost-benefit analysis in your head, abstractions are just always a good idea in Rust

Again though, and ignoring that, "zero-cost abstraction" can be very narrow and context specific, so you really don't need to go out of your way to find "costly" abstractions in Rust. As an example, if you have any uses of Rc that don't use weak references, then Rc is not zero-cost for those uses. This is rarely something to bother about, but rarely is not never, and it's going to be more common the more abstractions you roll yourself.
Hey if this makes it congratulations! I've never contributed to something so ubiquitous before but often thought how satisfying it'd be.

Like in years down the line, maybe as you retire and hang up your keyboard, you could sit back and smile as you realise your code is still deployed on millions, possibly billions of devices? That the code could far outlast 99.9% of code code anyone has ever written?
I have heard some bollocks but this...
I did try it. Didn't work in combination with env.

# Sets PWD and SHLVL and the latter apparently can't be unset
env -i VARIABLE=value bash -c 'exec -a program ./program'

# Sets env's argv0, not my program's
bash -c 'exec -a program env -i VARIABLE=value ./program'

# SHLVL still set
env -i bash -c 'unset SHLVL; unset PWD; exec -a program ./program'

# SHLVL and _ still set
env -i zsh -c 'unset _ HOME PWD LOGNAME SHLVL OLDPWD; ARGV0=program

The original discussions, linked from my post:

https://lists.gnu.org/archive/html/coreutils/2023-03/msg0000...

https://lists.gnu.org/archive/html/coreutils/2023-03/msg0001...
I could barely read or navigate on mobile despite being prompted to ‘flip to landscape’. I gave up on the page.
I thought the Never Rewrite article was about Netscape, not Mozilla or Firefox?

Agreed, these are great posts.
That's why the support is "preliminary". I plan to write some compelling examples for the emscripten target. Here is a "raw" build that shows repl (on some browsers results of evaluation show in the javascript console): http://turtleware.eu/static/ecl/ecl.html -- this is a little older build, but following instructions in INSTALL will get you to the same place.
It does mean they’re growing expenses, though.
I'd like to read that but can't seem to find it. Do you remember the title or have a link?
> You're confusing IO not happening because it's not needed with IO never happening. Just because a method can perform IO doesn't mean it actually does every time you call it. If I call async_read(N) for the next N bytes, that isn't necessarily going to touch the IO driver.

Maybe you can read the linked post again? The problem in the example in the post is that data keeps coming from the network. If you were to strace the program, you would see it calling read(2) repeatedly. The runtime chooses to starve all other tasks as long as these reads return more than 0 bytes. This is obviously not the only option available.

I apologize for charitably assuming that you were correct in the rest of my reply and attempting to fill in the necessary circumstances which would have made you correct
Bitwarden has been disabled in Chrome [img]
Looming UAW strike puts 'Union Joe' Biden in a tough position
I too find this hilarious. Not because I want to defend PHP, but moreso that I personally sort of despise react and it's whole ecosystem. I've never liked writing code less than when dealing with a spaghetti monster react app.
This is specifically about breaking the myth that performing expensive self-contained operations (e.g, parsing GraphQL) in a native extension (C, Rust, etc.) is always faster than the interpreted language.

The JS ecosystem has the same problem, people think rewriting everything in Rust will be a magic fix. In practice, there's always the problem highlighted in the post (transitioning is expensive, causes optimization bailouts), as well as the cost of actually getting the results back into Node-land. This is why SWC abandoned the JS API for writing plugins - constantly bouncing back and forth while traversing AST nodes was even slower than Babel (e.g https://github.com/swc-project/swc/issues/1392#issuecomment-...)
Maybe not for the user, at least not directly, but developer experience is something to optimise for.

PHP is also the one language whose choice can make an impact on users' experience, since its shared-nothing (sans caches) runtime model is almost CGI-like and can, in my experience, lead to higher latency, as each request simply does more. Maybe some experienced PHP devs can tell me how they combat this?
Is it possible to use Rust and all the important 3rd party crates without using async?

Out of curiosity, could Rust be limited to a language subset to mimic the simplicity of Golang (with channels and message passing) and trade-off some of the powerful features that seem to be causing pain?

Pardon a naïve question. I’m a systems engineer who occasionally dabbles with simple cli tools in all languages for fun, but don’t have a serious need for them.
Sorry, Maildir, I am breaking up with you
clicking [Enable this item] brings the user back to the same page
It would be funny to see Github itself get a DMCA notice for once.
The actor was ok, btw, he was also very good in "Hail, Caesar".
The rebate I mentioned is NZ$7,000, bringing the total to USD$37,000. My memory wasn't far off.
Still do this day I don't know of any serverside language that you can just drop files into to update.
It takes more than one bad movie to kill a franchise of such magnitude. But I think Disney execs are going to persist in achieving this goal.
None of the cleanliness of Python will ever justify the dependency management madness it brings over simply using composer in PHP. It’s not in the same league, not even playing the same game. Give me composer and I’ll get you reproducible installations in CI and prod in three minutes. With Python? The gurus are still discussing the best package manager after the first two days.
Just curious, but Wouldn’t you call a NMVE enclosure with TB3 or 4 a sufficient ZIP drive reencarnation?
Should those who work from home be paid less?
Fake components went into 68 jet engines including Boeing 737 and Airbus A320
A car can typically stop within 5-10m at most city speeds (reaction time notwithstanding) and not really waste much energy in the process. A freight train probably takes about a month to stop, at the cost of a lot of energy/fuel. It absolutely makes sense they have right of way.
Most of them are available thru Nixpkgs too. You can make a small derivation to turn any font into WOFF2 with GNU Parallel + `fontforge --lang=ff -c 'Open($1); Generate($2);' {} $out/{/.}.woff2`.
https://archive.ph/CVFvx
Interesting battery. More like a fuel cell that retains part of the fuel (the zinc)?

"Zinc–air batteries cannot be used in a sealed battery holder since some air must come in; the oxygen in 1 liter of air is required for every ampere-hour of capacity used."

More complex details on the wikipedia article ofc.
Are men in porn movies realistic?
Teens do dumb things, this is nothing new.

What gets me here is that some company produced these chips and encouraged the challenge. I hope the company, and its founders, are held liable for the medical costs of all the teens who wound up in the hospital. And criminally liable for the death they caused
There are many such primitives in Rust (including one in the standard library). And it's effectively the default, the only annoying thing is the libraries which use async (it is possible to just wrap the async code in sync code, just a little annoying. But I think it's what most users of the language should do.)
The most common defense I hear here is that the inefficiency just never mattered.. and if it did it was because the product was a blockbuster success and you could hire to rewrite the slow parts or adopt hack or whatever.
Yep! I wish I was joking, but https://news.ycombinator.com/item?id=37415812
> They have no incentive to make it good. You know the drill

And yet I regularly come across companies that manage to do even worse, despite having insentives. What should happen to them, Execution?
Speeding isn't great but speed tickets and traps clearly are doing nothing to stop speeding.

There's really only one solution that works to prevent speeding: road design. Make roads less straight, less big. Add more obstacles and flow interrupts.

Private cars are obsolete anyway. Replace more lanes with bus lanes and be done with the problem altogether. It's frankly insane that we allow people to operate a private car with nothing more than a license they got at 16 years old and never tested again for for the 70+ years after they'll be driving.
Ok, but at least we didn't manufacture that comet.
>use fancy smart pointers, etc.

The thing is, you think your code is safe and it most likely is, but mathematically speaking, what you are doing is difficult or even impossible to prove correct. It is akin to running an NP complete algorithm on a problem that is easier than NP. Most practical problem instances are easy to solve, but the worst case which can't be ruled out is utterly, utterly terrible, which forces you to use a more general solution than is actually necessary.
1) It is extremely rare for a field to ever 'be solved'. There is still active research into how to multiply 2 numbers together. NLP is not anywhere close to solved.

2) LLMs have different trade-offs to fundamental techniques. Linear regression still gets lots of use despite there usually being a theoretically better method for any specific application. There will be parallels to that in NLP.

3) Isn't the article talking about training things like LLM? It is right there - "Chapter 4: Training a neural network model".
This is one purpose of Google fonts, but it's not the only purpose.

Google has nearly 100% search market share, so one of the only ways that they can increase search traffic at this point is by increasing web traffic in general. One of the ways they do this is by making it easier to create web content by e.g. distributing fonts.

See Gwern Branwen's excellent article on the subject: https://gwern.net/complement
Well, I don't know if they're gonna use my patch. I reported a bug to gpg once and sent a patch in but in the end the maintainer rearchitected the code and gave me attribution. Perhaps they require copyright reassignment?

I can't deny I'm gonna be really happy if they do use it.
A guy preserving the new history of PC games, one Linux port at a time
Actually, no, I misread it trying to make sense of what you were posting so this post is edited.

This is just mundane non-blocking sockets. If the socket never needs to block, it won't yield. Why go through epoll/uring unless it returns EWOULDBLOCK?
I didn't say anything about lawmakers. I said 3rd party cookies are expectetd to be banned (by google and other browser makers only other browser makers have already done that).
You have no idea what you’re talking about. Aaron was the furthest thing from an authoritarian. Just because freedom fighters break the law does not equate them to authoritarians, and the rest of this is similarly mistaken.

That you have no compassion for someone who committed suicide due to copying bits shows a lack of humanity that I hope no one emulates.
The safety argument is actually the reason why you can use Rust in those cases to begin with. If it was C or C++ you simply couldn't use it for things like webservers due to the safety problems inherent to these languages. So Rust creeps into the part of the market that used to be exclusive to GC languages.
>How closely the state should be involved in the moderation practices of private platforms is certainly a matter of some dispute and delicacy. Too far in one direction results in censorship like China’s, while a totally hands-off approach results in rampant abuse, as we’ve seen in the past.

Citation needed, I guess?
> Only 12.5% of the population scores in the levels 4 or 5 (they had to group them together because there were so few is my guess)

The reason they did that is called out in endnote 3, "This analysis combines the top two proficiency levels
(Levels 4 and 5), following the OECD’s reporting convention
(OECD 2013), because across all participating countries, no
more than 2 percent of adults reached Level 5."

The PIAAC definitions of each level are here: https://nces.ed.gov/surveys/piaac/measure.asp?section=1&sub_... and I would estimate that extremely few daily tasks would require (or even be aided by) level 5 literacy proficiency.
Fyi: Under GDPR you have to host these fonts yourself.
I recommend this lifestyle.
So it is a total lie that it was "the biggest source of traffic".
Mexico Built a State
There are multiple options by now. For one, PHP got a JIT compiler a while ago. That, in combination with the existing opcode cache, actually causes PHP to outperform its interpreted competitors in most cases.

Additionally, there are several application server strategies, sometimes with a process manager that keeps preloaded request workers at hand, sometimes hosting an event loop, and sometimes a request worker that gets partially reset after handling requests. This yields performance comfortably comparable to optimized Node.js apps.

In general, PHP has a highly optimized runtime, and we didn’t even really touch caching yet. Trust me when I say performance is not one of the problems PHP poses :)
What about being forced to drive? Every time I find myself in a car in the USA I consider it a failure of local government to provide an actual good means for me to get where I'm going. In other countries I can go somewhere while relaxing and reading a book.

The speed limit conversation seems a distraction. Why drive at all? It's annoying.
It’s like meeting someone in 2023 who hates Micro$oft WinBLOWZ. Have they been stuck in stasis for 20 years? What other values from the 9/11 era do they hang on to?
And dialects of Lisp a-likes will fight each other. https://locklessinc.com/articles/why_lisp_failed/
The whole point of abstraction is to replace the need of understanding all the details of the implementation with a more general and simpler concept. So while the abstraction itself may have a non zero cognitive cost for the end user, this cost should be lower than the cognitive cost of the full implementation that the abstraction hides. Hence the net cognitive cost of proper abstraction is negative.

Abstractions allow systems to scale. Without them, it would be impossible to work on a system that's 1M lines of code long, because you'd have to read and understand all 1M lines before doing anything.
Pay for results, not butt-in-seat.

If it's a job that requires physical presence, then that's how it is. It's hard to prune a tree or lay a pipe as WFH.

If the job doesn't require physical presence, then it doesn't, and office or WFH is irrelevant. Call center jobs, or lots of IT support.

Some jobs are in the middle: you need face-to-face sometimes, but not every day, in order to be effective. Teaching, or requirements engineering.
WOFF Has Left the Building
You can’t turn off undefined behavior in C++ either. Lifetimes exist whether the language acknowledges them or not.

Except if you go to a GC language, but then you’re prototyping other types of stuff than you’d probably pick Rust for.
Is it really that fascinating?

I also followed Joel's essays and was more into it back then. But as I look at it now it is generic startup setup. They pivoted enough times to land gold mine. With getting developers do what they like they were able to pivot quite easily and they were onto hiring smart people.

In the end that is what sane business person should do, pivot, pivot, pivot until you land great idea. Only thing you cannot pivot are great people because there is limited amount of those and there is unlimited amount of ideas.

What bad companies do is sticking to some bad idea that maybe earns money but then they burn through legions of junior devs to keep train going.
If you need it, Swoole and Roadrunner exist
"The ability to interleave code and HTML was also tacky and never taken seriously" - That was the whole point of it! The day I found PHP and could leave behind the cgi-bin and SSI it became my favourite thing - and has paid me well for the last 20+ years :)
I believe this is Dr Timothy Graham's Twitter/X account: https://twitter.com/timothyjgraham
I don’t understand what it means to be “solved”. It’s like saying that “architecture is now solved”, “physics is solved”, or “programming is solved”.

It’s a field of science and/or engineering, it’s not like we will ever run out of things to try/build/investigate. LLMs work… to a certain extent, with limitations and tradeoffs, and for some things. Would you spend days, money and Co2 to split a huge text corpus in sentences with a LLM, if a simpler program can do that just as well, there’s no need to find “the perfect prompt” (and hope that the LLM doesn’t forget one sentence, adds something inbetween, etc etc) and it gets done in three hours?
Naive question: Why not use OS concurrency then?
I know everyone at my last company had to do compliance training with Kevin Mitnick for hours; not that I minded RIP. Fingers crossed my large company isn’t the outlier and people pay attention to the training. Still, this vulnerability is bad news. A well targeted attack that doesn’t trip any training red flags (links, attachments, etc.) for the victim is still a very real security threat, right?
Ok, your choice. You do know that you risk loosing both if they find out? And in my neck of the woods they will, since full time employment pays into social security and employers receive feed-bavk in the form of their respective contributions.

Nothing I'd recommend, and just for loosing employment, but also for mental health.

All that of course goes for two full time jobs. One full time job and some side jobs are acceptable. And unfortunately for some a necessity to make ends meet.
Yeah I'd be similarly curious how that was arrived at. ESRGAN was co-developed by a researcher at Tencent, who has been involved in a range of similar things.

The only satellite related thing I saw in my brief searching is some separate project[1] based on ESRGAN used for satellite imagery.

[1] https://github.com/Jakaria08/EESRGAN
Maybe this Australian ;) article gives some explanation: https://www.themonthly.com.au/issue/2013/june/1370181600/mic...
Right. It's so much less deadly when it wasn't the product of suicidally stupid choices by humans.

What's really funny is this flies in the face of typical human patterns of behavior where we obsess about longshot disasters we can't control, like catastrophic plane wrecks, and go "meh" about things that are much more likely that we can control, like the much higher risk of dying or being maimed in a car wreck.
php runs securely in 5minutes in any web server 3-10$/month.

Every other tech, it's complicated servers or complicated billing, not to mention depencies and build tools.

thats why php
Ask HN: What is your opinion on Alphabet Workers Union?
Are these unions really useful or just a controlled opposition?

I believe mostly they are about empty rhetoric.
GC generally optimises for throughput over latency. But there is also another cost: high-throughput GC usually uses more memory (sometimes 2-3x as much!). Arc keeps your memory usage low and can keep your latency more consistent, but it will often sacrifice throughput compared to a GC tuned for it. (Of course, stack allocation, where possible, beats them all, which is why rust and C++ tend to win out over java in throughput even if the GC has an advantage over reference counting, because java has to GC a lot more than other languages due to no explicit stack allocation)
This is so out touch that it is laughable
I've gotten a lot of value by being able to go to a library in my vendor folder, and add some var_dumps in there to figure out where my code is going wrong. The way the dependencies works is magnificent.
95% of my "logic errors" are related to surprise nulls (causing a data leak of sensitive data) or surprise mutability. The idea that there is no debug cycle is ridiculous but I am confident that there will be less of them in Rust.
This reminds me of the sysadmin at a Greek university I once worked in back in 2009 or so. He had installed Linux at every one of the computer labs' computers. He'd changed the startup software to describe Windows as Windows UnProfessional. The default was Linux, and it would boot within 3 seconds unless you quickly changed it. Under Linux he'd included all the Gnome 2 window manager flash, including spinning cubes and windows that went up in flames when you closed them.... He convinced my friend to install Linux on her laptop. Good times.
Filmmaker Guillermo Del Toro Talks Artificial Intelligence
As a past active SecondLife user back in the day (circa 15 years ago), and a short-stunt OpenSimulator dev, I had been thinking a lot about how much better SecondLife could be if it had the modern tech absorbed - thanks for doing this! :-) I did a short return to try SL recently, and the lagginess of the viewer made me sad.

Is there a ML to subscribe to, to learn when the viewer is more generally available for testing? Thanks again!
> The language is very unplanned, go look at an equality chart for PHP, it makes JavaScript blush as well.

This has been fixed in PHP 8. https://wiki.php.net/rfc/string_to_number_comparison
Quantum Computing Considerations for Congress
Gotta agree with you. I hate driving.

I hate dealing with the other humans on the road and the stupid things they do. I hate the constant uncertainty, not being able to assume anything because people don't even signal turns properly. I hate the roads, poorly maintained, full of speed bumps, full of potholes, full of people walking around without a care in the world. I hate having to maintain my car.

I hate being forced to drive. I only do it because I hate other forms of transport even more.
that's very true. But it is true for PHP as it is for any other language or tech that is at least a decade old.
Interesting fact: chatgpt can recognize old stuff and give better recommendations
How does a product like that get FDA approval and is just sold to anyone at a store? Even alcohol, which is safe in comparison, requires customers to show ID
It does, language comes with culture, I'm polyglot and the amount of horrors I've seen in php3/4 days was on par with legacy cobol.

It was too sweet on effectful code around random maps (what's not to like, you can do whatever and spend hours trying to find the right combination of stdlib array_ functions until something happens).

Of course things change after the nonphp6. But if someone only knows and love php I'll check twice before working with him. I'm actually dealing with someone like that right now.
Home users take their PC to airports, hostels and cafes. Criminals who break into homes steal laptops. Of course there are benefits.
This week in KDE: power management galore
Node 12 went out of LTS 16 months ago. 4 months ago was Node 14
Is accepting 11-char strings but not accepting 19-char strings for constexpr, specified in the C++ specification, or is this just behavior that different compiler vendors are implementing differently?

If the latter, then it is pretty annoying that non-standard behavior is happening now related to standard libraries implementations and constexpr.
No one with a complicated tax situation should ever consider H&R Block, it's almost monkey and a dartboard level of skilled tax prep. TurboTax at least you can drive and as a semi-educated tax payer do it right. Everyone is looking forward to the IRS providing a baseline service except the tax industry.
On Copyright and AI