Being reading a lot about betterC, but still have some questions

kiboshimo matheusmvpeixoto at gmail.com
Tue Jul 9 20:03:15 UTC 2024


On Tuesday, 9 July 2024 at 14:42:01 UTC, monkyyy wrote:
> On Tuesday, 9 July 2024 at 07:54:12 UTC, kiboshimo wrote:
>> - betterC can be compiled to WASM, but some of phobos can't, 
>> so basically same worries as above. I'm afraid to lose some 
>> essential systems stuff that I could not replace.
>
> yes, and your not afraid enough
>
>> Really liked the idea of doing it with betterC to start my 
>> systems programming journey
>
> Theres nothing even slightly pleasant or easy about d's wasm 
> "support"; I wrote my own cos, sqrt functions, you get 
> *nothing* from phoboes

Writing my own math functions is outside of my range, I still 
have hopes of this not being so hard. So you get another 
opportunity to crush it.

You could have used a C library for those things you implemented 
yourself, right? I suppose you didn't because doing things is 
cool, or because C is "not ergonomic" to use as foreign code. 
Because of the quirks. Which would make for a not so pleasant 
experience when writing a small game.

What do you think about using C libraries like that?



More information about the Digitalmars-d-learn mailing list