Hacker Newsnew | past | comments | ask | show | jobs | submit | lpcvoid's commentslogin

Lazarus is crazy good, as is Delphi, if you can afford it. wxWidgets is also nice, without the licensing weirdness that is Qt.

Lazarus is probably the easiest way to make a lean and fast native Windows app without paying for tooling.

wxWidgets is just a wrapper around existing UI libraries; win32 on Windows, and Gtk/Qt on *nix.

Yes, as is the VCL that Delphi ships, along with the Lazarus component library which bases on Qt or GTK on Linux, and Win32 on Windows. It's the same sort of layer.

It doesn't matter - what Microslop says and what they do are traditionally very distinct things.

But in case you want to read yourself: https://blogs.windows.com/windows-insider/2026/03/20/our-com...


"File explorer launch experience" -hard to tell if this is satire…

I did mean these, very recent promises (vaporware at this moment), without satire. https://blogs.windows.com/windows-insider/2026/03/20/our-com...

Bitcoin won? I don't think it did. Main use is still scams, circumventing sanctions, and grifting. My SEPA instant money transfer does everything bitcoin promised without the trash, and bad people surrounding bitcoin.

Delphi is still the absolute fastest way to create win32 gui applications, and anybody who disagrees has never used it.

Lazarus is a pretty sweet solution on Linux (or Codetyphoon, if you want more out of the box components).


I think C#'s WinForms is just as productive as Delphi's VCL. Unfortunately Microsoft abandoned it. Though I only used older versions of Delphi, so I don't know if recent improvements made it pull ahead.

However both have limitations in more complex areas, such as rich text (html), data binding and targeting mobile and desktop with a mostly shared code-base.


WinForms isn't Win32, and it's still supported.

Like MFC, it is a thin layer over Win32.

What's the relationship between Delphi and Lazarus?

Delphi is commercial: https://www.embarcadero.com/products/delphi/product-editions

Lazarus is free with no artificial limitations, for FreePascal: https://www.lazarus-ide.org/


It's a Delphi-compatible IDE: https://www.lazarus-ide.org/

Pascal

I disagree, because C++ Builder also exists. :)

Although .NET also follows along, pity that it took so many years for Microsoft to actually care about native compilation beyond NGEN.


Did .NET manage to get rid of unsolicited tracing garbage collection?

Depends on how you write program, there are enough language features for low level coding and value types.

Additionally lets not pretend Delphi doesn't have issues with memory and resources tracking.

Even the whole reference counting support only applies to COM types, or when targeting Apple platforms.

Which have had various changes to their behaviour across Delphi version.

Other than that it is as it has always been since Turbo Pascal days.


Is it? What about Autohotkey, or Visual Studio?

Two very different solutions. Autohotkey is a scripting language for specific tasks, while Delphi is unbounded in this sense. And Visual Studio has no RAD concept.

Visual Studio has WinForms, which is pretty RAD.

And I think preferable to the XML split of code and GUI that is web like and how Microsoft’s other frameworks work.

It is absolutely preferable in that sense. The web-esq interface approach is far harder than it needs to be for small applications with basic interfaces.

The kind of people who voted for trump would never admit they made a mistake. They double down on stupidity instead.

That isn't true. There's actually a large number of people, probably in the millions, but probably not a majority of those who voted for him, who no longer support him in any way. And of the ones who remain, yes: they're pretty dense to still support him now. There are some lunatics who genuinely believe that the US has the right to dominate and exploit all other nations, but the majority of them simply believe the lies he's telling. I've already seen that when they are confronted with the facts about, say, Gaza, some of them can change their minds. It would be a mistake to turn them away instead of treating them like potential allies. There really is something more important at stake.

And yet others who are able to disagree with some (or even many) of his decisions while also continuing to believe he was the better of the 2 options. Most people I know hate politics or anything to do with it for this very reason. We can argue about political philosophy all day long but eventually you go vote and often have to choose between a wildcard and the walking dead.

/r/LeopardsAteMyFace contains many counterexamples.

For better or worse, Donald Trump has absolutely earned his place in the history books. There will be so many lessons from this era, though I think it is very much open to debate what form those lessons will take and which ones will be the most consequential.

To be honest, much of the lessons of this were something that we could've already looked back during all the wars humanity has fought all throughout history to learn from.

We are in here, because we didn't learn from our history. You feel this way because this is recent and its hitting everything all at once but I do feel like these were all very avoidable lessons. Being honest, I don't feel like we learnt anything new aside from seeing how the world is still trying to clutch itself back to stability even after all the instability Donald Trump is causing within the world (for better or for worse) and seeing how the world reacts to all of this live.

But I am not quite sure if future will learn from these lessons given that its feeling to me like history doesn't repeat itself but it often rhymes and we somehow don't really learn from the history to be honest.


Great timing that the US recently sold its strategic helium supply.

BLM [(Bureau of Land Management)] completes $460M sale of federal helium reserve to private company | 12/12/2024 | https://www.eenews.net/articles/blm-completes-460m-sale-of-f...

Messer Completes Acquisition of Federal Helium System from BLM | June 27, 2024 | https://www.messer-us.com/press-releases/messer-completes-ac...


BLM was required (to sell it) by Congress in the Helium Stewardship Act of 2013, as the alternative was to not offer any H to the market due to the authorization to sell expiring. Sponsored by a Republican and passed basically unanimously with the proceeds used to pay of the debt (back when we cared about that)

The idea of selling things like our strategic helium supply for $460M to "pay off the debt" would be like me selling bricks from the foundation of my house for a penny to "pay off my mortgage".

$460M was for what was left after the large majority had already been sold.

In the best case, "strategic reserves" are the government speculating on commodity prices. They use tax dollars to buy a commodity -- raising the price on everyone so they can hoard it -- and then more tax dollars to pay for a storage facility, and if they're lucky the price goes up by enough to pay for the storage and the time value of money by they time they sell it again. That frequently doesn't happen.

In the common case it's the government subsidizing corporations -- including foreign ones -- by using tax dollars (at government contractor rates) to operate a storage facility at a loss so the industry doesn't have to do it themselves. Then, when they go to unload it, they generally unload enough to lower the market price on purpose, practically guaranteeing that the taxpayer is getting a below-market return. This unloading also has a statistical correlation with the election cycle (see also "strategic petroleum reserve") which is extra stupid. And the expectation that it will happen deters others who aren't paying government contractor rates from storing the commodity, so from a "strategic" perspective you don't get anywhere near as much of a buffer as you're paying for.

If the tech industry wants a reserve of helium then they should buy some land, install some tanks and fill them with helium in years when there isn't a shortfall.


That strategic helium reserve was from WWI, IIRC.

I've heard it claimed that it was a massive oversight to sell that much helium at such a low price. Helium is a non-renewable resource. When it escapes, it just floats off into space.

And it's an absolutely critical resource for MRIs, advanced science and research, and industry. And we are selling it at a price that's attractive as an amusement for children.


> That strategic helium reserve was from WWI, IIRC.

That may have been when it opened but the current war machine has little use for dirigibles.

> I've heard it claimed that it was a massive oversight to sell that much helium at such a low price. Helium is a non-renewable resource. When it escapes, it just floats off into space.

Helium is produced within the earth by radioactive decay. It then gets trapped in the same pockets as natural gas, which is why it gets extracted along with the natural gas. But most natural gas doesn't undergo helium extraction. If we wanted more, we could do helium extraction on more of the natural gas. Not doing it releases significantly more into the atmosphere than was present in the reserve. But doing it is expensive so we only do it more if there is demand for more helium.

The first mistake was the government hoarding that much of it to begin with. It doesn't make a lot of sense to pay a high cost for extraction in an earlier year and then pay a high cost for storage for an indefinite period of time if you're already discarding (i.e. not separating) most of it and could just extract more once you actually want it.

The second mistake was unloading such a massive amount over a relatively short period of time, because then you crash the short-term price and cause people to waste the thing you spent a lot of money to extract.


> In the best case, "strategic reserves" are the government speculating on commodity prices.

A horrendously misinformed take. Strategic reserves have broadly one of two primary purposes. First, providing the government with the ability to stabilize market prices in the short term when volatility strikes. Second, providing a supply of an essential resource to an essential industry in the event that external supplies are unexpectedly cut off temporarily.

Supply shocks are bad. The economy grinding to a halt at the whim of a geopolitical adversary or natural disaster is also bad. Ensuring a stable market is one of the most fundamental purposes of having a government at all.


> First, providing the government with the ability to stabilize market prices in the short term when volatility strikes.

Which is the thing they don't really even do, because their existence is not a secret, but then knowing of their existence discourages anyone else from setting up a reserve because they expect the government to unload right when they'd be trying to recover the costs of operating it. Then the market has less slack in it and the government has to tap into the reserve more frequently and in larger amounts, causing the reserve to be much more easily exhausted than you would intuitively expect because the whole world is now expecting you to bail them out when the time comes.

Worse, it encourages companies to rely on its existence instead of making contingencies, and then if it does get exhausted or you get something that looks more like unexpectedly high demand than unexpectedly low supply, you now have an inadequate reserve and a market full of people operating under the impression they would never have to deal with that.

> Second, providing a supply of an essential resource to an essential industry in the event that external supplies are unexpectedly cut off temporarily.

This isn't a different thing from the first thing. There being less supply is what causes the price to go up. But encouraging the market to take all the slack out causes there to be less supply.

The basic problem is this: If the government keeps a moderate reserve, it's going to cause other people to not do that, and then it's going to run out and Cause Problems. If the government keeps an enormous reserve, they're going to cause the price to be higher even when nothing is wrong and burn through a disproportionate amount of tax money doing it.

> Supply shocks are bad.

The correct answer to this is to diversify supply and be ready with substitutes, not government hoarding.


People aren't as stupid as you appear to think. Yes, there are second (and third, forth, ...) order effects. Typically these sorts of systems will settle into an equilibrium. A reasonably competent government agency will account for that where necessary.

It's strange. You object to the government here yet expect private industry to fill the same gap. Why do you believe private industry would navigate these issues better than a government agency would? Given the difference in incentives it doesn't make any sense.

It's a good thing for the regulator to be able to step in at will rather than blindly hope that things go well. Industry is notoriously bad at making short term sacrifices for long term risk management. Would you rather the government force them to maintain their own reserves via regulation?

> This isn't a different thing from the first thing. There being less supply is what causes the price to go up.

No, the two are not at all the same. Rapid price fluctuations are one issue. Essential resources are an entirely separate problem. Volatility and starving to death both involve price movement but are otherwise very different things.

> encouraging the market to take all the slack out causes there to be less supply.

So if the reserve is run by the government it's removing slack and reducing supply, but when run by private industry ... ?

No amount of regular slack is ever going to be able to compensate for a tail risk that blocks the import of an essential good. Take oil for example. No company is ever going to voluntarily warehouse enough to keep the entire US economy going for any significant amount of time. It's a crazy small tail risk and very expensive to counterbalance.

Food is similar. No grocery store or wholesaler or whoever else is going to voluntarily stockpile enough to keep people from starving in the event of widespread crop failure or similarly devastating adverse environmental event.

> If the government keeps an enormous reserve, they're going to cause the price to be higher even when nothing is wrong and burn through a disproportionate amount of tax money doing it.

Why would that be? Filling and emptying shifts demand but doesn't create additional. Anyway you seem to be arguing that private industry should do this for themselves. So whatever the effects are they will be present either way.

Why do you expect disproportionate expenditures? The cost is that of warehousing. The benefit is the entire economy running more smoothly which presumably increases taxes by quite a lot if money is all you're concerned with. It also just generally improves everyone's quality of life which I would hope is the entire purpose for the government to exist when you get down to it.


> You object to the government here yet expect private industry to fill the same gap. Why do you believe private industry would navigate these issues better than a government agency would? Given the difference in incentives it doesn't make any sense.

Profit-seeking actors have the direct incentive to balance risks and rewards. It's popular to hate on speculators, but "build a storage facility so you can buy a commodity when it's cheap and sell whenever the price is high" as a means to make money is actually pretty legitimate. And then they have the right incentives to manage costs and keep realistic inventory levels because they're spending their own money instead of someone else's. Whereas the government's incentive is to give lucrative contracts to cronies or hoard a ridiculous amount of the commodity because they're spending someone else's money and get blamed if there's not enough but not if there's too much.

There is also an advantage in diversity. Government tends to monoculture. How much does the price have to go up before the government starts unloading inventory? How much does the answer depend on politics? Things are better when instead of one essentially monopolist with a massive tank, you have a thousand independent entities with small ones, because then you get a smoother curve with less relationship to the election cycle. And you get different people trying to solve the problem in different ways. Speculators build tanks, entrepreneurs develop recycling systems, buyers make contingencies to use a substitute, but none of that happens if everyone is expecting the government to guarantee the price.

> Industry is notoriously bad at making short term sacrifices for long term risk management.

Middle managers in large bureaucracies are notoriously bad at this, because enormous conglomerates insulated from competition and subject to the principal-agent problem are not subject to a good set of incentives in many ways. It's why we're supposed to have antitrust laws.

Markets as a whole are pretty good at it, because "price goes up when supply is low" is a predictable opportunity to make money.

> Would you rather the government force them to maintain their own reserves via regulation?

The whole point is to stop having the people who don't pay the cost of doing it be the ones who choose how much there should be and what kind.

> Rapid price fluctuations are one issue. Essential resources are an entirely separate problem. Volatility and starving to death both involve price movement but are otherwise very different things.

They're the same problem because the problem in both cases is supply less than demand and then you're left with the same question of how best to contend with that.

Notice also that the government doesn't keep a multi-year supply of food and that doesn't seem to be any kind of a problem.

> So if the reserve is run by the government it's removing slack and reducing supply, but when run by private industry ... ?

When it's run by private industry it costs less, and more to the point costs the people who want the buffer instead of strangers without the bandwidth or domain knowledge to know if what's being done is cost effective or even necessary.

> No amount of regular slack is ever going to be able to compensate for a tail risk that blocks the import of an essential good. Take oil for example. No company is ever going to voluntarily warehouse enough to keep the entire US economy going for any significant amount of time. It's a crazy small tail risk and very expensive to counterbalance.

The US is a net exporter of oil and oil is widely traded global commodity with significant price elasticity of demand, so you don't get actual shortages unless you try something foolish like price controls. Instead people pay $4/gallon instead of $3 which causes the people who drive the most to switch to electric cars or hybrids, other suppliers to increase production, etc.

> Why would that be? Filling and emptying shifts demand but doesn't create additional.

Filling creates additional demand but if you're using a large enough reserve to be at low risk of ever running out then by design the emptying never fully happens.

> Anyway you seem to be arguing that private industry should do this for themselves. So whatever the effects are they will be present either way.

Private industry would size the reserve according to the risk instead of having the incentive to be excessively risk averse because they're spending someone else's money.

> Why do you expect disproportionate expenditures? The cost is that of warehousing.

Suppose you have a reserve which holds X amount and there is an average annual withdrawal and refilling of 0.5X, once every ten years you would use the full X amount, and once every 50 years you would use 5X if you had it.

The 5X reserve requires five times as many tanks and requires you to eat the time value of money on five times as much of the commodity, but only gets used once every 50 years instead of being mostly used every year. It's not worth having; it's better to eat the higher prices that year than to pay even more to prevent them. There are some risks it costs less to buy insurance against than to mitigate. But risk-averse people spending someone else's money will be more inclined to do it anyway, or to build a 10X reserve "just to be sure".

The government also uses government contractors which do not have a good record for cost efficiency.


What if it's not actually your house, but some unspecified "somebody else's", and you only stand to profit from it? Starts to make sense why some unscrupulous people would go that way, shitty as it is.

Wouldn't another alternative be to renew the authorization to sell? This doesn't seem much different from just deciding to sell it.

Republicans believe that the federal government shouldn't be involved in it at all. So a reauth bill would effectively be DOA.

But yeah, that would make more sense.


> Republicans believe

So frustrating when every conversation leads to R vs D. Doubly so in this situation since both bills that got us to where we are today had overwhelming BIPARTISAN support and were signed into law by presidents Clinton and Obama…


If individual party members voted against the party line more often there would be less of this kind of discourse. But the reality is that we have a deeply entrenched deeply divided two-party system. There are very few politicians who don't toe one line or the other and endure. But in this case it's a core tenet of the republican party platform to eliminate the administrative state, including strategic investment and reserves.

https://en.wikipedia.org/wiki/Starve_the_beast


thanks obama?

yeah that was completely crazy... never understood why they would do something like that

An explanation is particular political group was ideologically enthralled with privatization.

The same group will later happily blame the government for doing said stupid thing.

Those party ballons were very cheap for a while.

All LLM-output is slop. There's no good LLM output. It's stolen code, stolen literature, stolen media condensed into the greatest heist of the 21. century. Perfect capitalism - big LLM companies don't need to pay royalties to humans, while selling access to a service which generates monthly revenue.

Whether it trained on real world "stolen" code is an implementation detail. A controversial one, but it isn't a supporting argument for whether it can write high quality, functional code or not.

Sorry, but no, that is not a detail, that is a major sticking point for me.

I came from a poor background and stole pretty much all the textbooks I used to learn programming as a kid. I also stole all the music I listened to while studying them. Is everything I write slop for the same reason?

No. You're a human, who went through real life experiences. You learned, developed as a human being. You made mistakes and grew from them. You did what you have to do to advance. What you output has intrinsic value because of all this. I argue that even when you roll your face on your keyboard, the output is more valuable than ten pages of slop output from an LLM, since it's human, with all the history, experience, emotions and character which came before it.

A quote from Neuromancer comes to mind:

   "But I ain't likely to write you no poem, if you follow me. Your AI, it just might. But it ain't no way human.”

The Neo-Victorian perspective of The Diamond Age is not a luxury most of us are going to be able to afford unfortunately.

I don't know why this got downvoted. I've already been so frustrated by HN LIDAR mindsets but holy shit.

Human society exists because we value humans, full stop. The easiest way to "solve" all of humanity's problems is to simply say that humans aren't valuable. Sometimes it feels like we're conceding a ridiculous amount of ground on that basic principle every year - one more human value gone because it "doesn't matter", so hey, we've obviously made progress!


Agreed. I think that sometimes people on HN lose sight of what is actually important, which is human flourishing. The other day there was someone arguing that the best thing to do to fix loneliness problems in society is to remove the human need for socializing. Which... is certainly one way to fix the problem, I guess, but completely missed the point. The point is not to fix a mismatch between essential human desires and what we can attain, the point is to work on fulfilling those desires! Just something goes with nerd autism, I guess.

> I don't know why this got downvoted. I've already been so frustrated by HN LIDAR mindsets but holy shit

The extreme sides (proponents, opponents) are clear, opposites, and fight each other. More nuanced takes get buried as droplets in a bucket. Likely a goal.

> Human society exists because we value humans, full stop.

Call me cynic, but I do not believe every human being agrees with this sentiment. From HR acting as if humans are resources, to human beings being dehumanized as workers, civilians, cannon fodder, and... well, the product. Every time human rights are violated, and we do not stand up to it, we lose.

I have a very simple question as human right: the right for a human being to know the other side is a human being yes or no, and if not: to speak gratis (no additional fee allowed) to a human being instead. Futhermore, ML must always cite the used sources, and ML programmer is responsible for mistake. This would increase insurance costs so much, that LLM's in public would die, but SLM's could thrive.


>Human society exists because we value humans, full stop.

Eh, human society exists because it is an emergent behavior of the evolutionary advantage afforded at the time of adoption by the human species. There is on iron rule stating that it must continue into the future, or even that it can exist into the future.

More so, the value of a human has wildly fluctuated over history and culture. The village chief, nobles, the king were all high value humans. The villagers would be middle to low value, and others may be considered no value.

The industrial age began to change this some as value started to move from the merchant class to the villager class as many high production jobs needed less and less training to complete. With industrialization businesses running machines and production lines needed as many people as they could get. Still human rights were hard fought in places like America where labor wars broke out.

In the modern US we've setup a dangerous set of idealism that will most likely end in disaster because they are in conflict with general human values. That is the "pull yourself up by your bootstraps", "Any collective action is communism and communism will turn you into a pillar of salt if you dare look at it", and "greed is good". Couple that with TV media and social media owned by rich billionaires you're not going to see much serious opposition to these ideals.

But if/as labor loses it's values, so will the humans that performed that labor. After decades of optimizing human society for maximal capital extraction, values are dead, and the ever present thought police owned by the rich will make sure you don't cause too much trouble by resurrecting them.


I'm fine with calling all LLM outputs slop, but I'll draw the line at asserting there's no good LLM output. LLM output is good when it works, and we can easily verify that a lot of code from LLMs does work. That the code LLMs output is derive of copyrighted works is neither here nor there. First of all, ALL creative work is derivative. Secondly IP is absurd horse shit and we never should have humored the premise of it being treated like real property.

Well put. Im gonna start parroting this talking point more from now on.

And I thought being a stochastic parrot was limited to LLMs, but apparently they learned it from somewhere...

That's maybe a problem of east Germany in particular. I see Balkonkraftwerke (small balcony solar arrays, 1-4 modules with a microinverter plugged directly into an outlet) everywhere when I drive through major west German cities, even on rental apartment balconies.

  > 1-4 modules with a microinverter plugged directly into an outlet
Interesting, is it really that simple and legal/up to code/safe? My naive assumption is that feeding back to mains would be more complex/costly that that but very cool if not.

These sorts of inverters are grid-tied so they turn themselves off when theres no grid to sync to (eg during an outage). My understanding is that's the main safety issue, and backfeeding while the grid is up is mostly a regulatory concern (as long as you have a modern meter that can tell the difference between electricity going in vs out)

As long as the inverter feeds at most 800W. That's about 4A, on a circuit designed for 16A. You need a new meter, but the old analog meters can run backwards and you can continue using it until you power company replaces it. You do have to register the setup, but that seems to be a quick process. And if you lose power the inverter turns off

Perfectly fine (at least here in the US) as long as your power meter is new enough to not double charge you for feeding back into the grid if your home draw drops low enough. Micro inverters are starting to really take off in modern solar installs to cut down on wiring distances since you can feed it into nearby AC circuits.

German here. I pay around 24c/kWh. It's much cheaper than it was in late 2022 with the energy price shock due to russia attempting to blackout Europe. I cannot imagine how much worse we would be off, would our Power generation stem from fossil or nuclear fuel.

More renewables is the answer. We need to build so much that power becomes almost free (already the case in the summer at high noon, see [1]).

[1] https://energy-charts.info/charts/price_spot_market/chart.ht...


If it's almost free, then even electrically cracking molecules to make hydrocarbons and ammonia compounds is cost-competitive if you can quickly start and stop production, which would be really interesting. Those processes don't have to be very energy efficient if the capital and operating costs are relatively low. That last sentence does a lot of work though.

This is my dream.

I think we should solve the "It's cloudy sometimes" problem with state built, extreme oversupply. Also giant solar farms in the southwest and large HVDC power lines to send that everywhere.

There's zero reason why "We make more power than we use most of the time" ever has to be a "problem". I think we should have so much unused power that it makes sense to suck CO2 out of the air to make fuel and chemical feedstocks. Air capture at that scale would be an insane engineering and manufacturing problem though.

You probably shouldn't vote for me though. I have dumber ideas too. But the "Lets do Solarpunk for real" one is probably not harmful to anyone. Except for a bunch of rich families in Texas.


https://terraformindustries.com/

Terraform is working on that - burstable synthetic methane generation using cheap catalysts that you can afford to idle, only generating methane when electricity is cheap.


I have a rooted LG WebOS TV. It's really nice. I can ssh into it. It's on a dedicated VLAN which has all LG domains and IP firewalled off. It can connect to Youtube, using a version of the Youtube app with integrated adblocker and sponsorblock. It's absolute superb.

Do you have any recommended links for such a setup? I don’t connect my TV to the network and use it with an Apple TV. But I’m interested to know more on this.

Sure, first you check if your TV is rootable: https://cani.rootmy.tv/

If not, you can try and find one on Ebay or local classifieds that is. That's the hardest part.

Then you setup a VLAN (I use OpenWRT, which has great support for this) and some firewall rules that forbid all traffic that isn't port 80 or 443. Then you create a dnsmasq blacklist for all the LG domains (good list is [1]).

Then you install this: https://github.com/webosbrew/youtube-webos

Enjoy Youtube on a large screen under your control without ads, and without annoying sponsors.

[1] https://raw.githubusercontent.com/hagezi/dns-blocklists/main...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: