skysight-inc/HackerNews huggingface dataset:
If I need make a new thing - for example, introduce an end-to-end benchmark suite for a service, it may take something like 2000 lines. If I split that up into 50 line PRs, it’s 40 PRs. I’ll also need to write a pre-read document explaining the overall design because PR descriptions for each change individually won’t be enough context for a reviewer to understand.

If CI takes 15 minutes and I create PRs one by one, I’ll need to wait a total of 10 hours just for CI, which is impossible, I’ll need to use stacked PRs. If I’m using stacked PRs, that means I do all the work up front, and then try to painstakingly split up my final code into little 50 line chunks that build incrementally. I’m sure someone will say “oh just write incremental small commits to begin with”, but that never seems viable to me. Code and design evolve as I build in ways that would make the review of the first 50 lines I commit on the project pointless since none were retained in the final product. So not only do I have to build this feature, and write 40 PR descriptions, and write an overall meta-PR-description for the change in aggregate, I also need to cut my finished code up into puzzle pieces for reviewers to mentally re-assemble.

Anyways, maybe for maintaining mostly-done features 50 lines is nice, but I’d much rather a new feature or larger change be a handful (1-3) of larger (500-2000 line) PRs possibly accompanied by pair-review/walkthrough discussion.
Guiding Instruction-Based Image Editing via Multimodal Large Language Models
Counterhint:

https://en.wikipedia.org/wiki/Bayesian_statistics
Thanks. That seems useful to keep in jQuery even though its only one line of code. So everyone doesn't have to copy and paste that non-obvious function.
I Built a Blockchain Based App / Game Without Code
Since 2022 I’ve been chipping away at an idea to build an open world game that would be a mix between a trading card game (TCG) a tabletop game and a text based RPG. I was heavily inspired by text based RPGs from the 80s which placed a priority on immersive storytelling, player imagination, choice consequence and exploration.

I decided to use bubble (a no code tool) to create the application because I made the decision early on that I wanted the game to use both Web2 and Web3 technologies. Bubble allowed me to build the application (mostly) without code using a plugin called Web3 & MetaMask. I’m also using ThirdWeb open source smart contracts to create the NFTs. My users (my first users signed up yesterday) can now sign using only their MetaMask / Ethereum details. This is my first Web3 project and I’m really happy with how it’s progressing. I still have a lot of work to do on it, but its come a long way.

Likely, within the next 2-3 weeks, I’m going to implement the ability to concert player generated cards in NFTs on the Ethereum blockchain. I already have the functionality built in, I just haven’t released it yet, because if the cards are NFTs, they could then be traded outside the game world. In itself this is fine, but I need to build a system to check if the current game player is the current card’s owner. Again, not particularly difficult to do, I just want a bit more player feedback before I incorporate this feature.

You can try the game out for free, or watch the video tutorial I posted on the land page of the site.

I just wanted to share this because it could be interesting for other people who are thinking about developing a Web3 app, and don’t want to (or don’t know how to) code it from scratch.
A friend of mine was asked to do "cohérence cardiaque" breathing exercises so I made them something similar [1]. The circle will slowly change hue, before cycling back to blue after about 5 minutes (They were supposed to do this exercise for 5 minutes and I thought having a timer wouldn't be relaxing)

[1] https://souf.dev/cc
> But since they don't want to be in the business of making undesirable vehicles with short lifespans that require expensive maintenance

Then why did they go all in on hydrogen cars?

https://www.hydrogeninsight.com/transport/analysis-it-is-now...
Is taking screenshots of a paused YouTube video illegal?
UFOs and Aliens: As a Scientist I Believe in Both – Here's Where I Draw the Line
I blame Google for popularizing that.

Honestly it was fine enough for a YouTube error, "we couldn't find that video." But then everyone started copying it, including Microsoft who, in Windows 8, updated the blue screen of death to have a "whoopsie poopsie! Your computer has a widdle boo boo!" type message, accented with a :( sad face emoticon.

Which I can guarantee was presented to countless people who lost real work. I'm sure they found that real reassuring.
We are excited to tell you we are launching our free mini guide. This Guide is for using Micropython ESP 32. This contain all the steps and details you will require to become an expert in Micropython. Stop wondering and start coding. This guide will launched But you can grab it for free. Just visit this link-https://khalsalabs.com/how-to-use-micropython-on-esp32-your-...
! Remember we have limited number of guides so dont miss out on this opportunity
The only GCC error that apologizes (that I know of):

https://godbolt.org/z/GMxz5c339

"sorry, unimplemented". It really felt out-of-place when I first encountered it, but I think it messages intent a bit more than a simple "unimplemented" error message. It at least suggests that this is a shortcoming of the current implementation, so it might get implemented in a later version.

Having said that clang also doesn't implement this, and the error message doesn't apologize: "error: cannot compile this lambda conversion to variadic function yet"
>> We may be getting close to the limit for 2D density, but have just barely started moving in the 3rd dimension.

Nah, 3D is already well under way. Micron is stacking 232 layers of memory cells to get high density:
https://www.electronicdesign.com/technologies/embedded/artic...

Flash memory is also increasing the number of bits per cell by essentially going analog. So those two thing are why you can get 2 TB on your keychain.

Then AMD is doing their 3D V-cache, putting a bunch L3 or L4 cache on a die stacked on top of the CPU. The issue there is that both the CPU and cache dissipate too much heat to keep stacking higher much higher.

GPUs are using HBM memory which is also stacked, but again power dissipation is going to limit how far that can go.

Even in low end devices - Raspberry Pi - we've had DRAM stacked on top of the SoC die for many years now.

20 Years ago 3D was seen as a way to higher levels of integration once scaling came to an end, but it's already been happening in more and more places as the end of scaling is near. Innovations will continue to squeak out slowly for some time.
Htmx-AI: Add AI Support to Htmx
Spawning?

BYD was founded in 1995 and its automotive subsidiary 2003 (via aquisition)
https://archive.ph/NBXpm
A WordPress install is a great option, especially if you like the feature set and the interface.

We've got work to do on Pika, but it already has a mobile editor that is quite nice!
My preference is to get the raw details I need. I'd rather see a stack trace than, "We are sorry but there seems to have been some type of error."

However, I can also see a case for the other point of view. In working on large enterprise systems that are being used by users who are not technical, the "we" helps reinforce the idea that things aren't outside of the users locus of control. There is an whole group of people employed by the organization behind the scenes that are part of the way the overall system works. So the "we" emphasizes that the system, the error, the people who write the system, the person trying to use the system, are all part of whatever they are trying to do together.
Compilers can absolutely not deal with the complexity of GPUs.
> Most smart people are actually terrible at having the drive/follow through to take things to completion. They’ll usually want to give up at the first sign of failure or slowness.

You can also hire that really "smart" person from a large co to a startup and watch them be extremely successful in a low-friction environment for crossing the finish line.
Chrome on android

I tried it again now and it's working now
There are not many people on this planet that would consider messing with DNS records less complicated than running their own webserver.
Just my comments are 50 lines, but thanks I'll never stop finding these "functions must be this long and classes must have that many properties, and PR should be so many lines" etc. rules hilarious.

It cheers me up that people so naive exist.

Size is contextual to the thing the PR regards. Maybe it's one char. Maybe it's 500 lines. Maybe it's 10k lines. Screw this.
FWIW we built our entire low code platform drag and drop editor with jquery. This includes editor, all controls (read Ui components) and needlessly to say that even the code that it ends up generating is pure play jquery. But the execs at big corps often question our sales engineering for why not react/angular/ etc.

So I am super glad to read that jquery continues to be so relevant even now. And am glad my cofounder and CTO always continued to back this rather than looked at moving the stack.
This method uses timestamps as version IDs. That's not very reliable when tying rows together, such as primary/foreign-key tables or multiple rows in a single transaction. (There's also a "history_id" column for each history record, but it's not used to tie rows.)

Suppose you've got an "order" table, with a "lineitem" detail table, and a "part" (stock item) master table. What happens if you have, say, two rapid-fire transactions updating the order, with another transaction updating one of the parts sandwiched between the two order updates? Even with the three transactions being processed sequentially, it's possible for all three to wind up being handled in the same clock tick and have the same timestamp. As a result, it's not possible to accurately match the history records for the three tables. An opposite case is when a transaction straddles a clock tick and various updated rows end up with different timestamps.

The author even alludes to the problem. He tackles the transaction-with-multiple-timestamps issue by using NOW() instead of CLOCK_TIMESTAMP() and punts primary/foreign-key issue, in his use-cases, with "... I don’t think it makes sense to have multiple states at a single point in time anyway." Well, experience says it will happen, surprisingly often. If your use-case can't handle the ambiguity then you'll need to do something different.

A more rigorous approach is to include a "version_id" column in each table. If you make it one of the new-fangled UUID7 types then it will be sortable by timestamp. Every table updated in a single transaction should have the same version_id, and every foreign-key reference should also include the foreign version_id. So the "lineitem" table would have "id", "version_id", "order_id", "order_version_id", "part_id", "part_version_id". It is, indeed, a bit more complicated.

EDIT: Normally only the history tables need the foreign-key-version columns; you can code the history-creation triggers to automatically include them. This eliminates most of the additional complexity of using them.

EDIT: More issues with using timestamps: Consider this timeline:

12:34:56.000 Transaction A begins.
12:34:56.001 Transaction B begins, updates a foreign-key table that's needed by trans A, and commits with a timestamp of 12:34:56.001.
12:34:56.002 Transaction A gets around to reading those foreign-key tables, gets the version created at 56.001. Trans A then commits with a timestamp of 12:34:56.000.

So if we look at trans A's history, timestamped at 56.000, we'll wind up matching against the old, stale foreign-key history rows.
sorry but this is not realistic. i looked at the [2] document and it's just a dream.

it's written in the style of "currently EU consumes this much energy, we project this to grow to that much until 2030/2040, we currently produce this much energy from renewables, so we need to multiply the amount of renewables with the correct number".

completely ignores the largest problem with solar/wind, storage. it just says that we should build enough storage. that's easy to say. i don't know of any country on this planet that made it work with purely solar/wind (please just tell me which one does, bonus point for one with a similar climate to europe), so it means we need to literally develop the technology (pls note, we do not even know what that technology will be) and then deploy it... in 6 years. that's completely unreal.

also, they recommend that we let the nuclear power generation go to zero, arguing for example, that nuclear-fuel needs to be imported into europe, but seems to be totally fine with importing in anything else (rare earth minerals etc.)
Looks like decks I was making 8 years ago.
Around 1/3 are native speakers but the number of know Russian is significantly higher as it’s the formal business language the way English is in a lot of the world. Hard to find exact numbers, but according to Wikipedia a 2008 gallop poll had 80% of Ukrainians claim to prefer Russian as the language of business.
Ah yes. I had a similar weird problem once with SSH. I still don't know what's wrong...

https://unix.stackexchange.com/questions/750807/ssh-all-full...
> manage themselves.

Be careful with the language there....

I assume you meant that no-one wants to have to run and administer an RDBMS like Postgres, MSSQL, Oracle, etc - especially not things like backups, restoration, disaster-recovery, figure out storage, ensure high-availability, and maybe even things like user administration and index management: i.e. a DBA's grunt-work - and yes, I agree with you entirely.

...but using the other interpretation of "manage", people might think you meant that people don't want to know how to properly design a normalized schema and apply the business-domain, knowing how to clean-up data appropriately (i.e. the other half of a DBA's job), because we can either shove it all into a cloud vendor's proprietary (and horrendously expensive) non-relational database or data-lake solution (CosmosDB, etc) - or that we can outsource database modelling and implementation of DDL to an LLM - which I'll admit, is quite capable as-is for a first-draft for DB scaffolding and getting better all the time, but ultimately isn't able to take a proactive or autonomous approach to managing an org's databases; I don't want to seem like I'm advocating economic-protectionism of DBAs, but I get the impression LLM-based DBA-bots are being aggressively pitched to smaller-sized orgs that don't know any better, at a time when the technology is still very new, with potentially serious repercussions w.r.t. data-security and compliance (and ChatGPT still gives me T-SQL that uses Oracle functions...).
“We” is a Microsoft-ism they started with Windows 10. Yes, it is horrible, because it puts the user into a minority position against an anonymous “we” that apparently controls the system. It has a belittling and patronizing tone that emphasizes the user being powerless and non-autonomous, who instead has to be taken care of by, and is at the mercy of, the anonymous “we”.
Good luck.

For me, I feel like the difficulty score of performing an effective review is slightly greater than nlogn but less than n*root(n).

300 is a bit beyond my favorite limit of 200.
Cool no worries. Embedded stuff is really cool I've always been curious about that stuff on like, assembly lines, etc. I updated my comment you're replying to with a bunch of details if you're interested.
I personally mostly care about changes per commit. But Bitbucket is terrible about showing commit context to reviewers. And apparently GitHub is not any better.

Showing some context per commit makes all the difference when I decide to do a first commit which fixes all formatting in the file that I’m visiting (for the real/substantive change).
Well, you gas your frogs and I put mine in 2 degrees warmer ponds and we see which one are happier ?
This sounds really interesting, we wrote something similar in our guide
https://khalsalabs.com/how-to-use-micropython-on-esp32-your-...
I'd focus on high level APIs, managed code and JIT, and stuff like that, and everything would be written in Rust plus a scripting language for everything that isn't performance critical.

More realistically, I just wouldn't build an OS either. That would be a nightmarishly large project!
Stephenson is an ideas guy. The books are just loose vehicles for all his ideas and things like plot, characters and (gasp) endings are not center stage.

There are so many ideas in his books, mountain upon mountain that it’s no wonder some of them ended up being real products in following decades. They are great fuel for the technical imagination.
As a factorio player, by the time I'm upgrading steel production I'm wondering whether I even care about pollution. The #1 benefit of electric smelters is that I can beaconize and fill it with prod mods, to get 140% the output at only the minor cost of a fuckton of pollution and electricity use.

In fact, the real score for reducing pollution here is efficiency mods - electric smelters plus steam engines apparently produce the exact same amount of pollution as just using lv2 smelters directly so you'll need those efficiency mods anyway (unless you've already switched to solar+nuclear), but you're better off putting your initial efficiency mods into your miners and oil.

Solar and nuclear are both a pain in the ass to switch to, though - nuclear takes stacks and stacks of copper to build and is a PITA to set up centrifuges and pipe down hydrochloric acid to uranium, and solar needs bots to place with any speed. It's just easy to slap down steam engines fed by either coal or solid fuel. So if you prioritize player-time over strict efficiency then the quickest way of reducing pollution is almost certainly efficiency mods into pre-existing buildings (i.e. miners and oil), and building electric furnaces will in-practice force you to build more power plants anyway. At least, in my experience. But maybe that's due to the prod-mods and beacons.
'graph-over-lines' means that instead of sending a series of rows over a line you send a series of graphs (more or less JSON documents) over the lines. For instance you might send a record that contains both basic data about a customer (name, address) and a list of orders the customer has made and one of the operations in a box can work on the whole thing as a unit.

Imagine each box has something like "jq" inside of it.

In the prototype I made I used the same RDF tools to define the overall processing graph as well as the little graphs that go over the lines. The folks who make Jena told me I was breaking the warrantee on their rules engine but I found I was able to use production rules to control the process (control plane) that sets up and tears down reactive streams and other resources (like a key-value store) that are part of the data plane.
>Tesla in Sparks NV

Ironically, you go to the website and there's a fake image of the factory, based on previous promises.

I can't speak to the others, but I'm sure there's some positive outliers!
Arstechinca linked (https://retractionwatch.com/wp-content/uploads/2024/02/23.11...) the authors rebuttal but didn't elaborate beyond it. I did read it and i am inclined to believe it really is the press of being used in a Supreme Court case rather than the papers' methods. Can someone with more expertise tell me if the rebuttal is bogus?
How India electrified 45% of its railway network in just five years
> Despite the name, heat pumps do not generate heat – they move heat from one place to another.

Literally nothing about "pump" implies it generates heat. That being said...

> In colder climates, an electric heat strip can be added to the indoor fan coil for additional capabilities.

That would just be... electric heating, but with more steps? I mean, at that point you just have a heat pump _and_ electric heating; a hybrid system. It's better, sure, but it's not really just a heat pump anymore.
I'm talking about the authors' feelings (who are purportedly feeling sorry), not the users'.

Do I feel sorry that my user didn't have access to some file? Not really? Maybe it was the right thing? If they were malicious I would feel glad. If not, I have no idea what to feel, it depends on the context.
> “Tell me about you. If your life was a book, give me the chapter titles from your birth till now.”

Utterly ridiculous.
> “Tell me about you. If your life was a book, give me the chapter titles from your birth till now.” Once you’ve gotten the overview, dive into each “chapter” and plumb the depths for their real stories. Go back to their childhood! I learn a lot about their grit and commitment to excellence from their basketball obsession or maybe their experience caring for a dying parent.

I don't think I'd be comfortable sharing this much personal information with a stranger on a job interview.

Additionally, it sounds more like a psychological evaluation, than evaluation of a person's potential at a job. I understand that maybe that's exactly the writer's intention, but I'd personally be wary of companies which ask questions like this.
> I anyways hear about how the entire semiconductor industry is completely dependent on TSMC, and nothing can operate without them, thus their geopolitical importance.

This is quite hyperbolic. While losing TSMC will have a massive global impact, there are alternatives in many different market segments (e.g. Intel for CPUs and GPUs for computing, be it personal or datacenter), STMicro/NXP/Infineon/Bosch for industrial applications, etc. They may not be as advanced, or as good, or as cheap, or in enough quantities, but it's flat out false to say that TSMC is the entire semiconductor industry. Just a major portion of the bleeding edge.
I wonder if CA has noticed that electricity prices in the investor-owned-utility regions are so out of whack that a heat pump with a COP of 4 is no longer economical compared with a reasonably efficient gas-fired appliance.

The solution isn’t more regulation or incentives, IMO. It’s to fix the utterly broken electricity market.

(This is a great example, BTW, of how public-private partnerships can be dramatically worse than full public control. Palo Alto, Santa Clara, and Los Angeles are doing quite a bit better.)
I use both, so here is what I'm doing and why I find value in staged Docker builds.

I am running a (relatively new) NX monorepo, which deploys ~6 microservices to various K8s environments using Skaffold. All services are Typescript, Node 20.11, with pnpm as a package manager.

I have separate build files for certain common base images, which mostly are Node-($v)-alpine with a few CI/common dependencies installed. I use Skaffold to compose the image builds.

When I Dockerize each service, I need to install dependencies for that specific service only, and in that case the install/build specification must be the same as the runtime specification. Rather than creating separate build image files and composing them with Skaffold, I simply use a build stage to install the microservice dependencies (using one of the base images with NX and PNPM), then copy them to the final image (which does not have those deps). This is a pretty common pattern, and I like working with it. The advantages to build stages are readability and simplicity (no extra orchestration needed), and the whole setup makes it very difficult to make mistakes.
The US has multiple fabs and has multiple more being built right now. This is just the propaganda of the elite class who sold off our industrial base and you’re repeating it verbatim
Security Researcher Hacked Apple's Back End, Scammed $2.5M
Mini Ask HN: How do you get your podcast on every platform? I'd like to start one soon.