frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

https://github.com/valdanylchuk/xcc700
22•isitcontent•2h ago
Repo: https://github.com/valdanylchuk/xcc700

Hi Everyone! I just wrote my first compiler!

- single pass, recursive descent, direct emission

- generates REL ELF binaries, runnable using ESP-IDF elf_loader

- very basic features only, just enough for self-hosting

- treats the Xtensa CPU as a stack machine for simplicity, no register allocation / window usage

- compilable on Mac, probably also Linux, can cross-compile for esp32 there

- wrote for fun / cyberdeck project

Sample output from esp32:

    xcc700.elf xcc700.c -o /d/cc.elf
    
    [ xcc700 ] BUILD COMPLETED > OK
    > IN  : 700 Lines / 7977 Tokens
    > SYM : 69 Funcs / 91 Globals
    > REL : 152 Literals / 1027 Patches
    > MEM : 1041 B .rodata / 17120 B .bss
    > OUT : 27735 B .text / 33300 B ELF
    [ 40 ms ] >> 17500 Lines/sec <<
My best hope is that some fork might grow into a unique nice language tailored to the esp32 platform. I think it is underrated in userland hobby projects.

Comments

boznz•17m ago
Cool, always refreshing to see different approaches to the same problem, and you learn so much by doing, this is more the kind of tinkering I will be doing in retirement.

Show HN: Private blogging and journaling with a simulated audience

https://tempblog-psi.vercel.app/
33•beerd•1h ago•30 comments

Show HN: AutoLISP interpreter in Rust/WASM – a CAD workflow invented 33 yrs ago

https://acadlisp.de/noscript.html
26•holg•1h ago•14 comments

Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

https://github.com/valdanylchuk/xcc700
23•isitcontent•2h ago•1 comments

Show HN: Gaming Couch – a local multiplayer party game platform for 8 players

https://gamingcouch.com
335•ChaosOp•5d ago•103 comments

Show HN: QBridge, a clean, modern iOS alternative to Cordova and Capacitor

https://github.com/Qbix/QBridge
2•EGreg•1h ago•2 comments

Show HN: GeneGuessr – a daily biology web puzzle

https://geneguessr.brinedew.bio/
72•brinedew•3d ago•15 comments

Show HN: A schema-first, multi-agent pipeline for autonomous research

https://github.com/giatenica/gia-agentic-short
2•7777777phil•1h ago•0 comments

Show HN: Hybrid-Transpiler – A tool to convert C++ to Rust and Go

https://github.com/cmc-labo/hybrid-transpiler
2•hpscript•2h ago•1 comments

Show HN: Witr – Explain why a process is running on your Linux system

https://github.com/pranshuparmar/witr
2•pranshuparmar•2h ago•1 comments

Show HN: Crawlee Cloud Self-hosted platform for running Crawlee and Apify actor

https://crawlee.cloud
3•aminembarki•2h ago•0 comments

Show HN: Mergen – A native, local-first SQL client built with Go and Wails

https://github.com/parevo/mergen
2•parevo•2h ago•0 comments

Show HN: Lamp Carousel – DIY kinetic sculpture powered by lamp heat (2024)

https://evan.widloski.com/posts/spinners/
90•Evidlo•1d ago•16 comments

Show HN: Access low level AMD EPYC and Threadripper metrics in Grafana

https://github.com/turbo/esmi
2•summarity•3h ago•0 comments

Show HN: Turn your GitHub profile into a clean, shareable visual card

https://mygit.syigen.com/
2•dewmal•59m ago•0 comments

Show HN: Domain Search MCP – AI-powered domain availability checker

https://github.com/dorukardahan/domain-search-mcp
3•dorukardahan•8h ago•2 comments

Show HN: Minimalist editor that lives in browser, stores everything in the URL

https://github.com/antonmedv/textarea
452•medv•1d ago•164 comments

Show HN: I built a tool to help small teams automate basic analytical tasks

2•LunarFrost88•7h ago•2 comments

Show HN: Exploring Mathematics with Python

https://coe.psu.ac.th/ad/explore/
256•Andrew2565•1w ago•29 comments

Show HN: Vibium – Browser automation for AI and humans, by Selenium's creator

https://github.com/VibiumDev/vibium
431•hugs•2d ago•120 comments

Show HN: I embedded 10M StreetView images

https://view.geospot.sdan.io/
12•sdan•20h ago•3 comments

Show HN: CineCLI – Browse and torrent movies directly from your terminal

https://github.com/eyeblech/cinecli
342•samsep10l•3d ago•106 comments

Show HN: AI Accel,Tension-based pruning framework(40% sparsity, 1.5-2x speedups)

https://github.com/wwes4/AI_Accel_1.5x
2•wwes369•11h ago•0 comments

Show HN: Why many AI-generated websites don't show up on Google

https://pagesmith.ai/seo-for-ai-generated-sites
12•manu_trustdom•1d ago•5 comments

Show HN: I treated my brain like a buggy server and wrote a patch (Shi-Mo Model)

https://github.com/317317317apple-a11y/shi-mo-protocol/blob/main/README.md
15•ShiMo_Protocol•1d ago•5 comments

Show HN: Turn raw HTML into production-ready images for free

https://html2png.dev
149•alvinunreal•2d ago•80 comments

Show HN: Jmail – Google Suite for Epstein files

https://www.jmail.world
1549•lukeigel•5d ago•359 comments

Show HN: Why is ML inference still so ad-hoc in practice?

4•krish678•7h ago•0 comments

Show HN: A local-first, reversible PII scrubber for AI workflows

https://medium.com/@tj.ruesch/a-local-first-reversible-pii-scrubber-for-ai-workflows-using-onnx-a...
37•tjruesch•2d ago•13 comments

Show HN: WebPtoPNG – I built a WebP to PNG tool, everything runs in the browser

https://webptopng.cc/
20•akseli_ukkonen•1d ago•19 comments

Show HN: A Claude Code plugin that catch destructive Git and filesystem commands

https://github.com/kenryu42/claude-code-safety-net
3•kenryu•14h ago•0 comments