Live data from Hacker News

AsmBB – a lightweight web forum engine written in assembly language

asmbb.org

11–20 of 131 posts

Re: AsmBB – a lightweight web forum engine written in assembly language

#11

It's not just written in assembly, but it's backed by sqlite. Like many apps, IO is more likely to be the bottleneck than the CPU.

Using WAL mode with PRAGMA synchronous set to NORMAL, or even in that case? (I'm the furthest from a SQLite expert, just looking at it myself for a project.)

Re: AsmBB – a lightweight web forum engine written in assembly language

#12
post #9

Man how do you even connect to a db with assembly code? Are there assembly libraries? In theory I understand it but the monumental amount of effort it would take to write such “simple” things would take so much time

It says that the DB is SQLite, so I presume they’re just linking to the SQLite libraries.

Re: AsmBB – a lightweight web forum engine written in assembly language

#13

It's not just written in assembly, but it's backed by sqlite. Like many apps, IO is more likely to be the bottleneck than the CPU.

Using WAL mode with PRAGMA synchronous set to NORMAL, or even in that case? (I'm the furthest from a SQLite expert, just looking at it myself for a project.)

No idea - just did a quick scan of the source

https://asm32.info/fossil/asmbb/dir

Re: AsmBB – a lightweight web forum engine written in assembly language

#14
post #9

Man how do you even connect to a db with assembly code? Are there assembly libraries? In theory I understand it but the monumental amount of effort it would take to write such “simple” things would take so much time

It's less complicated than you might think. You call into SQLite C library functions using C calling conventions. Here's the relevant code: https://asm32.info/fossil/asmbb/file?name=source/sqlite3.asm...

Re: AsmBB – a lightweight web forum engine written in assembly language

#16

It's not just written in assembly, but it's backed by sqlite. Like many apps, IO is more likely to be the bottleneck than the CPU.

RAM is a factor too. I’ve written some programs for Arduino in C that would be a good match for assembly because the stack and C calling conventions are a complete waste. (e.g. sometimes you have no recursive functions). The thing is portability —- as much as I love AVR-8 if my requirements grow AVR-8 has no nowhere to go except maybe an FPGA soft core. In C I can switch to an ARM microcontroller which I find really uninspiring but just performs better.

That’s the one trouble w/ AsmBB that it is specific to some particular architecture.

Post reply on HN