Hacker Newsnew | past | comments | ask | show | jobs | submit | 6r17's commentslogin

1kloc is a bit abstract ; it seems you are in a great position to give a true bundled weight ; preact is about 3kb which is my fav for years - good job for the effort and results !

The library is actually ~1400 lines of code, and 51KB in size. Not very slim by JS framework standards, so focusing on that for the headline feels misleading.

9kb (minifier+brotli)

We could remove 3kb by removing the router but that's not gonna happen. You're more than welcome to minify+brotli it yourself if you use vertex.js in production.


"What I learned" - where ? couldn't be more bait-click.

I'm very surprised it's *that* short - handling one in rust i'm surprised by the very low amount of code to get that up. Thanks or sharing that was a first time reading some Zig for me !


what you’re experiencing is more or less why I am building some stuff in Zig instead of Rust


Looking at the code, I'm not really sure what part of this would be more verbose in Rust. This kernel does close to nothing, not even page table setup.

Granted, the code writing to the VGA buffer will need to be in `unsafe` blocks, but yeah.


it doesn't have a bootloader.


What's the point writing another kernel in C ???


Considering that we are talking about experimental toys which have lower odds of seeing production than of you winning a national lottery jackpot, the point of writing it in C would be the same as the point of writing it in anything else - IOW, the kernel is the objective, not the language used to write it.

.


If you read yourself you'll realize your answer i highly toxic, quiet honestly completely irrelevant, discouraging other people from doing what they like. I would get rid of people with your attitude, you are the kind of problem I don't want to have to deal with and more than that, I don't want to have juniors have to deal with you. Please realize that you had your chance and you played it. Nobody ow you an explanation if you can't even get basics up.


What in the sweet chili dipping sauce did I walk into?

drnick1 says why "Zig" not C? [I took the quotation marks as dismissive of Zig, but I could be misreading that]

6r17 says why do it in C?

lelanthran says the language is mostly irrelevant, it's a fun experiment.

6r17 blows off the handle and starts calling people toxic and being really unpleasant.

Nothing in this comment chain seems to justify even 1/10th of the vitriol espoused.


"Considering that we are talking about experimental toys which have lower odds of seeing production than of you winning a national lottery jackpot"


If you think that quote above is at all proportionate or justifies your toxicity, we have nothing else to discuss.


Yeah, but even if I'm doing something for fun I do want to be a bit unique with it. Anyone who's interested enough in osdev to build something for baremetal has at least attempted a unix-like kernel in C


I don't know - i'm 33 ~ now - recently with AI learning is much easier - don't get me wrong I definitely won't say that the brain does not slow down - but I'd definitely argue that we have advantages over kids - be it discipline, knowing how to learn ; and stuff like that - for example let's take coq which is I suppose one of the hardest thing we can learn - you can decompose it in ways myself as a kid or as a 20yo wouldn't even be able to. What I mean is that there is a lot of complexities or stuff i would get stuck upon that I just fly over today and know I'm alright - much better ability to focus in a sense


I learned coq as a teenager because the name was funny and one defined everything in terms of the `succ` function.

Never underestimate our motivation.


Continuing to do things only because they’re funny as an adult is one of life’s little treats!


Unfortunately, they changed the name to Rocq.


...as long as they also changed the defining function to `hard`, we're still good.


I wonder if everyone who said it was a lot easier for them to learn when they were younger aren’t factoring in their increased responsibilities as an adult.

I know when I’m actually able to sit quietly to study something, I’m able to pick it up fairly quickly. (One thing going for me is I’m much better able to sit still as an adult than a kid, ha.) But yeah, having to juggle work responsibilities for 8-9 hours a day and then having to also manage a bunch of things I didn’t have to think as hard about when I was younger (bills, cleaning, pets), I definitely just don’t have as much time to dedicate towards focused studying like that.


I feel like this is doomerism with high bias - i'm sorry but there is nothing founded here ; for all I know ; if Zig is able to put only one good reason to be used - some people will use it and not care - however this is a purely logical statement and I do not know of Zig so I might be blind here.


please. I don't understand how the fuck we still don't have p2p social networks and private sharing groups. The amount of possibilities to f* up any kind of control are massive - it's just that we end up writing some convoluted distributed mainframe when all people need is p2prss.


I'm not a c++ user but i'm pretty sure you should be able to pull-off a macro to do that ; in c you could alias the lib for something that breaks + alert ; I don't know how I would integrate such additional compiler checks in rust for other kinds of rules however - it's interesting to think about


Am I the only crazy one that bound awsd to movement ?


No, and it always should have been awsd or ijkl


I wonder if openbsd is secure running as a guest ? it it able to isolate it-self sufficiently so that the host cannot mathematically breach it ? (which makes openbsd very suitable for keyholding)


As of 2025 OpenBSD has support for AMD SEV and SEV-ES, with support for SEV-SNP work-in-progress, so with the right hardware yes it's able to isolate itself sufficiently https://www.bsdcan.org/2025/timetable/timetable-Confidential...


The host kernel and probably the host VMM can see guest memory, so I wouldn't use it for that.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: