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

> optimizations aren't as good as the 40 year gcc project

with all optimizations disabled:

> Even with all optimizations enabled, it outputs less efficient code than GCC with all optimizations disabled.


That distinction doesn't change my point. I am not surprised that a 40 year old project generates better code than this brand new one.

Not only is it new. There has been 0 performance optimization done. Well none prompted for at least. Once you give the agents a profiler and start a loop focusing on performance you'll see it start improving it.

We are talking about compiler here and "performance" referred above is the performance of generated code.

When you are optimizing a program, you have a specific part of code to improve. The part can be found with profiler.

When you are optimizing a compiler generated code, you have many similar parts of code in many programs and not-so-specific part of compiler that can be improved.


Yes, performance of the generated code. You have some benchmark of using a handful of common programs going through common workflows and you measure the performance of the generated code. As tweaks are made you see how the different performance experiments effect the overall performance. Some strategies are always a win, but things like how you layout different files and functions in memory have different trade offs and are hard to know up front without doing actual real world testing.

  > As tweaks are made...
  > ...how you layout different files and functions in memory have different trade offs and are hard to know up front without doing actual real world testing.
These are definitely not an algorithmic optimizations like privatization [1].

https://en.wikipedia.org/wiki/Privatization_(computer_progra...

To correctly apply privatization one has to have correct dependency analysis. This analysis uses results of many other analyses, for example, value range analysis, something like Fourier-Motzkin algorithm, etc.

So this agentic-optimized compiler has a program where privatization is not applied, what tweaks should agents apply?


Very nice looking UI! Powered by forked GTK+ 2 [1]. (First release almost 24 years ago [2]).

[1] https://github.com/Ardour/ardour/tree/9.0/libs/tk/ytk

[2] https://mail.gnome.org/archives/gtk-list/2002-March/msg00136...


GTK doesn't play much of a role in our GUI. When you're looking at most of the main tabs in Ardour (editor, mixer, recorder window, cue page) almost everything you're looking at is either our own Canvas or custom widgets. Still we do sit on top of GTK+ 2's basic infrastructure and still rely on it for the "big widgets" (file browser, tree/listviews, menus, color dialogs, text entry).

> custom widgets

Implemented like any custom GTK+ 2 widget?


Some are, some have a layer between them called CairoWidget so that they can just draw directly in Cairo. We also tend to use Gtkmm to derive, so that we don't have to do a lot of C boiler-plate code (and you won't find a "full widget implementation" anywhere, because of this).

Good to know, thanks!

How are you approaching a Wayland port?

We keep meaning to provide a page equivalent to this one. Our position is more or less identical:

https://www.kicad.org/blog/2025/06/KiCad-and-Wayland-Support...

We have user reports that XWayland causes error when running many plugins (primarily those written use JUCE); we also have reports that using XNest tends to be more successful.


It would have to be done someday. We are slowly running out of desktop environments that haven't abandoned X11.

> would such free protest be allowed if the developers of Notepad++ were based in

- US arguing for independence of any of the States for whatever reasons?

- Spain for Catalonia?

- France for Basque?

and many more just in Europe.

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


Not pertinent. My point is more in reference to the ancestor comment with respect to Ukraine and Taiwan:

> Yeah, Notepad++ is known for political messaging in their updates. Taiwan, Ukraine, etc.

If you’re calling Ukraine in particular a “separatist movement”, I don’t think we can have a productive conversation.


I'm referring to (if we would continue with the list):

- Ukraine for Donbas

Which is so much weaker than all others. There are Ukrainians, Russians, Chinese, Tibetans. But there is no such ethnicity as People of Donbas.

OTOH in a democratic state you're still have the right to demonstrate peacefully for whatever you want, even if it doesn't make much sense. But would you allowed to demonstrate in Ukraine for Donbas independence if they are considered separatists according to the law?


You can totally say Texas should be independent. A lot of Texans have.

You can’t be against the Ukraine war in Russia because Putin is an evil dictator


> You can totally say ...

"Say" in the sense of demonstrate peacefully for this? Then I'm impressed. If someone else can confirm this? Is this because of USA being a federal union? Before Ukraine declared independence, there were voices to make Ukraine a federal state, so that people in the West part of Ukraine can live their way of life and people living 1600 km (!) away in the East and Southern parts would be not much affected from that and vice versa. Voices for the unitary state were stronger because of stability of the state. Would be interesting to see some documentary "what if", whether a federal state would be more stable against pulling from the west (Europe, US) and the east (Russia).


> Is this because of USA being a federal union? Before Ukraine declared independence, there were voices to make Ukraine a federal state, so that people in the West part of Ukraine can live their way of life and people living 1600 km (!) away in the East and Southern parts would be not much affected from that and vice versa.

You are falling for Russian propaganda about evil western-Ukrainian nazis attempting to enslave peaceful-Russian-speaking-peoples-of-Donbass-or-whatever who were just minding their own business ("way of life"). As a Russian-speaking Ukrainian neither do I want Putin to protect me (apparently by looting my apartment and raping my girlfriend or in whichever way he is trying to do it these days), nor do absolute majority of population of, say, Kharkiv, Odesa or Kherson.

> Voices for the unitary state were stronger because of stability of the state. Would be interesting to see some documentary "what if", whether a federal state would be more stable against pulling from the west (Europe, US) and the east (Russia).

As a Ukrainian I find that idea quite laughable. It is not really possible for a part of federal union (say a state of USA or a Swiss canton) to join NATO and for other part to "decide" to become a Russian-occupied quasi-state like Belarus. Same goes for a part of it joining EU while some other part decides it wants to be part of EAEU Customs Union. State's foreign affairs are still decided by some central government.

Also, you can research how great "deciding on their own way of life" works in Russian Federation. You could start with first and second Chechen Wars.


> You can’t be against the Ukraine war in Russia

I was glad after discovering [1]. In one of the videos the interviewer explains, why he was not arrested. The channel is for English-speaking auditory outside of Russia. It was enough to "close eyes" for some openly expressed critiques. Though it was painfully to listen to some people who were not against the war.

[1] https://www.youtube.com/@1420channel/videos


I'm writing this comment from Russia, St. Petersburg, and yes, you can be against the Ukraine war in Russia.

Always hiliarious when westerners think they know how life works in Russia, China, etc because they heard from it on TV.

Of course it’s all propaganda, comrade, you can openly protest against the ~~war~~ SMO. Don’t forget your Z insignia, though.

Proving me right I see.

Educate me then. The mental image I have from researching the topic seems contrary to what you’re saying.

Safe and socially acceptable: "war is bad and I wish it will end sooner". "We should be friends with Ukraine and/or West". "Putin was not right to start a war". "I want that Putin resigns and/or voted out"

Safe for regular person, but socially risky: "We should surrender and pay reparations" "This war is totally Putin'a fault" "Putin is corrupt dictator" "Zelensky is a good guy"

Could in theory lead to a fine and/or losing job, but mostly safe: "I support Navalny", donation to ACF or some kind of western-affiliated NGO.

Could lead to a fine and/or prison time, when it done in social media or on the square: "Slava Ukraine", Butcha fakes, Let's willingly donate to Ukraine war effort, etc


Thank you. This is helpful.

> Many immediate mode UIs fail badly here, never going to idle even if nothing is happening

ImGui's author deliberately doesn't fix this because this is one of the main issues preventing ImGui to be widely adopted on desktop potentially attracting too many users at once but lacking support for all of them.

https://github.com/ocornut/imgui/issues/7892#issuecomment-22...


TLDR:

> Reflection in C++26 might be insufficient for replacing moc.

https://wiki.qt.io/C++_reflection_(P2996)_and_moc


> NOTE: THIS HAS BEEN WRITTEN AGAINST A VERY EARLY REVISION OF P2996. MANY THINGS HAVE CHANGED SINCE, AND EVERYTHING ON THIS PAGE NEED TO BE RE-EVALUATED BASED ON WHAT EFFECTIVELY LANDED IN C++26!

Taken from bookmarks, haven't noticed this before. Looking forward for the article update.

Perhaps it's obvious but I'm missing some (briefly) justification why FlatBuffers was better, not Protobuf/Capnproto/...


> 300+ on my Mac.

"Firefox power user kept 7,500 tabs open for two years" (04.08.2024)

https://news.ycombinator.com/item?id=41156568


I currently have 20,097 tabs open in one browser profile. The oldest tab appears to be an HN post from 2.5 years ago, which must be the last time I swept tabs into bookmarks.

I used to sweep them more regularly, but Firefox + Sidebery don't even break a sweat with 20K tabs, apparently, so why bother?

The only downside is that it takes about 15 seconds for the browser to launch. I restart the browser whenever Firefox or macOS is updated, so every week or two.


> about 15 seconds for the browser to launch

I also have many tabs (that's why I could quickly recall and find the post). Restoring session takes a while (much more than 15 seconds). I measure this time by looking on the CPU consumption. Only once it drops to near zero I consider session completely restored.


I just timed it for accuracy. When launched alone, on my M2 MBA, it's about 18 seconds to full draw of visible tab list, and 29 seconds to snappy interactivity. I didn't check CPU utilization.

Usually, when I launch this 20+Kt profile, I also launch 2-3 other profiles simultaneously (work 2Kt, personal/misc 3Kt, sometimes commerce 400t). I've noticed that they each peg a core while launching, but this is the only one that isn't ready quickly.


Same here. Used FF+Sidebery (and Tab Center Reborn before that) for years. ~5k tabs and it worked perfectly. With Chromium/Brave I can open maybe a hundred before the browser croaks and takes up all available memory.

I don't open heavy websites in FF, though. For youtube links, I always use Brave.


> memory, PCIe etc (≈southbridge?)

northbridge


To further expand on this, "southbridge" is what we now call a chipset expander (or 50 other company or product line specific names).

Its a switch that has a bunch of unified PHYs that can do many different tasks (non-primary PCI-E lanes, SATA ports, USB ports, etc), leveraging shared hardware to reduce silicon footprint while increasing utility, and connects to PCI-E lanes on the CPU.


Don’t EPYC CPUs avoid using a chipset altogether? I think in that case, it would be NB+SB.


Yes.

The "northbridge" in modern Zen systems is the IO die, and in Zen 1/+, its the tiny fractional IO die that was colocated on each chip (which means a Zen 1/+ Epyc had the equivalent of 4 tiny northbridges).

However, they just embed the equivalent design of the chipsets into the IO Die SoC on Epycs.

Fun fact: For desktop, since Zen 1 (and AM4-compatible non-Zen CPUs) they included a micro-southbridge into the IO die. It gave you 2 SATA ports and 4 USB ports, usually the only "good" ones on the board. On Epyc, they just put the full sized one here instead of pairing it with an external one.

This also means, for example, if you have 4 USB3 10gbit ports, and its not handled by a third party add-on chip? Those are wired directly into the CPU, and aren't competing for the x4 that feeds the southbridge.

Also fun fact: The X, B, and A chips are all sibling designs, under the name of Promontory, made jointly with ASMedia. They're essentially all identical, only updated for PCI-E and USB versions as time went on, as well as adding more ports and shrinking die size.

The exception is the X570, its an AMD-produced variant of the Promontory that also contains the Zen 2/3 IO Die, as they're actually the same chip in this case. The chips that failed to become IO Dies had all their Promontory features enabled instead, and became chipset chips. The Zen 2/3 Epycs shipped their IO die, at least partly, as two X570s welded together, with even more DDR PHY thrown in, as some sort of cost saving.

I don't think that panned out, because the X/B/A 600 and 800 variants (Zen 4 and 5) went back to being straight Promontory again.

Wikipedia has some good charts for this: https://en.wikipedia.org/wiki/List_of_AMD_chipsets


Since more than a year no images available. Now the page gone completely: https://developer.microsoft.com/en-us/windows/downloads/virt...


> CPU is limited by its memory bandwidth for streaming tasks

That must be the reason, why EPYC 9175F exists. It is only 16-core CPU, but all 16 8-core CCDs are populated and only one core on each is active.

The next gen EPYC is rumored to have 16 instead of 12 memory channels (which were 8 only 4-5 years ago).


This also leaves more power & thermal allowance for the IO Hub on the CPU chip and I guess the CPU is cheaper too.

If your workload is mostly about DMAing large chunks of data around between devices and you still want to examine the chunk/packet headers (but not touch all payload) on the CPU, this could be a good choice. You should have the full PCIe/DRAM bandwidth if all CCDs are active.

Edit: Worth noting that a DMA between PCIe and RAM still goes through the IO Hub (Uncore on Intel) inside the CPU.


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

Search: