MurphyA/hacker-news huggingface dataset:
Dyan – A Visual REST API Builder You Can Self-Host
by 0018akhil | 2025-07-14 14:13:47+00:00
Hey HN! I’ve been working on Dyan, a self-hosted visual builder for REST APIs. Just posted a short demo video that shows how it works:

Build endpoints visually Write logic in JavaScript Test live in-browser Serve APIs from your own backend – no codegen, no magic

Demo video: https://youtu.be/SBEPacMgpvk GitHub: https://github.com/dyan-dev/dyan Discord: https://discord.gg/ZQ4pKRA7

Would love feedback and contributions! The goal is to make backend API creation feel like frontend development.
by t312227 | 2025-07-14 14:13:55+00:00
hello,

as always: imho. (!)

while i personally really love SQLite for a lot of use-cases, i wouldn't recommend / use it "in serious production" for a django-application which does more than a simple "hello world".

why!? concurrency ... especially if your application attracts user or you just want to scale your deployment horizontally etc. ;))

so in my opinion:

* why not use sqlite for development and functionality testing

* postgresql or mariadb/mysql for (serious) production-instances :)

just my 0.02€
by jermaustin1 | 2025-07-14 14:14:00+00:00
Range isn't a unit though, so it isn't actually telling you anything technical. Since range is a distance unit, it would still be "miles per hour" or "kilometers per hour" or "meters per second" or anything to let you know how long it will take to top up to full range.

Could be "%/minute" maybe, but that is less useful if you know you need to go 45 miles, you would want to know how many hours (or fraction there of) that would take.
by SomeHacker44 | 2025-07-14 14:14:14+00:00
I just got an HP Zbook Ultra G1a with 128G. I added a 4T 990 Pro SSD and loaded HP OEM Ubuntu 24.04, then kubuntu-desktop. I added AMDGPU software for OpenCL. Except for no dGPU, it seems like a near perfect laptop. Great OLED touch screen, decent keyboard, 4 USB ports plus HDMI.

I had to remap the home/end/ins keys which were oddly placed. It has that useless and totally annoying CoPilot key that cannot be remapped either since touching it sends multiple keystrokes both down and up.
by tempay | 2025-07-14 14:14:15+00:00
I've had success with a boring event loop which looks at the state of the system and does all the background work. It's simple to implement and much easier to manage failing tasks that need manual intervention to stop failing. It also makes it easy to implement batching of work as you always know everything that needs to be done in each loop.

I also have multiple celery applications, but I wouldn't recommend it for smaller or simplier apps.
by voidUpdate | 2025-07-14 14:14:19+00:00
Refrigeration is hard but I don't think impossible at high ambient temperatures. What immediately comes to mind is compressing gas (which will increase its temperature), letting it equalise with the ambient temperature, then decompressing it, which will lower the temperature (from Charles' Law). No doubt there are many other systems that could be used though.

I'm not an expert on refrigeration at all, but if you're interested, it might be worth checking out the youtube channel Hyperspace Pirate, who does a lot of diy refrigeration systems, and I believe has managed to make liquid nitrogen in his garage using a home made refrigeration system. He also goes very in-depth into the technical details
by IAmBroom | 2025-07-14 14:14:46+00:00
You clearly don't work in the train industry.

NO old surplus controllers are being reused in the industry.

The overriding mandate in EVERY train design system is "fail to safe". Trains are unique in that they have a reliably safe fail mode - brake, as fast as you can, so fast that the wheels heat up and weld to the tracks. Another train could come along and hit them, but that's another incident, unrelated to the current danger.

Cars doing that can get rear-ended as a result. Planes would de-elevate rather dramatically. Bicycles would throw their riders off.

The industry (and specifically, the light-rail aka people mover train industry) is so safety-conscious that railroads write additional safety regulations to be added to the FRA rulebook.
by physicsguy | 2025-07-14 14:14:54+00:00
Fortunately the framework is pretty configurable on all this sort of stuff! Just to hit pagination again since it's the example I've used in other comments, in DRF you implement a custom pagination class:

https://www.django-rest-framework.org/api-guide/pagination/#...

That's the same as for most other configurable things. And ultimately if you want to override the behaviour for some specific endpoint then you can still easily do that by just implementing your own method for it.

After working in Go now for several years, what I've found is that generally people just don't some things in their first pass because it's too much work and makes the PRs too large, and then they retrofit it afterwards. Which meant that the APIs were less consistent than the ones I worked on in Django.
by TeMPOraL | 2025-07-14 14:15:10+00:00
Yup. It's quite obvious that such unfettered, true capitalism quickly decays to the good ol' rule of warlords.

There should be a name for this kind of fallacy, where you look at a snapshot of a dynamic system (or worse, at initial conditions), and reason from them as if they were fixed - where even mentally simulating that system a few time steps into the future makes immediately apparent that the conditions mutate and results are vastly different than expected.
by simondotau | 2025-07-14 14:15:13+00:00
I care about the web remaining a truly open platform based on standards rather than the whims of a singular software project. What matters is browser diversity, even if it's at the expense of browser choice. Because without healthy browser diversity, the web might as well be renamed the Chrome Protocol and you lose browser choice anyway.

Apple, with their iOS browser lock-in, is the greatest gift ever to the open web.
by TwoFerMaggie | 2025-07-14 14:15:18+00:00
> obviously treating their wealth like some sort of highscore

yep. see

> Caleb will later recall, in an interview with D Magazine, asking his dad why he works so hard.

> “It’s a game,” Randy explains to his son.

> “How do you know who wins?” the boy asks.

> “Whoever dies with the most money.” [1]

not even exaggerating

[1] https://www.theatlantic.com/magazine/archive/2021/11/alden-g...
by JonChesterfield | 2025-07-14 14:15:31+00:00
You can do somewhat better than that with clang.

attribute((naked)) on a function which has a single asm block as the implementation gives you control over argument passing and changing the stack pointer.

attribute((preserve_none)) on the same function spills most live registers to the stack in the caller. The coroutine switch doesn't need to do as many push/pop which makes it a bit more readable, but mainly this means you don't spill dead registers. That's the big thing you need compiler support for.

I believe the x64 redzone is a non-issue here as you've called the switch function, as opposed to tried to call from within inline asm (which does need to be careful about that). The magic globals are a problem though (floating point control thing, maybe signal mask, errno et al) so I guess don't use the magic globals from within fibres.

"thread_local" doesn't map very sensibly onto fibres. There have been compiler bugs in that area too. Storing some information at the start of the fibre stack works fine though, you just don't get syntactic support for allocating / dereferencing from it.
Ask HN: Decent LLM agent plugin for Jetbrains?
by aristofun | 2025-07-14 14:15:31+00:00
Cursor rocks as LLM agent, but sucks as IDE. To the point that its rough edges and mediocre UX sometimes outweigh or severely cap benefits that LLMs bring to the table.

Jetbrains family of IDEs is on the opposite side of the spectrum. For example, its copilot plugin half the time can't even nail the right line auto-complete in a complex codebase (java, js). Jetbrains own stuff is not even worth mentioning yet.

I wonder how you, seasoned jetbrains oriented developers working on medium to large codebases, solve this conundrum?

Any decent plugins that come close to Cursor?
by hshdhdhj4444 | 2025-07-14 14:15:34+00:00
Yeah, because EU software companies were totally destroying the American software industry before the last decade…

The EU’s relatively shrinking GDP has much more to do with their populations growing older and their population size stabilizing, and the relatively tiny amount of migration, than EU digital laws, most of which have been replicated throughout the world.

Additionally, the EU has always had weak financial markets, and the only strong financial center, the city of London, quit the EU and both the EU and the city of London have suffered because of that, with a whole bunch of LSE listed companies moving to New York (including possibly Shell, which would be devastating for London as a financial center).
by potato3732842 | 2025-07-14 14:16:17+00:00
>The rentier class has tools to prevent such coordinated voting. They divide us with scare tactics on fringe issues, religion, encourage over identifying with things/movements/celebrities, etc.

The "rentier class" in question here is a bunch of slumlords who own a few apartments as part of an LLC they have with their buddies and boomers who have retired to their vacation home and are AirBnBing their former primary residence, not Blackrock and friends, big money only owns a small fraction of property. The average landlord is some other middle or upper middle class schmuck.
by torginus | 2025-07-14 14:16:38+00:00
It's unfixable in the sense that the problem isn't with how fast the compiler is, it's that you give it a ton of extra work. You could try to convince the library devs to use more dyn, but it'd require a culture shift. I don't think the compiler going behind the users back and second guessing whether to use static dispatch or inlining is something a low-level language should do. Java, sure.

In fact I define a systems language as something that allows the dev to describe intended machine behavior more conveniently, as opposed to a higher-level language, where the user describes desired behavior and the compiler figures out the rest.
by VBprogrammer | 2025-07-14 14:17:17+00:00
Not sure if I've slipped a 0 here but 500w taken over the year, at say a 10% capacity factor, is still over 3500 miles of range per year. A fair bit short of the average mileage (in the UK somewhere around 10k) but still more significant than I expected. Of course 500w is a lot of solar for a car and 4 miles / kWh is also quite efficient.
by msgodel | 2025-07-14 14:17:33+00:00
People don't seem to talk about Watt hours per mile much but when you're generating the power yourself it really matters. Tesla's model 3 is AFAIK one of the more efficient EVs and gets ~260 Watt hours per mile. With solar a good rule of thumb is to take the nominal rating for the panels you can point south and multiply it by 4 to get the approximate daily energy you'll generate in watt hours. If you could optimally park a car and let's assume you could cover it in a couple 100 Watt panels that would give you about four extra miles of daily range.

Maybe it's interesting if you live in a city and drive once a week.
by Windeycastle | 2025-07-14 14:17:55+00:00
You can actually see the whole implementation of `@pool` inside the standard library (link: https://github.com/c3lang/c3c/blob/f082cac762939d9b43f7f7301...) if you're interested. You'll have to follow a few function calls, but the whole implementation is defined within the standard library and thus easily modified for your needs.

I believe that the memory inside the pool is indeed contiguous, and you can ask for a custom initial capacity. The default capacity depends on `env::MEMORY_ENV` at compile-time, but for normal use it's 256kB (256 * 1024, in bytes).

About the explicit allocator passing, that's also a theme throughout the C3 standard library. Functions that need to allocate some memory will take in an `Allocator` as first argument. For those kind of functions there is always a `t<function>` variant which does not take in an allocator but calls the regular function with the temporary allocator. It's a nice naming convention used which really helps together with `@pool`. Examples are `String format(Allocator allocator, String fmt, args...)` and `String tformat(String fmt, args...)`.

I hope that clears up some "concerns", and maybe you'll also find some joy in programming in C3 =)
by npteljes | 2025-07-14 14:18:13+00:00
I think this is actually a good counterpoint to something that OP missed. It's not that it's not great that a Komatsu can also do it. Both are great. But we need to have the appropriate expectations, to end up with the feeling of appreciation. In the AI case, the art looks like "human art", and often it's also presented as such. Then, learning that actually AI did it is akin to betrayal. But actually people like to appreciate a whole lot of artful things that people didn't, or only partially "did": electronic music, the sounds and visuals of nature, emergent behavior of things like the game of life, visual output of algorithms, and so on.
by jimbokun | 2025-07-14 14:18:18+00:00
This is very important and requires some foresight when the real data is personally identifiable information, private health information, etc.

It's possible, but requires designing a safe way to run pre-production code that touches production data. Which in practice means you better be sure you're only doing reads, not writes, and running your code in the production environment with all the same controls as your production code.
by noosphr | 2025-07-14 14:18:47+00:00
We saw it happen already with Deekseek.

SV has already thrown it down the memory hole but for a good three months, until everyone else copied their paper, the SOTA reasoning model available to the public was open source, Communist[0] and came out of a nearly defunct Chinese hedge fund.

[0] If you don't believe the communist part just ask it about the American economy.
by EcommerceFlow | 2025-07-14 14:18:53+00:00
Conservative ideology views government research as inefficient compared to private sector research, something I generally agree with. The evidence for this in regards to space is very clear IMO. SpaceX, with 8,000 employees and a fraction of government space budgets, now controls 95%+ of all orbit launches worldwide. They outcompete entire continents.

There is no risk structure within government research, and NASA's results of the past few decades shows this. No one paid the price for the SLS being so overpriced, delayed, etc.
by barnas2 | 2025-07-14 14:19:14+00:00
The Prius Prime solar panel roof I think can net 3-6 miles a day under ideal conditions (which we're probably close to here in Arizona). I think that's a little more than people would expect, but still only applicable in niche conditions (tiny daily commute, or a longer non-daily commute). I think the math works out to ~4-6 years to break even for the cost of adding the solar roof assuming $0.15 per kwh, which isn't terrible.

If solar tech gets more efficient or cheaper, I think it starts becoming a much more attractive option in some areas. If you get into the 10+ miles per day range, that would cover a lot of peoples commutes in certain areas.
by hnuser123456 | 2025-07-14 14:19:39+00:00
Black holes' radius is linear in proportional to their mass, they are not constant density, larger ones are less dense. Therefore, when a 5 solar mass BH merges with another 5 solar mass, the radius doubles, surface area quadruples, and volume goes up 8x. If they "never actually merge", SMBHs would not exist.
by jsnell | 2025-07-14 14:19:39+00:00
How about you let the browser makers decide whether they need to have their own engine to compete?

The fact is that Apple makes tens of billions in pure profit from Safari, and by closing off one of the principal ways of browser differentiation have ensured that they don't even need to invest in Safari. They can just lean back, safe in the knowledge that there is no risk of disruption.

(Like, the main selling point of Firefox on Android is support for browser extensions, and they're only able to do that thanks to having their own browser engine rather than using the platform-provided one.)

You never know where exactly the next steps in browser innovation are going to come from, but it is virtually guaranteed that they won't be just in the UI chrome. If you're e.g. going to make the best agentic AI browser in the world, it's not going to happen by reskinning Safari, and as a corollary Apple doesn't need to worry about competing with such a browser.
by OskarS | 2025-07-14 14:20:30+00:00
First off all, these fonts are not "free" as in "free software", they are owned by Microsoft and to use them you have to agree to a Microsoft EULA (technically, though this isn't enforced). They're "free as in beer", not "free as in freedom" (this is my understanding at least, welcome to be corrected on this point).

Second: the objection isn't necessarily just that Verdana is free, it's that it's not a very good-looking font. Certainly in most people's opinion, it's nothing like as cool as Futura. IKEA, a massive multi-national company and an iconic brand, can and should do better. They say they did this to "align print and web", presumably meaning they wanted to use a font that was guaranteed to work in all browsers, but that's such a shame for print, really sacrificing great typography on the altar of browser support.

Third: font design is an art and a craft just like graphic design, photography, furniture design, script-writing, music production, whatever. There are certainly people who think literally everything should be free (as in "every Hollywood release should be Creative Commons"), but that's a rather extreme position. If you think it's a good thing that IKEA pays graphic designers to design their catalog, and furniture designers to design their furniture, you should think it's a good thing that IKEA pays typographers for their typeface design.

There are certainly issues with licensing in the world of typeface design (the emerging Monotype monopoly is really disturbing, for instance), but expecting giant companies to pay for good typography instead of using bad free typography is not some "anti-free software" stance.
by WesleyLivesay | 2025-07-14 14:20:37+00:00
I was going to mention Warp here as well. It is fantastic when it comes to almost anything in the terminal. It has caused me to use the terminal a lot more on all of my computers because I don't have to spend a bunch of time poking around on Google to find the command to run.

I have used it for ffmpeg and then a lot of other slightly more complex commands. A recent one from the other day was gathering up all of the .epub documents in a directory tree, renaming them to the name of the directory they were in, and then placing them all in one single directory. That would have been a whole project for me, and Warp gave me the command with just that description. Any LLM interface would have done the same, but Warp just let me hit "Enter" and run it, no need to copy and paste.
by parpfish | 2025-07-14 14:20:46+00:00
With all these mega-offers going out, I object when people saying that they’re paying for “talent”.

These AI folks are good, but not orders of magnitude better than engineers and researchers already working in tech or academia. Lots of folks are capable of building an AI system, the reason they haven’t is that they haven’t been in a situation where they have the time/money/freedom to do it.

These mega offers aren’t about “talent”, they are about “experience”
by gjsman-1000 | 2025-07-14 14:20:47+00:00
That's not necessarily true; as the EU had many major players, especially historically: SUSE, Ericsson, Nokia, SAP; all were or are being shredded by US competition despite a domestically entrenched position. Even in 2008, when both economies did badly, the EU and the US had nearly identical GDP figures.

The EU might point to ASML as a point of pride; but that assumes an ASML competitor wouldn't get tens of billions to compete the moment ASML is inconvenient.
by jerf | 2025-07-14 14:20:51+00:00
There have been solar car competitions that colleges have been doing for decades. Here's a YouTube compilation of one that ran last week: https://www.youtube.com/watch?v=ZBin-oXBJzM

I think it can help calibrate people's intuitions about what you can expect out a pure-solar car.

You also need to remember that inside those shells is basically nothing but a driver. No AC, no seats for people beyond the bare minimum. And that's broad daylight. So you need to look at them doing 20-30mph and bear in mind that it's still not comparable to a street-legal sedan of a similar size doing 20-30mph... those cars are essentially as close to "a mobile cardboard box" as the competitors can make them.

You might be able to build something that people would agree is "a bus" that moves with a couple of people on board, but it probably will stop moving once it enters shadow. Anything that we'd call "a bus" is going to need a lot more physical material per unit solar input than those cars have. I'm not sure that even "moves with a couple of people on board" will necessarily end up being faster than those couple of people walking, either. It's effectively impossible to power a vehicle with its own solar footprint in real time. It also ends up difficult to use them to power batteries because having to move the additional mass of the batteries eats up the advantages of being able to gather power for larger periods of time. It's possible, because of course you can hook a car up to solar panels and eventually charge it, but you don't get very many miles-per-day out of it for what fits on the car itself alone if you work the math.
by work5705438 | 2025-07-14 14:21:01+00:00
Location: EU Remote Remote: Yes Willing to relocate: No (remote only) Technologies: Linux servers, Software development in Crystal & Python Language: English Resume: On request Email: hnwork.4w9bg [at] aleeas [period] com (anti-spam forwarding address)

Engineer with 8 years of experience. Primary focus is Linux server stuff. Also good at software development, which I've used to build APIs, tools, bots, and automations. Interested in full-time remote within the EU. I prefer working in distributed fully-remote teams. Quality over quantity, simple over easy.
by simondotau | 2025-07-14 14:21:18+00:00
The open web requires browser diversity in order to remain healthy, far more than it needs individuals to have browser choice. The former is important for the health of open standards; the latter only matters if you believe the web is whatever Google implements in Chrome.

Without healthy browser diversity, the web might as well be renamed the Chrome Protocol and the "browser choice" you care about so much is gone.
by bauerb1 | 2025-07-14 14:21:25+00:00
are you not grounded in the same reality as I am? outlook for Amazon looks incredible between, AI, AWS, Adverts, shopping. Amazon has been "reducing corporate workforce" in fulfillment centers for years, why would anyone think that they would not apply the same operating model to knowledge work? AI does not need to be particularly good to replace what many office workers, and junior IT staff do everyday. I think what scares people about Amazon is that they are actually finding success replacing human workers with machines.