3,006 karma · joined Nov 1, 2009 (17y ago) · 1,339 submissions
In the past I developed SuperTux (http://supertux.lethargik.org) when I was bored.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
My personal conception of God is based on something more like quantum immortality - not only are you immortal because there are infinite copies of you and at least one of the copies must survive to observe the universe, but there is some sort of party at the end of time where all your selves can get together and figure out which copy had the best life. And then these selves collectively are God and they (re)created the universe so you could have the most satisfaction. But you yourself are just a copy so you'd better look up those answers with chatgpt so that you don't end up being one of the copies with a sad story to tell.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
I do think though that people can understand the benefits of adblocking. For example the digital video recorders that cut ads out of broadcasts, that was/is a successful product. And my friends complain about the ads - it is just that the blockers are not at a level where they can use them.
comment 2y ago · link · parent
comment 3y ago · link · parent
In Swift the best advice I found was https://forums.swift.org/t/read-text-file-line-by-line/28852...: use the C functions. I experimented with using FileHandle in Swift and manually scanning the return Data value for newlines, and found it added a 6x slowdown. The loop for scanning the newline does not optimize even the array access, it was calling a lookup function for every byte and there was of course no SIMD acceleration. Converting the Data value to a native Swift array did at least eliminate most of the lookup overhead, but from the profile it seems like it still does bounds checking on every access, so it doesn't optimize to SIMD or anything like that.
So that's the issue - the Foundation library isn't a portable wrapper over the native system calls, it is a thick wad of gunk that adds significant overhead to even simple programs. There was an effort to make a better API, https://github.com/apple/swift-system/, but it seems to have stalled (or perhaps an improved cross-platform API was never its goal).
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
"This is perfectly legitimate behaviour... BUT it would mean this would pass semantic checking as well: [...] So now we got this big piece of code that is wrong."
I don't follow. Wrong in what sense? Per the post it would compile and run just fine. If I comment out code so it's never run, it could be whatever I want. Maybe I write pseudocode and gradually uncomment it and turn it into C++ with CodeLLama. Why is Mr. Lernö butting in and telling me how to write code?comment 3y ago · link · parent
A different situation is you read a copyrighted news article and write the facts from it in your essay. Since the copyright of the news article only extends to creative expression and not factual information, there is no violation. For me, it is hard to tell what difference there is between this situation and an LLM identifying statistical patterns in the news article.