Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sortie
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
sortie
9y ago
Author here. Sortix is Sortix. MINIX is MINIX. I think each project has different goals and that's fair. Some thoughts though, for my os-test project I went and installed every free software Unix-like OS and ran a lot of tests on each
2.
▲
by
sortie
9y ago
Yep. I already have an issue about virtio filed at < https://gitlab.com/sortix/sortix/issues/473> . Not too high priority to implement but something I'd love to get to. Feel free to post additional h
3.
▲
by
sortie
9y ago
Author here. Like in Linux, libc provides errno on Sortix. The difference is that glibc does "#define errno (*__get_errno_location())" while Sortix libc does "__thread int errno;". linux syscalls return a negative value
4.
▲
by
sortie
9y ago
Author here. POSIX requires errno to be thread local, but with few requirements. Commonly libc's #define errno (*__get_errno_location()). Why? It's because the thread local storage isn't online very early on. The libc literal
5.
▲
by
sortie
9y ago
Author here. I'll probably omit the word 'modern' in the next release. Not for the reasons listed here, but because a bunch of stuff purports to be modern while forgetting the lessons of the past. I implement POSIX not for th
6.
▲
by
sortie
9y ago
Author here. Yep, though the network stack hasn't yet been merged to the master branch (but that's next and it'll be in the next stable release).
7.
▲
by
sortie
9y ago
Author here. Yep, I don't want to force a particular bootloader on anyone. The bootloader is a piece of software owned by the system administrator, not necessarily by any of the several operating systems installed side by side. If I fo
8.
▲
by
sortie
10y ago
Thanks! Be sure to let me know what you think.
9.
▲
by
sortie
10y ago
I used to start new coding projects weekly to play with one thing or another, not getting anywhere. With Sortix, there's now so many interesting areas to work on that I can work on whatever I fancy, and then still slowly accumulate use
10.
▲
by
sortie
10y ago
Thanks! You shouldn't, but it could be an addition if you want something to tinker with. I've been dogfooding with it, for instance completing my functional programming university course using just it and a scheme port. I discoura
11.
▲
by
sortie
10y ago
Thanks! As Zikes say, a little competition is good and gitlab is working out fine for me. I used to be on gitorious and it got bought by gitlab so I moved. I prefer being on a platform I can theoretically port.
12.
▲
Sortix 1.0 Operating System Released
(sortix.org)
129 points
by
sortie
10y ago
|
32 comments
13.
▲
by
sortie
11y ago
This is entirely undesirable. First of all, char16_t and char32_t are kinda useless as there's no standard interfaces using them, and there's no conversion functions to and from wchar_t. Secondly, no, you're asking for a mass
14.
▲
by
sortie
11y ago
I deliberately didn't write that to avoid the page going stale when OS X adds it. But OS X is behind the times and that's harmful. POSIX 2008 has been out for years and most of the lacking features are trivial to add. They're
15.
▲
by
sortie
11y ago
As in the article, strncpy has valid uses, but it's widely misunderstood due to the poor name. strlcpy is what the name suggests. People are also surprised by the zero padding.
16.
▲
by
sortie
11y ago
mbtowc isn't necessarily thread safe, it's better to recommend mbrtowc.
17.
▲
by
sortie
11y ago
Just use setlocale(LC_ALL, "") in main, and use mbrtowc to translate from whatever the system encoding is into the wchar_t type. There's no need to bake assumptions about the system encoding into most programs.
18.
▲
by
sortie
11y ago
char16_t and char32_t are useless. The C standard declares functions in <uchar.h> for converting them to and from char, but not wchar_t. The conversion to char may be lossy depending on the platform. No other interfaces uses those typ
19.
▲
by
sortie
11y ago
No, it's important to understand the distinction between char and wchar_t. Both are relevant, but in different contexts. char should be considered a byte type to pass around UTF-8 with. This is the appropriate level for the large major
20.
▲
by
sortie
11y ago
gnulib is atrocious beyond belief though. I hear GLib tends to abort your process on OOM, though I haven't done my research on this library, so I would be careful using these to develop reliable software.
21.
▲
by
sortie
11y ago
Whether C is appropriate is highly depending on the project and context. Higher level languages offer a lot and should be used when appropriate. But when C is appropriate, and these problems arise, which they will in any C codebase of appre
22.
▲
by
sortie
11y ago
I use that POSIX 2008 edition myself, and the PDF edition that I got through my university library subscriptions. I simply look up interfaces and headers in it. It's not a gentle introduction though to POSIX programming. But if you kno
23.
▲
by
sortie
11y ago
I appreciate you actually trying my OS and leaving a comment. chvideomode really should work under VirtualBox. If there's a bug on my end, I would really like to fix it. Could you show up in #sortix on Freenode IRC for a debugging sess
24.
▲
by
sortie
11y ago
I assure you there are plenty of room for designing your own operating system even if you implement POSIX. POSIX is a pretty reasonable minimal system interface for C programs. I osdev for fun and to challenge myself and I find a very ample
25.
▲
by
sortie
11y ago
Also to get your OS into space. That's definitely on the bucket list.
26.
▲
by
sortie
11y ago
I'm not trying to gain users. Sortix 0.9 is not permanently installable on real hardware from itself. The upcoming release will contain an installer for permanent installation, however. You are quite simply not my audience. Even if I d
27.
▲
by
sortie
11y ago
My utility function is to write a good operating system that I like. Any effort towards that goal is not wasted. If I can use it on my computers, which I can, I'm happy. Note the existence of secondary benefits. Sortix libz is a cleane
28.
▲
by
sortie
11y ago
Who ate the Apple logo?
29.
▲
by
sortie
11y ago
Sortix is because I want to write a good operating system that I like myself. I do like if it's generally useful.