Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kajaktum
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
181.
▲
by
kajaktum
4y ago
Well, I've refactored large portions of Rust code with ease and I can't imagine doing it with any C/C++ code because I might break some invariant somewhere.
182.
▲
by
kajaktum
4y ago
Not having exception is not having incorrect code i.e. code that does not throw. This is very hard to do in languages that naturally throws exception like Java or C/C++. If you have errors as part of the contract however...now you can
183.
▲
by
kajaktum
4y ago
I am pretty sure all form of public social media is toxic. If you give people: 1. a platform to speak their mind (basically can type anything) 2. is public (as opposed to private like Discord servers) then you will get everything bad about
184.
▲
by
kajaktum
4y ago
The kernel is just a bunch of code. What prevents the browsers from implementing all the capabilities of the kernel? Why can't my computer boots into a browser directly and it then figures out how to talk and manage the hardware direct
185.
▲
by
kajaktum
4y ago
No, what I mean is that our browsers are becoming OSes. So why don't OSes become more like browsers? The way it works now is that each of my tabs have their own VM (tabs) that runs on another VM (browsers) which itself runs on another
186.
▲
by
kajaktum
4y ago
Can someone tell me why OSes can't do what browsers do? It seems to me that browsers are the OS of today so why not just skip the middleman and make it first class? It seems to be a layer that exists solely because the 3 competing OSes
187.
▲
by
kajaktum
4y ago
>What signature do you get from "if err := myFunction()"? You provided an example from Go which is almost like an exception. And I think it is bad. You have a function that returns....something?? Instead, if you have something
188.
▲
by
kajaktum
4y ago
>All popular languages have some way to encode the fact that a value is absent. The problem is that many languages don't make the distinction in the type system. Why oh why do we not force everyone to null check every time?
189.
▲
by
kajaktum
4y ago
>Since the language is GC'd and doesn't have language support to make a result type practical, it seems like exceptions are a no brainer. Elaborate? What prevents Go from introducing result monad aside from the syntax?
190.
▲
by
kajaktum
4y ago
The answer to error handling is ADT like Result<T, E> or Maybe<T>. The problem with old exception is that it is not part of the function signature. If a function says it accept a key and return a value; why should I expect it to
191.
▲
by
kajaktum
4y ago
Easy, nanobots that will create a projection preys and once their predator captures them, the projections will turn into their respective food source. The predator still have the illusion that its capturing something, but no consciousness a
192.
▲
by
kajaktum
4y ago
> I don't mean that this is overly cruel to animals, because nature itself is cruel I don't quite get why if nature is cruel then some level of cruelty is okay. If I have a button that when pressed, will cause all cruelty in an
193.
▲
by
kajaktum
4y ago
I am curios to know if the trait system helps a lot with mapping the underlying kernel features/quirks? Which language is better at creating abstractions that maps closer to how the kernel works?
194.
▲
by
kajaktum
4y ago
Half the comments here are talking about the vtuber herself. Who cares. It's been talked before. Just imagine if half the thread is discussing what gender she is. What I am interested in is the claims here https://asahilinux
195.
▲
by
kajaktum
4y ago
Constructors was a mistake. Stupid and simple initialisation like Rust and Go is the way to go forward.
196.
▲
by
kajaktum
4y ago
>Types are great, but they're just one tool in the toolbox. Of course, everything is just tool. Its up to us to decide if we want to use it or not. What I don't understand is why wouldn't you use it. I totally understand i
197.
▲
by
kajaktum
4y ago
So you’d rather have more bugs than less? Given any piece of JS code, you can’t actually reason about it unless you also know its caller. Or you do defensive programming. At which point, why even bother.
198.
▲
by
kajaktum
4y ago
What exactly is wrong with being mediocre?
199.
▲
by
kajaktum
4y ago
> How do you know the engine won't blow up 5 laps into the race? Lol you do realise this is a dunk on C right? 40 years of experience and we have seen all kinds of stupid shit written by very smart people. Just imagine if the kernel
200.
▲
by
kajaktum
4y ago
You're welcome (as I smile not out of my free will)
201.
▲
by
kajaktum
4y ago
If thinking about free will causes you suffering. I implore you to not read further. I do not intent to cause any suffering. >The way we experience our lives indicates that we make choices and they have consequences Even if we don't
202.
▲
by
kajaktum
4y ago
>want >intentionally >chose None of these words make sense. I can't want what I want (author's thesis here). This higher level of abstraction that you talk about is an illusion caused by not paying attention. I can rumina
203.
▲
by
kajaktum
4y ago
I used to think that free will existed but now I am surprised we even think that. Just looking inwards is enough to convince me that I have no idea what I am going to think next, type next, or how I am even going to finish this sentence. It
204.
▲
by
kajaktum
4y ago
What does waiving my moral rights mean? IIUIC, when Paypal says this it means that it is not responsible for whatever service I use it for?
205.
▲
by
kajaktum
4y ago
It doesn’t matter if I like it or not my point is that it is not a C replacement. Unless you are talking about personal preference then sure. But I don’t think we as an industry should look to replace C with Go.
206.
▲
by
kajaktum
4y ago
Oh yes, the language that STILL have null pointer dereference is a good replacement for C in this day and age. Please. Go feels like a person stuck in the 80s idea of a modern programming language. Oh and the idiom of the language is to tre
207.
▲
by
kajaktum
4y ago
This feels like Github expanding because it can't find anything else to do...It being a for profit organization means that it's unable to say "you know what we pretty much have everything we wanted so we're just going in
208.
▲
by
kajaktum
4y ago
I've not watched a single Netflix show the past half year and possibly more. I've only glanced over them as I walk by the living room when my family members are watching them. There's really nothing that interesting in these
209.
▲
by
kajaktum
4y ago
I’ve finished Endwalker and the ending is one of the few stories that broke me. Really got me thinking about our place in the universe and our planet specifically.
210.
▲
by
kajaktum
4y ago
It's so that when you are 50 function calls deep you don't have to remember if you are handling a verified email or not. This is the same problem I have with "sum types" as implemented in languages that don't have a
More ›