7 ms·
Impending kOS (2014)
- deleted 7y ago[deleted]
- pvg 7y agoPreviously (in 2014) https://news.ycombinator.com/item?id=8475809 https://news.ycombinator.com/item?id=8475809
- officemonkey 7y agoThe original MacWrite fit on a 400 kb floppy.
- pvg 7y agoWordStar 1 fits in about the size of this page with a few comments and that gargantuan 7k favicon.
- adrianN 7y agoI too wish we could get rid of all the bloat and use the marvelous machines at our fingertips to their full potential. But I seriously doubt that you can write a bloat-free OS that runs on multiple brands of laptops with a bloat-free webbrowser that allows me to read most websites with a small team in reasonable time, no matter how brilliant the people involved are.
- tosh 7y agoI can imagine working on a special purpose machine that streams legacy software in similar to how stadia streams in video games. This might not have been feasible or practical a few years ago.
- toast0 7y agoThis has been feasible and practical several times in the recent past. Serial terminals, Thin clients, X server thin clients, PC Anywhere, VNC, Windows Terminal Server, Citrix whatever it's called, Virtual Desktop Infrastructure, steam link, etc. Office productivity applications have a lot looser latency requirements, and tend to change the screen less frequently than games too. But current solutions are capable of playing videos and some gaming.
- gmueckl 7y agoLet's not forget that there are hacks like old mainframe apps that get accessed through web browsers where the web server is literally just a screen scraping wrapper around the legacy application. Inelegant? Fragile? Crappy to maintain? Yes. But it works.
- AnIdiotOnTheNet 7y agoYou don't need to involve streaming, though that is an option. You could do like we used to do with some personal computers and just have an add-on board that ran some other arch and OS. Between that, virtualization, emulation, and WINE-like compat layers you should be able to run just about anything.
- atemerev 7y agoWell, we already have a database like that. So why not a browser or an OS. Unfortunately, there's only one Arthur Whitney. Other people can emulate his style and genius, but I don't know anybody else who brings this kind of ruthless minimalism to everything they do -- and make it work so well.
- tellme_throwa 7y agoYou have plan9 for OS... And check suckless.org, especially dwm
- RodgerTheGreat 7y agoI think a bloat-free web browser that works with most existing websites is a contradiction in terms. You could have something fairly simple that did the _job_ (jobs?) of a web browser, but it would not be broadly compatible. You could write something broadly compatible, but it would be intrinsically, inescapably very complex. Maybe if we all thought like Arthur we'd just use gopher and be able to write a new client or server from scratch in an afternoon.
- mwcampbell 7y agoLet's add a couple more constraints. The OS and the applications that run on it should be accessible to people with various disabilities and should support a variety of human languages for both input and output. And there are probably more things I'm not thinking of that any widely used platform must have. To be sure, software does have some bloat. But some of the complexity is necessary for software that can be used by the whole world.
- bodi 7y agoMost of the bloat is covering bad or outdated architecture. Imagine starting from scratch with Genode or what Google is doing with their new (3rd) OS.
- Asooka 7y agoGoogle are (only) replacing the kernel. Which I think is the right approach - identify the bits that are holding you back (in this case holding you from taking full control of the os) and replace only those with ones that are as compatible as possible with the existing software.
- bodi 7y agoThey're pretty much designing a whole new OS stack actually. https://en.m.wikipedia.org/wiki/Google_Fuchsia https://en.m.wikipedia.org/wiki/Google_Fuchsia
- bad_luck 7y ago> accessible to people with various disabilities I agree that's important, but I don't think that a great OS should become just a good OS in pursuit of that goal. After the OS is made, it seems like there would absolutely be ways to make the system accessible as-needed.
- AnIdiotOnTheNet 7y agoWe made DOS work with various non-latin languages and for people with disabilities. If DOS can do it, anything can.
- AnIdiotOnTheNet 7y agoAs others have mentioned, a bloat-free web browser is impossible currently because the web itself is far too bloated. However, I'm not convinced that our OSs can't be much, much simpler. You can, almost reasonably, use DOS as a daily driver still. I have very fond memories of DOS because it was simple. Even as late as the early 2000s, if you wanted something like a MAME cabinet you'd often use DOS. You just plop some application and data folders onto a disk with like 4 system files and you were pretty much done. Where is today's DOS? I suppose it's Linux, which is orders of magnitude more complicated (especially once you start talking about a GUI) and even Linus admits it has become quite bloated. I personally think we can do a lot better and I've been toying with the idea of putting something together because I'm just so sick of modern computing's bullshit. PS: If anyone is aware of an organized effort towards this goal that already exists, please let me know.
- meruru 7y agoI'm not sure exactly what you have in mind, but have you considered OpenBSD?
- AnIdiotOnTheNet 7y agoLet me put it this way: if it has a package manager, it's not what I'm looking for.
- meruru 7y agoThat's weird, why wouldn't you want a package manager? That said I think 9front and Redox lack them. Have you considered those?
- AnIdiotOnTheNet 7y agoBecause the purpose of a package manager is to hide complexity that shouldn't exist in the first place.
- 7y ago
- andrewflnr 7y agoWow, that's... terrifying? I feel vaguely terrified. It makes me feel like a big dinosaur about to be supplanted by tiny birds and mammals.
- userbinator 7y agoAPL and the culture surrounding it is what you get if you assume that programming languages are, like human languages, meant to be learned and fully exploited, unlike the lowest-common-denominator dumbing down that's more common in mainstream programming languages. I find it very interesting how much people can learn if they try.
- smikhanov 7y agoWhat in particular stops you from learning and fully exploiting the C programming language?
- userbinator 7y agoThe notion that code should be dumbed down --- it's not as prevalent in C as it is in C# and Java, but definitely still there.
- riffraff 7y agoso, what happened with kOS since 2014?
- jnordwick 7y agohttps://shakti.com/ https://shakti.com/ the new project. Arthur has a tendency to turn mid stream sometimes. I'm sure much of that code was used in this new DB he's working on (db's and os's are quite similar).
- edwintorok 7y agoI thought this refers to a RISC-V processor (https://shakti.org.in/ https://shakti.org.in/), which would've been quite a turn indeed.
- avhon1 7y agoIt seems that Whitney has continued working on kOS, but nothing major has been released or announced: https://gist.github.com/chrispsn/da00835bb122c42f429a084df83fd746 https://gist.github.com/chrispsn/da00835bb122c42f429a084df83...
- bad_luck 7y agoI heard from an earlier posting of this link that he got overwhelmed by driver support. I forget if he dropped it entirely.
- jnordwick 7y ago"As the code base improved, kdb+ releases became faster – and smaller." This is what I always strive for. Although I've only met Arthur a couple of times, he has been a huge influence on me as a developer. Besides some shared personal interests, his development philosophy that simplicity and consistency produces performance and malleability (to be able to constant add, subtract, or write). He's on the top 3 developers I try to model myself after. While he's a god among men, his products (A+, K, KDB, Q, and now Sakti) make others mortal also gods among men by just learning to think and use his tools. My co-workers I'm sure get annoyed at my code-reviews ("delete this", "rthisewrite fir first with that then delete the second", "delete all this and return this",. ...) where I consistenly call for deleting a remodeling code to be as minimal as needed. I'm brutal about it - as I learn from K and it is partially Arthur's fault (and another dev I look up to). Maybe now they know where I picked part of it up. https://shakti.com/ https://shakti.com/ is his new distributed database project that is still somewhat hush hush, (and he not the kind of person that plays buzzword bingo - so I assume he has something special planned). I cannot wait to see how that turns out. I don't know if he's ever produced a bad product.
- delinka 7y ago> ... "rthisewrite fir first with that then delete the second" I'd be annoyed at this code review comment. "rewrite this `for` loop first, then delete the second `for` loop" is what I assume you intended.
- gmueckl 7y agoRemember that as a reviewer, you always have an advantage over the coder: as the coder, you need to crack the problem and find an algorithmic solution. It's easy to have a couple of false starts with this. These do stick around through iterations and changes. Eventually, you submit something that works, but you're overlooking that the code could probably be less convoluted in places, because you know the solution and it is perfectly reasonable. The reviewer who gets to read the code gets to walk the shortcut to the solution after the trail was blazed for them: they get to think purely about the working solution without the intermediate steps. And they naturally will find places where the original developer was thinking in terms of his failed earlier attempts. I bet that if I gave you a non-trivial problem to solve in a reasonable amount of time I could do the same kind of review on your code, forcing you to shorten it. And I will find something. Guaranteed. That is just how these iterations work.
- anonu 7y agoWish there was an open source version of kdb and q. Kdb is fantastic as an app server framework. The q language is just enough syntax help on top of cryptic apl to make it useful to a mass audience. We need a free and open project that replicates this functionality.
- bad_luck 7y agoThere is something called kona, I believe, but one of the best things about kdb/q is the speed and I've never seen comparative benchmarks.
- aasasd 7y agoSince K is supposed to be very small, the mystery is why no one has looked at the disassembled code of the free version and copied the optimizations to elsewhere.
- 3xblah 7y agoI don't like the fact that it is closed source but not having source code does not stop me from utilising it on a personal basis. I think it makes sense to use it in this capacity and learn the language as best one can in the event that an open source option besides kona does someday become available. k is one of the very few closed source programs I use. It is interesting how the closed source issue is consistently raised on HN with respect to k when there are numerous other examples of closed source software used by HN readers where I never see this issue raised. In those cases it does not seem to be important. For some reason however, it seems availablity of source code is important to some folks in the case of k. I am curious; What would you do with the source code? Is it an issue of verifying what the software is doing, or perhaps being able to modify the software or make "fixes"? Is it something else? Maybe you simply want a free option for commercial use. If the later, please disregard my curiosity. For me the issue I have with k being closed source has always been ports, i.e., limited OS support. They used to have a FreeBSD port many years ago, but today there is no support for OS other than Windows/Solaris/Linux, e.g., NetBSD.
- adrianN 7y ago
- aasasd 7y agoI'm guessing kOS will be released at about the same time as the first article about K that actually says how it achieves the performance.
- tluyben2 7y agoBesides Whitney being being very good at finding and sidestepping bottlenecks (like writing his own memory management because the OS one is too slow), the entire interpreter, db engine and 3rd party software fits into L1 or at least L2 cache. This is a marketing blurb saying that as well https://kx.com/discover/in-memory-computing/ https://kx.com/discover/in-memory-computing/ . But when you read about and try out Whitney software you will see that terseness in every way does makes things faster.
- aasasd 7y agoI've heard about the cache thing, but that doesn't explain much. How is it different from machine code or VMs? Does it remove the need to read program's data? How much time does a non-K program usually spend moving the code from memory? Why wouldn't generations of programmers make the same optimizations―or just copy them from K? Or what are the tradeoffs, considering that K programs are essentially bytecode? Also, there are plenty of memory allocators to choose from, and every runtime that doesn't use the libc has to ship its own (if it does memory management, of course). The OS only gives you big chunks to use as you please, and you can't sidestep the syscall. So that's not a super novel thought.
- tluyben2 7y ago> I've heard about the cache thing It's very optimized for in memory use, so assuming the db is all in working memory and the code operating on the data is in L1/L2, and for the type of data in the column store (Kdb+), you usually pull related chunks into the Lx data cache on which you filter. I would say k is fast for the use case where column memory based storage is a good fit, so relatively small data sets that live in memory and where the operations on the data fit column stores well; I would bet almost all k programmers (including myself) mostly have experience with those datasets or have shoehorned less suitable cases into that case because it did not perform otherwise. There is obviously no magic, besides, for many 'new' programmers and for current standards, the incredibly small binaries for so much functionality. And that helps with always staying in cache vs almost every other software you will use these days where there is continues chunks of instruction data going to and from cache. That's why C (and maybe Rust some time in the future but the binaries were too large when I last checked) is still important if you really want to get to that point. Ofcourse in that 200something kb k/kdb+/q binary there is no room for much optimizing, that is why it absolutely falls down for cases it was not optimized for. And when you use a lot of k you know how (and automatically do) to shoehorn basically anything in those cases. It is not magic by any means, but it comes closer to magic for many as it is alien like assembly compared to JS or C# or something like that I guess. And the speed comes from keeping to your niches. > Also, there are plenty of memory allocators As I understand it, he did it because he did not find the Windows memory allocator efficient enough specifically; not sure why he didn't check for other allocators; I guess because he was optimizing a runtime, he just rolled his own instead.
- dchest 7y agoFound this demo of kOS https://www.youtube.com/watch?v=kTrOg19gzP4 https://www.youtube.com/watch?v=kTrOg19gzP4
- traverseda 7y agoHere is a text editer written in k \l view.k /key(return back ^delete) kx:kr:{u,:,(j,j+#x;*k_a);e[k]x};kb:{$[=/k;J j-1 0;];kx""};cd:{J j+!2;kx""} /edit(undo cut paste) e:{a::?[a;x;y];J(*x)+#y};cz:{$[#u;e/_`u;]};cx:{kx cc`};cv:{kx@9'`} /save cs:{n::$[#n;n;0'""]1:a;r::a} http://kparc.com/$/ http://kparc.com/$/ It's not something I find appealing, personally. Then again I am a python guy, which is about as far from this as you can get.
- RodgerTheGreat 7y agoWhat, precisely, do you find unappealing? Is it unappealing to have to write so little code to accomplish the task? Is it aesthetically unappealing to you? How much of that comes from it looking unfamiliar? If you spent a few days working with code like this, would it seem less strange? A month?
- jodrellblank 7y agoAnd here's one written in (Dyalog) APL: https://github.com/arcfide/ALE https://github.com/arcfide/ALE
- guidoism 7y agoI'm a python guy myself and I love the APL languages. In my mind I put python and APL in the same category of: I spend more of my time thinking about what to write and less time actually banging out text in the editor.
- all2 7y agohttp://kparc.com/lisp.txt http://kparc.com/lisp.txt Is he saying k is a lisp? I'm sure there are important differences here, but I don't know enough to say what they are. (There is a question implied there.)
- Volt 7y agoIt's a comparison to Lisp.
- undecidabot 7y agoFor those who want to see it in action, there's actually a talk about kOS on YouTube: https://www.youtube.com/watch?v=kTrOg19gzP4 https://www.youtube.com/watch?v=kTrOg19gzP4. The talk is by the fourth member, Geo, who also frequents HN (geocar).