frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Building the Rust Compiler with GCC

https://fractalfir.github.io/generated_html/cg_gcc_bootstrap.html
91•todsacerdoti•4h ago

Comments

dwheeler•2h ago
It may not seem like it, but this is impressive progress. Getting a compiler to bootstrap at all is an accomplishment, especially for Rust since that depends on so many things working. Once it can reliably bootstrap, a lot of performance-improving steps can begin. Congrats!
aswanson•1h ago
I just started playing with rust again today. Godspeed.
Cogito•58m ago
Really great read.

Someone mentioned recently that the slowness of rustc is in large part due to llvm. I know that is probably orthogonal to the work here, but I do like the idea of building the compiler with different toolchains, and that there may be follow on effects down the line.

saagarjha•19m ago
> Normally, debuing the compiler is fairly straightforward: it is more or less a run of the mill executable.

> In the bootstrap process, the entire thing becomes way more complex. You see, rustc is not invoked directly. The bootstrap script calls a wrapper around the compiler.

> Running that wrapped rustc is not easy to run either: it requires a whole lot of complex, environment flags to be set.

> All that is to say: I don’t know how to debug the Rust compiler. I am 99.9 % sure there is an easy way to do this, documented somewhere I did not think to look. After I post this, somebody will tell me "oh, you just need to do X".

> Still, at the time of writing, I did not know how to do this.

> So, can we attach gdb to the running process? Nope, it crashes way to quickly for that.

It's kind of funny how often this problem crops up and the variety of tricks I have in my back to deal with it. Sometimes I patch the script to invoke gdb --args [the original command] instead, but this is only really worthwhile if it's a simple shell script and also I can track where stdin/stdout are going. Otherwise I might patch the code to sleep a bit before actually running anything to give me a chance to attach GDB. On some platforms you can get notified of process execs and sometimes even intercept that (e.g. as an EDR solution) and sometimes I will use that to suspend the process before it gets a chance to launch. But I kind of wish there was a better way to do this in general…LLDB has a "wait for launch" flag but it just spins in a loop waiting for new processes and it can't catch anything that dies too early.

o11c•8m ago
Other ideas:

* Run the whole tree of processes under `gdb` with `set detach-on-fork off`.

* LD_PRELOAD a library that inserts the sleeps for you, maybe on startup or maybe on signal/exit.

Ideally, we'd have some kind of infrastructure to name and identify particular processes recursively.

SVG Icons Library

https://bruhgrow.com/tools/svg-icons
2•mdanassaif•2m ago•2 comments

Archaeologists in Peru unveil 3,500 year old city that linked coast and Andes

https://www.reuters.com/science/archaeologists-peru-unveil-3500-year-old-city-that-linked-coast-andes-2025-07-03/
1•wslh•7m ago•0 comments

ECC SystemVerilog Generator

https://github.com/siliscale/ECC-SV_Generator
2•marcux95•8m ago•0 comments

Migrating the Jira Database Platform to AWS Aurora

https://www.atlassian.com/blog/atlassian-engineering/migrating-jira-database-platform-to-aws-aurora
1•defrost•15m ago•0 comments

She Wanted to Save the World from A.I. Then the Killings Started

https://www.nytimes.com/2025/07/06/business/ziz-lasota-zizians-rationalists.html
3•davidklemke•18m ago•1 comments

New Intel E610 NICs Shown for Low Power 10Gbase-T and 2.5GbE

https://www.servethehome.com/new-intel-e610-nics-shown-for-low-power-10gbase-t-and-2-5gbe/
2•ksec•23m ago•1 comments

Apple Lisa conversion to Macintosh XL Do-it-Yourself Guide (1990) [pdf]

https://mirrors.apple2.org.za/ftp.apple.asimov.net/documentation/applelisa/Lisa_Do-It-Yourself_Guide.pdf
2•gscott•29m ago•1 comments

OpenBSD on the 2020 M1 MacBook Air (2022)

http://kernelpanic.life/hardware/openbsd-m1-macbook-air.html
4•bradley_taunt•31m ago•0 comments

The Human Use of Human Beings

https://en.wikipedia.org/wiki/The_Human_Use_of_Human_Beings
3•downboots•36m ago•0 comments

Waterbot – a discord bot that controls pins on a raspberry with natural language

https://github.com/fclaude/waterbot
2•fclaude•37m ago•0 comments

Anthropic wins key US ruling on AI training in authors' copyright lawsuit

https://www.reuters.com/legal/litigation/anthropic-wins-key-ruling-ai-authors-copyright-lawsuit-2025-06-24/
5•pyman•46m ago•3 comments

Free AI Hiring Demo – Paraform

https://paraform-genie-magic.lovable.app/
2•lkhoshnevis•48m ago•1 comments

One Year with a Framework Laptop 16 and Fedora KDE Plasma Desktop

https://linhpham.org/blog/2025/one-year-with-framework-laptop-16-fedora-kde-desktop/
2•nmstoker•51m ago•0 comments

Plasma 6.4 Wayland vs. X11, processor and power benchmarks

https://www.dedoimedo.com/computers/plasma-6-4-performance-wayland-x11-power-cpu-kernel.html
3•airhangerf15•52m ago•0 comments

The Dangers of AI Personalization

https://time.com/7296719/ai-personalization-harm-essay/
3•malshe•52m ago•0 comments

The Mental Model of Server Components

https://saewitz.com/the-mental-model-of-server-components
2•PaulHoule•56m ago•0 comments

Show HN: A pure photo collage tool

https://imagesplitter.org/merge-images
2•panyanyany•57m ago•0 comments

Attabotics CEO on devastating week that brought bankruptcy

https://retailtechinnovationhub.com/home/2025/7/6/attabotics-ceo-scott-gravelle-opens-up-about-devastating-week-that-saw-bankruptcy-and-tesco-deal
9•bcantrill•1h ago•5 comments

Show HN: A Language Server Implementation for SystemD Unit Files

https://github.com/JFryy/systemd-lsp
2•arandomhuman•1h ago•0 comments

Self-Cleaning Ants

https://gbragafibra.github.io/2025/07/06/collatz_ant6.html
3•Fibra•1h ago•0 comments

Show HN: WhatsApp Contact Exporter

https://chromewebstore.google.com/detail/whatsapp-contact-exporter/dlplljmhphnabhmlhjplfgpakefmfhho
2•qwikhost•1h ago•0 comments

Weedkiller ingredient widely used in US can damage organs and gut bacteria

https://www.theguardian.com/environment/2025/jul/06/weedkiller-diquat-organ-damage-study
5•vinni2•1h ago•0 comments

I built a free website for remote workers to find laptop friendly coffee shops

https://studynearme.com/
2•kicksent•1h ago•1 comments

I spent $80 and 14 hours to build this, welcome to my new website!

https://chiraga.io/blog/welcome/
2•chiragagrawal93•1h ago•0 comments

Are Language Models strategic or parrots?

https://www.kennethpayne.uk/p/are-language-models-strategic-or
2•car•1h ago•0 comments

Ask HN: Has AWS ever surprised you with a bill?

3•noway_bro•1h ago•0 comments

U.S. Insurers Are Refusing to Cover Climate Change Risk Zones

https://oilprice.com/Energy/Energy-General/US-Insurers-Are-Refusing-to-Cover-Climate-Change-Risk-Zones.html
7•toomuchtodo•1h ago•3 comments

Pangu's Sorrow: The Sorrow and Darkness of Huawei's Noah Pangu LLM R&D Process

https://github.com/moonlightelite/True-Story-of-Pangu/blob/main/README.md
3•guardiangod•1h ago•1 comments

Sandboxes? In my process? It's more likely than you think

https://dadrian.io/blog/posts/memory-safety-and-sandboxes/
2•dadrian•1h ago•0 comments

Ask HN: How is the tech scene in LA?

4•asdev•1h ago•0 comments