frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why don't we just ask AI to write assembler?

4•canterburry•9h ago
Programming languages, frameworks etc are just there for developer ergonomics, code reuse and human understanding.

If we generate so much code using AI that no one is really looking or reading the code anymore, just verifying end functionality, we can really just skip all that and go straight to assembler, no?

Sure, we could reuse some basic building blocks like implementations of the tcp/ip protocol, http, sockets etc but server frameworks like fastapi are just human friendly abstractions over all that.

Comments

andsoitis•9h ago
Layers of abstraction remain effective and valuable. Why reinvent state management, for example, with each application?

Runtime also matters; you can’t run assembly on the web.

Security mechanisms can also preclude assembly.

Etc.

FWIW, your question stopped short before the bottom turtle in the stack. Below assembly is machine code. So your question could rather be, why not emit machine code. Assembly is made for humans because we can understand it, but machine code is not really tractable for humans to engage with in a meaningful way.

uKVZe85V•9h ago
Two reasons.

First reason, LLMs are modeled from what humans have been doing, and the have been writing software that way recently so it's easier to mimick that to get straight to results. This reason might fade away in the future.

Second reason, something related to impedance (mis)match, a signal processing notion (when the interface between two media is not well-suited, it is difficult to have a signal pass through).

Going through intermediate levels makes a structured workflow where each steps follows the previous one "cheaply". On the contrary, straight generating something many layers away requires juggling with all the levels at once, hence more costly. So "cheaply" above both means "better use of a LLM context" but also use regular tools where they are good instead of paying the high price (hardware+computation+environment) of doing it via LLM.

Interestingly, AIs are used to generate sample-level audio and some video, which may look like it contradicts the point. Still they are costly (especially video).

sylware•7h ago
I wish I could test that and mass port from c++ to plain and simple C.

Any 'public' (rate limited) web API (using CURL) from current AI inferences services?

sdevonoes•6h ago
Because there’s not enough learning material? Like most of the code LLMs have stolen for training is highlevel code, not assembly
mikewarot•6h ago
Dave Plummer claims to have successfully generated working executable PE binaries using ChatGPT.

https://x.com/davepl1968/status/2044482592620351955

amazingamazing•4h ago
AI doesn't actually know anything, just predicts, and as such most training data is in high level languages.
giacomoforte•3h ago
Programming languages are not just for ergonomics. They are valuable abstractions that help us reason. And they also help LLMs reason in the same manner.
rechadkkk•2h ago
Ai are are not smart enough for that, its not real ai neither to do it

Ask HN: ChatAi web-based session notation?

2•xtiansimon•59m ago•0 comments

Ask HN: Building a solo business is impossible?

50•fnoef•1d ago•70 comments

Sorting 1M u64 KV-pairs in 20ms on i9-13980HX using a branchless Rust impl

3•EfurDec•6h ago•0 comments

Ask HN: Who is using OpenClaw?

335•misterchocolat•2d ago•378 comments

Why don't we just ask AI to write assembler?

4•canterburry•9h ago•8 comments

Tell HN: Fiverr left customer files public and searchable

822•morpheuskafka•3d ago•230 comments

Tell HN: 48 absurd web projects – one every month

76•absurdwebsite•2d ago•25 comments

Do I Stop Learning Coding? DSA?

6•s_u_d_o•16h ago•13 comments

Ask HN: Getting depressed day by day, how to cope?

16•throwaw12•1d ago•16 comments

Ask HN: How did you get your first users with zero audience?

15•arikusi•1d ago•9 comments

Tell HN: Security Incident at Porter (YC S20)

5•leetrout•18h ago•0 comments

Ask HN: How do you search the web programmatically these days?

4•coreyp_1•21h ago•4 comments

Ask HN: Teaching life skills through games, am I crazy?

2•shivaniShimpi_•23h ago•2 comments

Ask HN: How do you maintain flow when vibe coding?

30•fny•1d ago•29 comments

Aliens.gov Resolves – To a WordPress "Site Not Found" Error

11•ascarola•1d ago•5 comments

Ask HN: How do you find motivation to do stuff?

24•RockstarSprain•3d ago•22 comments

Ask HN: How are you using LLMs in production?

13•Anon84•2d ago•10 comments

Advice for tracking down a listening device?

8•comrade1234•2d ago•5 comments

Durable Object alarm loop: $34k in 8 days, zero users, no platform warning

28•thewillmoss•2d ago•2 comments

Claude Code Opus 4.7 keeps checking on malware

56•decide1000•6h ago•54 comments

Ask HN: Who is your favourite Entrepreneur/Visionary?

13•wasimsk•2d ago•32 comments

Opus 4.7 is horrible at writing

18•limalabs•1d ago•25 comments

Ask HN: How are you actively keeping your thinking sharp while using LLMs daily?

15•smonk108•2d ago•10 comments

Tell HN: Anthropic no longer allows you to fix to specific model version

25•baobabKoodaa•3d ago•2 comments

Ask HN: Is Claude Getting Worse?

9•sahli•3d ago•19 comments

Ask HN: How to highlight talent from untraditional backgrounds?

6•etherus•2d ago•5 comments

GitHub gave webhook secrets away in webhook call

12•time4tea•3d ago•1 comments

Ask HN: As an Australian, is it possible to get a remote US role?

4•apatheticonion•3d ago•8 comments

Ask HN: LeetCode, anyone still doing it?

19•kwar13•4d ago•14 comments

Tell HN: GitHub might have been leaking your webhook secrets. Check your emails.

43•ssiddharth•4d ago•12 comments