Post B6ivbmcjxGnKQiDXWa by analog_feelings@tech.lgbt
(DIR) More posts by analog_feelings@tech.lgbt
(DIR) Post #B6ivbleTZKaZPo1Pai by analog_feelings@tech.lgbt
0 likes, 0 repeats
Wish zig earned more industry interest so there's more libraries and stuff, as well as a push to get it to stable quicker (or at least help)
(DIR) Post #B6ivblu4dL48CBJru4 by FoxFunction@tech.lgbt
0 likes, 0 repeats
@analog_feelings I think Zig is a pretty interesting language. I think a big problem though was that it got popular too early as in way before being close to 1.0. Also a lot of marketing is focused on it as an replacement for C instead of it being good in its own right. Zig has definitely come a long way in the past few years but it definitely needs to get to a stable 1.0 version. I think that Zig now supporting a package manager for its libraries will help their ecosystem grow and be better connected.
(DIR) Post #B6ivbm7BqZYcqrSLLc by analog_feelings@tech.lgbt
0 likes, 0 repeats
@FoxFunction eh, I do honestly think it has potential to replace C, after all it has all the features C offers with some compile time sugar. I love how the compiler can also compile C and even cross compile without having to compile a gcc toolchain. its awesomesauce :3
(DIR) Post #B6ivbmN8tGJleKv5DE by FoxFunction@tech.lgbt
0 likes, 0 repeats
@analog_feelings Aye its cross compiler and ability to interoperate with C is really impressive. If it did replace C it would probably take a long time. The staying power of C has been its standard that is surprisingly portable despite the various different implementations of the C language. I think the language has a lot of merit in its own right and focusing on that will help it's growth.
(DIR) Post #B6ivbmcjxGnKQiDXWa by analog_feelings@tech.lgbt
0 likes, 0 repeats
@FoxFunction yeah knowing corpos theyd be like "zig is too new" and still use C99 or C89
(DIR) Post #B6ivbmp9D8if3C1Rrc by kimapr@ublog.kimapr.net
1 likes, 0 repeats
i’d be like “zig is too new” and then use C++23RE: https://tech.lgbt/@analog_feelings/116646602544102519
(DIR) Post #B6ivbu1SRlj3NOpsWW by analog_feelings@tech.lgbt
0 likes, 0 repeats
@FoxFunction oh and dont forget the built in support for importing C headers and libraries (society if it supported C++ as well (even if its jank))
(DIR) Post #B6j3soUj3I8mmv6H5c by wyatt@soc.megatokyo.moe
0 likes, 0 repeats
@kimapr i'd be like 'zig is too new' and then use C89 or C99 because those actually work almost everywhere and aren't a shiny new thing i dont needRE: https://ublog.kimapr.net/objects/4f8037c2-0e63-4a47-8d73-76bfb3aaed17
(DIR) Post #B6j3soh8JA47POuBQe by linear@nya.social
0 likes, 0 repeats
@wyatt@soc.megatokyo.moe @kimapr@ublog.kimapr.net with a great deal of effort you can run Zig code on a 286, using a wasm interpreter (wasm is surprisingly well matched to 286 protected memory architecture)it has been my goal for several years to demonstrate it self-hosting on my own 286, and to allow anyone else to do the same, but i've shelved that until i get around to making my forth microkernel and its virtual memory system work properly, and Zig is a little more mature.
(DIR) Post #B6j4DbUGbmfuWlnbpg by linear@nya.social
0 likes, 0 repeats
@wyatt@soc.megatokyo.moe @kimapr@ublog.kimapr.net native code for that target is completely realistic too, and there's been discussion about exactly the features that would be needed to have first-class support for things like explicit near and far memory segment handling
(DIR) Post #B6j5tOWZIJ52RNMoK0 by kimapr@ublog.kimapr.net
0 likes, 0 repeats
@linear @wyatt Why not just run LUA instead? it’s written in C99
(DIR) Post #B6j5vAp9CdImWquCYK by linear@nya.social
0 likes, 0 repeats
@kimapr@ublog.kimapr.net @wyatt@soc.megatokyo.moe show me a self-hosting C99 compiler that targets my 286
(DIR) Post #B6j72brp9gOmNoGcuO by wyatt@soc.megatokyo.moe
0 likes, 0 repeats
@linear @kimapr i just use borland turbo C (almost C89) :terezi_shrug_smile:
(DIR) Post #B6j74DlDkmXECHwlV2 by linear@nya.social
0 likes, 0 repeats
@wyatt@soc.megatokyo.moe @kimapr@ublog.kimapr.net that's what i have been using too, alongside TASM, but this isn't self-hosting enough (since i don't have source code) and so it doesn't work for what i want.writing my own macro assembler in my OS's Forth dialect isn't much trouble, but i have found no suitable existing C compiler with source code that i could port to an arbitrary 286 operating system, like the one i am writing.