skysight-inc/HackerNews huggingface dataset:
Engineered E. coli could be used to produce biodegradable plastics
For anyone stumbling upon this that deals with bookmarklets, I submit bookmarkl.ink[0], a tool I made to ease the maintenance of bookmarklets.

In short, it pulls code from GitHub Gists (which have the benefit of being backed by git repos), transpiles, minifies, bundles, and wraps in an IIFE. It's also got a basic module resolver that allows you to include libraries or remote files.

This allows you to use creature comforts like TS and libraries and maintain code readability while still ending up with the smallest possible bookmarklet. It also allows you to link to a particular version (git hash), present user-defined variables, edit code in an inline editor, etc.

Enjoy!

[0]: https://bookmarkl.ink
This isn't an accident or a random cut to save money.

The less you track climate change, the less pressure there is to do anything about climate change.
And buying the CD and ripping it?
I can reproduce this consistently in both Edge and Chrome. I've been assuming that it was a change to how Chromium redraws pages that was introduced a few months ago, but I haven't really looked into it. I just started hitting Next instead of collapsing anything.

I just timed it real quick in Edge 134.0.3124.93 and collapsing svara's top level thread hangs the browser and lags my system for 1 minute 36 seconds.
They're not bragging. They're pointing out that the ceiling is dramatically too low, which has caused elite universities to spend decades creating more and more elaborate and more and more detached and meaningless gatekeeping mechanisms. The national average does not matter in the context of the nation's most competitive schools.
Depends on range. My PEHV only has 30 miles of range, sometimes my morning errands use that and it would be nice for a 1 hour charge over lunch for the afternoon errands. (most days 30 miles is plenty). Or better yet just mandate 70 miles minimum range which will get most daily errands.
You more or less have to. If you're very wealthy I guess you could travel everywhere on a sedan chair or something, but the US thing where you drive to everything can't work in many parts of Europe.

In very high density areas they don't want private motor vehicles so they're just banned, there's maybe public transit but you'd really have to be unhurried to take public transit over a distance that's say a 10 minute walk.

In very low density areas nobody bothered adding a road. Why not just walk? I mean you could use a serious off road vehicle (no the fact your "truck" says it has AWD does not mean it will work) but even in places where that's legal why not just fucking walk?
You don't have to use the exact same lanyard if you don't like it. You can use a gold chain or other classy metal chain for old times sake, although it won't be condensable.
Likely a difference in terminology.

"Upper middle class" in the UK comprises the top 5% or so of the population. They tend to be senior professionals or business owners, are likely to be privately educated, will probably speak with a "received pronunciation" (rather than regional) accent, and have significant asset wealth.

"Upper class" is reserved for landed gentry, nobility, etc. They're people who can live off long-standing inherited wealth and don't need jobs or even education (though many still do have them, of course).
Imagine getting dodged out of the state department soft power division and having to witness the destruction of your lifes accomplishments by this tool in minutes.
The Trump administrations attacks are able to go so far now, because institutions already rolled over under a Democratic administration.

Take for instance University of Pennsylvania. In 2023, student anonymously projected "Let Gaza Live" onto a building. The next day then-college president Liz Magill publicly called in the FBI to investigate this as an "antisemitic hate crime". She was later forced to resign for "not doing enough" to combat alleged antisemitism.
>Almost all of my friends with higher educations have left for northern countries, as the situation here is untenable for young people.

>Bottom of the barrel wages for natives are the result of uncontrolled mass migration - we have received millions of immigrants in the last decade, which has basically destroyed wages.

Putting those two sentences of yours together triggered that thought in my mind, I apologise if I was wrong.
If someone create a new business on top of this by changing layout and URL routes, how are they able to identify that they used this source code?
I am struggling to post Ask HN with the question about what is going to be done in 1-1.5 years from now. Is this a: mesh networks of drones as a communication breakthrough, lasers able to down a drone with a cost less than 1$ per downed drone, or any AI breakthroughs? I am sure one of the three will skyrocket anytime soon but don't know about anything about these advances.
Maybe. There were exemptions to the tariffs. The exemptions included Russia. If the tariffs remain, companies are incentivized to invest in places with no tariffs to USA (as Trump removes Russia sanctions whenever it's convenient).

So, we've been hit with the largest tax increase (peacetime) in US history with no coherent explanation. Even the Project 2025 master plan suggests the idea is to devalue the dollar to save hundreds of billions. We've already lost trillions, so that didn't work.

I think the most obvious answer is incompetence, but there are piles of shit and coincidence with MAGA and Russia. I'm not in denial.
Circulating polyunsaturated fatty acids and coronary artery disease mortality
Conclusions
Observational and genetically predicted high DHA% protects against CAD mortality, particularly in older adults. Omega-6% and incident CAD exhibited sex-specific inverse associations. These findings underscore the importance of considering age and sex in PUFA-based strategies for CAD prevention.
Whenever I go reading about these people and this ideology and community it reminds me a lot of the various Trotskyist or other far left sects and personalities I encountered when I was younger. Similar dramas and egos and personality quirks and strident philosophical emissions, ideologically-focused groups built around persons/personalities. Often involving sexual relationships and dubious power dynamics. Just from, y'know, 180 degree philosophical positions.

Maybe it was a product of her original linguistic/cultural extraction, but when I read Rand's "Capitalism: The Unknown Ideal" as a teen it reminded me very much of Stalinist or Trotskyite tracts I encountered around the same time. Different positions, same tone of absolute certainty and similar polemical flourishes.

All of which to say, it all strikes me as more theological than philosophical.
> It's so funny how these AI bros make excuse after excuse for glaring issues rather than just accept AI doesn't actually understand what it's doing

Its less funny when you realize how few of these people even have experience reading and writing code.

They just see code on screen, trust the machine and proclaim
victory.
Nonsense. When the gas crisis hit, a lot of people with badly insulated houses (Britain fares quite badly here) were hit very hard and whining while the ones with insulation and solar panels were laughing away.
House price is mostly related to taxation and land availability. Local politicians like to constrain land availability to keep their own houses priced up.
Poll: Do you still write code?
Recent advances in AI promise to make most of the handy work of coding a thing of the past.

Do you still write your own code?

The previous poll:
https://news.ycombinator.com/item?id=43265234
- Yes, 75% of the time, productivity is about the same.
- Yes, 50% of the time, I'm also 1.5x more effective.
- Yes, 25% of the time. I'm about 2x as effective.
- No, the AI does it all and I'm 10x as effective. Hardly any polish is needed.
This makes AI image generation very boring. I don't want to generate pictures I can find on google, I want to make new pictures.

I found apple's tool frustrating. I have a buzzed haircut, but no matter what I did, apple was unable to give me that hairstyle. It wants so bad for my avatar to have some longer hair to flourish, and refuses to do anything else.
When you call a cuda method, it is launched asynchronously. That is the function queues it up for execution on gpu and returns.

So if you need to wait for an op to finish, you need to `synchronize` as shown above.

`get_current_stream` because the queue mentioned above is actually called stream in cuda.

If you want to run many independent ops concurrently, you can use several streams.

Benchmarking is one use case for synchronize. Another would be if you let's say run two independent ops in different streams and need to combine their results.

Btw, if you work with pytorch, when ops are run on gpu, they are launched in background. If you want to bench torch models on gpu, they also provide a sync api.
Not to pick on Rails, sorting files into "models / views / controllers" seems to be our first instinct. My pantry is organized that way: baking stuff goes here, oils go there, etc.

A directory hierarchy feels more pleasant when it maps to features, instead. Less clutter.

Most programmers do not care about OO design, but "connascence" has some persuasive arguments.

https://randycoulman.com/blog/2013/08/27/connascence/

https://practicingruby.com/articles/connascence

https://connascence.io/

> Knowing the various kinds of connascence gives us a metric for determining the characteristics and severity of the coupling in our systems. The idea is simple: The more remote the connection between two clusters of code, the weaker the connascence between them should be.

> Good design principles encourages us to move from tight coupling to looser coupling where possible. But connascence allows us to be much more specific about what kinds of problems we’re dealing with, which makes it easier to reason about the types of refactorings that can be used to weaken the connascence between components.
He can get it broken and then be forced out by the 130-day rule, leaving it broken...
It's nice but not worth the price to buy it new, not even close. I got mine used and quite depreciated.

And with the tariffs against Chinese vehicles it's been removed from sale in North America (for new vehicles, only available used) and it's questionable about how well I'll be able to get it serviced in the future. The local Volvo dealers apparently have a chip on their shoulders about Polestar and won't touch it, either.
I have nothing else to say other than: Amazing!
At least the Bold and Beautiful has a story with characters. There are popular minecraft videos that are just random kids saying "here's the house I made of blocks... here are the walls... here are some torches... here are the stairs... here are the upstairs walls..." and videos that are just random kids putting blocks on top of other blocks. Some without narration at all, but others with inane chatter.

There's no compelling narrative however, no drama, no danger/thrills, no ticking clock, no "will they or won't they", and no production value.
I don't understand why you think GRUB is required. Or what boot sequence (or use case) involves UEFI > NT6 > GRUB > linux.

Are you wanting bootmgr.efi to learn how to read arbitrary Linux filesystems, bootloader configurations, and EFISTUB? Why?

Windows supports setting a one time boot using a UEFI BootNext NVRAM variable, directly boots shim.efi, doesn't involve bootmgr.efi
ive been using puppeteer to query and read responses from deepseek.com, it works really well but i have to use a stealth mode and "headed" version to make it think its a person
The previous poll (30 days ago): https://news.ycombinator.com/item?id=43265234
> The US does not have most countries in an economic chokehold

For most of living history, the US went out of it's way to ensure that crude oil is sold in USD, including oil that's extracted in oilfields halfway around the world. There's only one way to get USD is to trade with the US.
By the same logic the students got themselves vanished by not strictly following the rules of the visa ( one example, student had a dui ). It is not better, but the moment you erode basic speech protections it spills over to a lot of other areas.
> I've never heard a single positive story

That's because you might not be as well informed as you think probably.

180K miles is nothing for a decent EV. LFP batteries are good for 3000-5000 charging cycles. At around 250 miles per full charge that translates into 750K miles to 1.25M miles. NMC batteries last a bit less long. Their batteries might dip below 80% of the original capacity around the 750 cycle mark (190K miles). Most of the newer ones would do better than that at 1000-1500 cycles. Below 80% they don't suddenly fail. They just drive a bit less far than they used to.

Battery failures are pretty rare with EVs. Most manufacturers give 8 year warranties. That's because they are unlikely to fail before the warranty expires. So, it's a cheap promise to make. The model 3 has only been on the market for about 8 years now. Most of them are still under warranty. Most other EVs are newer than that.
A car and get maybe 200 watts in the best conditions - not enough to be significant. Even if parked in the sun all day you won't get much range from that.

Now a semi truck might actually get significant added range.
FWIW, many years ago I started a little tech company. I was convinced that we had a compelling product, and we had some initial customers - franchises of a large, worldwide organization. It would be easy to springboard to more and more franchises, before even looking elsewhere for customers.

Turns out that I hate sales. Not coincdentally, I'm also not much good at it. We talked to some marketing agencies, but all of them wanted flat fees, and none of them would consider "performance based" payment.

So, yeah. I wish someone like you had existed at the time.
That's astonishing. They must make a loss on every one they sell. I bet they don't sell many though, they want 21 EUR to send it to Norway!
I posit that for doing something like this you want humans doing the work, not LLMs run by kids.

It also probably doesn't hurt probably if they're on the older side by developer standards. Or at least insanely detail-oriented and being able to take pride in doing good but kind of boring work.
> This is only true where it is distinguishable that the end result is made with care and love rather than indiscriminate copying. Which is why attribution is essential. No one realistically could tell a ring was hand crafted or mass produced if there wasn't some tell.

It doesn't matter if the ring was hand crafted or not. It's whether it has hand selected. If you find the perfect ring, even if it was generated by an AI, it's your selection that matters. It's the correspondence that matters. The way it reflects elements of your relationship. It's you recognising those elements in the ring. Your partner recoginising them in the ring. And your partner recognising you recognising them. That is what makes itself.

Not to dox myself, but I am not Grace Abrams. I met my partner long before her song "Risk" was written, but when I heard it I immediately played it for my partner and said "This describes the feelings I had when I met you". I played it for her, she cried. I didn't have to write the song or own or pay a cent for it. It's the curation that made an emotional connection and had value. The song itself has no value, and she might have even heard it and never made the connection, it was me embuing that had value.

To go back to Miyazaki, it's the connections between elements in his films. The attention to detail and tone between relationships that make his films amazing. It's all about the handyman's invoice [0]. By the time there are enough examples for AI to learn something, it ceases to be a novel insight and have value. It's the curation and application that have value and are human and cannot be stolen.

[0] https://www.snopes.com/fact-check/know-where-man/
I'm a good swimmer, and 50 pounds of thrashing, scratching and climbing feels dangerous.
OK but getting good at science/engineering is what matters because that's what gives AI and people who wield it power. Once AI is able to build chips and datacenters autonomously, that's when singularity starts. AI doesn't need to understand humans or act human-like to do those things.
If you want to have your own Base32 where giving a padding = 0xFF instead returns an error, it's commonplace to have a wrapper that will explicitly do the check and return an error if it fails, and otherwise call the function:

macro String? encode2(Allocator allocator, char[] src, char padding = DEFAULT_PAD, Base32Alphabet* alphabet = &STANDARD)
{
if (padding >= 0xFF) return INVALID_PADDING?;
return encode(allocator, src, padding, alphabet);
}

Maybe a better place to ask these questions are on the Discord if you have an account: https://discord.gg/qN76R87
In a thread about tariffs, praising the value of Tunisian olive oil and lamenting the rough state of its producers while saying you’d happily pay the tax increase it seem like you misunderstand what tariffs will actually do. Based on the reception of my initial comment, I am not the only one who came to that conclusion.

Thanks for clarifying your position.
Is CSS turing-complete? Could one make a JS to CSS compiler?
OK so for one the title of that section is off:

> JS loops pretend their variables are captured by value

This has to do with how for loops work with iterators, but also what `let` means in variable declaration. You talk about 'unrolling a for loop' but what you're doing is 'attempting to express the same loop with while'. Unrolling would look like this;

// original:
for (let i = 0; i < 3; i ++) { setTimeout(()=>console.log(i)) }
// unrolled:
{ let i = 0; setTimeout(()=>console.log(i)) };
{ let i = 1; setTimeout(()=>console.log(i)) };
{ let i = 2; setTimeout(()=>console.log(i)) };

// original:
let i = 0;
for (i = 0; i < 3; i++) { setTimeout(()=>console.log(i)) };
// unrolled:
let i = 0;
{ i = 0; setTimeout(()=>console.log(i)); };
{ i = 1; setTimeout(()=>console.log(i)); };
{ i = 2; setTimeout(()=>console.log(i)); };

Now you can begin to explain what's going wrong in the second example; 'i' is declared with 'let' outside of the block, and this means the callback passed to the setTimeout is placed in the next stack frame, but references i from the outer scope, which is modified by the time the next stack frame is running.

In the original example, a different 'i' is declared inside each block and the callback passed to setTimeout references the 'i' from its scope, which isn't modified in adjacent blocks. It's confusing that you're making this about how loops work when understanding what the loop is doing is only one part of it; understanding scoping and the event loop are 2 other important pieces here.

And then if you're going to compare a while loop to a for loop, I think a critical piece is that 'while' loops (as well as 'do .. while') take only expressions in their condition, and loop until the expression is false.

'for' loops take three-part statements, the first part of which is an initialization assignment (for which 'var' and 'let' work differently), and the second of which is an expression used as the condition. So you can declare a variable with 'let' in the initialization and modify it in the 'afterthought' (the third part of the statement), but it will be treated as if each iteration of the loop is declaring it within the block created for that iteration.

So yes, there are some 'for' loop semantics that are specific to 'for' loops, but rather than explain that, you appear to be trying to make a point about loops in general that I'm not following.

I'm not saying the examples won't help people avoid pitfalls with for and while loops, but I do think they'll be unable to generalize any lessons they take away to other situations in JS, since you're not actually explaining the principles of JS at play.
Boot from USB drive, answer some questions. 20 mins later reboot to a fully functioning desktop, with lots of useful apps already installed.

Battery life is fine, no partioning required. As far as selecting a distro goes, yeah, there's a lot of choice but it's not hard to find which ones are the mainstream ones.

Edit: maybe the average computer user would find that difficult too, but they would find installing Windows similarly difficult (if not more so).
South Korea Removes Its Impeached President and Regains Direction
Python is really shaping up to be the lingua franca of programming languages. Its adoption is soaring in this FOSS renaissance and I think it's the closest thing to a golden hammer that we've ever had.

The PEP model is a good vehicle for self-improvement and standardization. Packaging and deployment will soon be solved problems thanks to projects such as uv and BeeWare, and I'm confident that we're going to see continued performance improvements year over year.
I think the problem is you're ignoring the expansion of the universe in your model. Alice v2 and v3 do not stay indefinitely in v1's light cone or each other's light cones.
The "OSD" is not the actual definition of open source. The OSI has no special rights to the term open source (despite their failed attempt to trademark the term). The OSI did not coin the term, their founders did not coin the term, the term was in use to refer to non-commercial software with publicly posted source prior to the OSIs existence.

Open source is like any english term, its meaning is defined by its use, not by some special interest group.

The complaint about using open source to refer to non-commercial licenses absolutely is pedantry. But more than that, it's not even objectively correct pedantry. It, like most language, is subjective.

(Which isn't to say that I think this license complies with the common use of the term open source as actually used, but I disagree with your argument for why that's the case).
Tuition is skyrocketing and wages are stagnant. I'm not making a hard claim about inversion of ROI, but I don't need to. What's the reason for college becoming so expensive?
Creating Histograms with Postgres
Ah, that is indeed true. However, the plan is to have the language fixed at 1.0, only updating stdlib and tooling after that.
> Each of these functions could be provided commercially, likely at lower cost and higher quality.

The false promise of privatization.
1. Hamas bears the moral responsibility for all of the suffering in the war they started on October 7th, and the Palestinian people bear the moral responsibility of electing and supporting them (and participating in the invasion, and not returning the hostages).

2. Even Hamas now admits most deaths have been military aged males: https://m.jpost.com/israel-news/defense-news/article-848592

3. How can you argue that Gaza has been starved and ethnically cleansed when the population of the Gaza strip has increased since the start of the war?
Most Europeans have this crazy idea that the US is as large as their country. They think traveling from France to Germany is international and a bid deal - people in the US travel farther than that all the time while remaining in the US.
CuPy has been available for years and has always worked great. The article is about the next wave of Python-oriented JIT toolchains, that will allow writing actual GPU kernels in a Pythonic-style instead of calling an existing precompiled GEMM implementation in CuPy (like in that snippet) or even JIT-ing CUDA C++ kernels from a Python source, that has also been available for years: https://docs.cupy.dev/en/stable/user_guide/kernel.html#raw-k...
Overcoming login walls for web agents with an Agent Secrets Manager