Live data from Hacker News

AsmBB – a lightweight web forum engine written in assembly language

asmbb.org

121–130 of 131 posts

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

#121
post #103

Earlier quoted context omitted.

Engineers do design, implementation is the job of the technician or machinist or somebody like that. If the engineer’s code ends up shipped to customers, something very strange has happened.

the source code is the design; it plays the same role that schematics or mechanical drawings play for products made by electronic technicians or machinists. the difference is that compilers take the place of technicians or machinists, and that confuses people, often for political/ideological reasons see jack w. reeves's 'code as design' series, beginning with 'what is software design?' from 01992, for a fuller explan…

That was a great read. Amazing how it can still be quoted to explain software design 32 years later.

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

#122
post #55

Earlier quoted context omitted.

I think you meant "in theory" instead of "in practice" :)

I think it was meant sarcastically

It wasn't sarcastic.

Being a C++ developer requires discipline, and that's why hiring is much more selective and specialized.

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

#123
post #84
post #53

Earlier quoted context omitted.

That's overly simplistic and untrue. If you write a C# / .Net program you're not "just calling C code", you're not calling C at all.

But the CLR is written c, c++ and assembly which is what runs c#. Also the syscalls that run down the chain are also written in c, c++ etc.

That is just the runtime. That is smaller of fraction of what is going on when your programs execute than you think.

The C# code you write (and majority of the your code's dependencies) are JIT compiled to native machine code (or more recently there are AOT compilation options).

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

#124
post #103

Earlier quoted context omitted.

the source code is the design; it plays the same role that schematics or mechanical drawings play for products made by electronic technicians or machinists. the difference is that compilers take the place of technicians or machinists, and that confuses people, often for political/ideological reasons see jack w. reeves's 'code as design' series, beginning with 'what is software design?' from 01992, for a fuller explan…

That was a great read. Amazing how it can still be quoted to explain software design 32 years later.

glad you enjoyed it!

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

#126
post #75

Earlier quoted context omitted.

I disagree; dependencies are more of a liability than anything else.

Do you really want to implement http, ssl and tls; all by your self, what about security hash algorithms? Re inventing the wheel means you also get to go through all the bugs and s purity issue that these open source libraries went through. This is a type of opinion I would expect some one with no understanding about security saying.

If you're building an application that depends heavily on networking for either its performance or reliability, then yes, you are better off rewriting those components and taking on ownership of hardening them to satisfy your requirements than you are relying on someone else that doesn't know your use case and has no incentive to making it work well making sure it works well for you.

HTTP is fairly trivial as well; if you're afraid of little things like that, you'll never deliver best-in-class software.

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

#127
post #73

Earlier quoted context omitted.

> C is generally first compiled into assembly anyways. I don't think that's right. C is compiled into an intermediate representation first. It's true that you can ask GCC etc. to generate assembly output, but it's not the default.

> I don't think that's right. C is compiled into an intermediate representation first. It's true that you can ask GCC etc. to generate assembly output, but it's not the default. Just because there's an IR within the compiler doesn't mean there's no "assemble" stage. What do you think the "-pipe" flag to gcc is for? It pipes the compiler output into the assembler, rather than using a temporary .s file. gcc has four ma…

Thanks for the correction, I assumed the assembly stage was not done.

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

#128
post #100

Earlier quoted context omitted.

Whos' Chuck Norris ?

That answered my question. Chuck Norris is a martial artist that had an acting career. He got a second wind of fame when he became a meme… Chuck Norris Facts. https://en.wikipedia.org/wiki/Chuck_Norris_facts

More correctly, he's a clown that had a clowning career.

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

#129
post #64

Next: Unikernel

Yes please! Still waiting for unikernels to actually become a thing. Looks so promising, but Unikraft has yet to launch their cloud offering and NanoVM is 7$ per unikernel, which, compared to an always on shared Hetzner vCPU for ~4$ (knowing those two are not exactly the same) is kind of pricey... Would expect them to be cheaper or at least cost the same

Oh, I had the impression NanOS was free.

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

#130
post #129

Earlier quoted context omitted.

Yes please! Still waiting for unikernels to actually become a thing. Looks so promising, but Unikraft has yet to launch their cloud offering and NanoVM is 7$ per unikernel, which, compared to an always on shared Hetzner vCPU for ~4$ (knowing those two are not exactly the same) is kind of pricey... Would expect them to be cheaper or at least cost the same

Oh, I had the impression NanOS was free.

I think you're right, but I'm mostly interested in the cloud offerings. It's super hard to convince anyone to roll your own unikernel infrastructure
Post reply on HN