Really cool concept and execution. I did notice that the live notifications quickly become overwhelming, so there should be some kind of rate limiter on them.
AsmBB – a lightweight web forum engine written in assembly language
21–30 of 131 posts
Re: AsmBB – a lightweight web forum engine written in assembly language
#22Man 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...
If it’s just a bunch of calling C code then I have to ask which part of this is actually assembly
Re: AsmBB – a lightweight web forum engine written in assembly language
#23Earlier quoted context omitted.
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...
How about for setting up a server and serving http requests / establishing web sockets? If it’s just a bunch of calling C code then I have to ask which part of this is actually assembly
Re: AsmBB – a lightweight web forum engine written in assembly language
#24Earlier quoted context omitted.
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...
How about for setting up a server and serving http requests / establishing web sockets? If it’s just a bunch of calling C code then I have to ask which part of this is actually assembly
Re: AsmBB – a lightweight web forum engine written in assembly language
#25Man 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
When you program in assembly you're basically just doing the job of the compiler, and can call all the same library functions C code can. You just have to follow the calling conventions of the architecture. It's cumbersome and tedious, but nowhere near impossible.
x64 made calling functions more annoying by using registers then spilling over into the stack after exhausting those. x32 was more pleasant by far, since it only used the stack. x64's convention produces faster code though, by keeping stuff in registers.
Re: AsmBB – a lightweight web forum engine written in assembly language
#26Reminds me a little of D's official forums, which load faster than you can close your eyes to blink. I love these kind of projects.
Oh yeah it's immediately noticeable. How did they do it? https://forum.dlang.org/
Re: AsmBB – a lightweight web forum engine written in assembly language
#27It'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.
Mind you, I understand it given some of the PHP I've seen. But again, that's not the language per se, but how it's used.
Re: AsmBB – a lightweight web forum engine written in assembly language
#28Reminds me a little of D's official forums, which load faster than you can close your eyes to blink. I love these kind of projects.
Oh yeah it's immediately noticeable. How did they do it? https://forum.dlang.org/
Edit: the tone was a little sharp, edited it out, my apologies
Re: AsmBB – a lightweight web forum engine written in assembly language
#29Re: AsmBB – a lightweight web forum engine written in assembly language
#30I couldn't read the article on mobile due to live notifications.