[ / / / / / / / / / / / / / ] [ dir / arepa / britfeel / ck / lewd / mde / omnichan / qsourcex / tacos ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): a7568fb2d15eb50⋯.png (35.45 KB, 782x174, 391:87, hellos.png) (h) (u)

File (hide): 80baf6c2cd5080a⋯.png (3.51 KB, 344x166, 172:83, zig.png) (h) (u)

[–]

 No.993201>>993229 [Watch Thread][Show All Posts]

A bootable x86 kernel in 110 lines of Zig

code: https://github.com/andrewrk/HellOS

livestream: https://www.youtube.com/watch?v=yUge-ujPxzQ

Zig doesn't have cancer-curing language features (the author thought C was pretty good and only needed a few changes), but it's tooling is p. good:

zig build-exe hellos.zig --target-os freestanding --target-arch i386 --static  --linker-script linker.ld

 No.993229>>993834 >>994208

>>993201 (OP)

>hello world kernel

copied and pasted straight from osdev right?

now write a real kernel, replace loonux so we can finally have something guaranteed to be unpozzed for life.


 No.993234>>993255

I need to start learning Zig, to replace all the fucking C in the world


 No.993255

>>993234

You need to start learning C to replace all the cancerous languages like Zig in the world.


 No.993266>>993268 >>993270

Why do these hipster langs refuse to write the 5 or 10 lines of code required to support tab indents and \r\n endings? At least it produces reasonably-sized executables (16 kB Hello World with --release-fast, add 0.5 MB for the default "with safety" version). Probably will end up like Nim (completely irrelevant).


 No.993268>>993270

>>993266

it's passive aggression

"I hate it when people mix tabs and spaces, but I don't want to have to tell someone to do things my way"


 No.993270>>993275

>>993268

>>993266

Your editor should be smart enough to turn tabs into spaces. You should always use spaces to indent your code, since it will look the same on all systems.


 No.993275

>>993270

I'm more of the opinion that space indenting adds nothing of value; just the ability to align columns. For that, you have to accept:

* an appreciable amount of code and complexity added to your editor,

* the loss of comfort while making quick vi edits, and

* allowing people with terrible taste in indentation widths to force their insane orthodoxy on you.


 No.993834

>>993229

Once I get off my ass and put real work into my design, I'd most likely never release it. I'm only interesting in keeping myself "unpozzed" for life, and simply have no interest in writing drivers for shit I don't and won't ever have. Nodevs are on their own, make your own shit.


 No.994208

File (hide): 7760d36efa49566⋯.jpg (267.97 KB, 1024x768, 4:3, 1476422357376.jpg) (h) (u)

>>993229

>kernel

>110 lines

>hello world

meh. my kernel has HI END GRAPHICS

https://0x0.st/sIOu.gz (it's tar.gz, source, HI QUALITY MEDIA ASSETS and resulting image)

>qemu-system-x86_64 -fda derp256.bin




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
9 replies | 1 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / arepa / britfeel / ck / lewd / mde / omnichan / qsourcex / tacos ][ watchlist ]