HNHacker News
TopNewBestAskShowJobs

vkoskiv

886 karma · joined November 29, 2017

submissionscomments
vkoskiv··on An aborted experiment with server Swift
I don't have a valid opinion on the current state of Vapor - 2017 was a long time ago, and the people developing it have worked very hard to improve it in that time.
vkoskiv··on An aborted experiment with server Swift
I tried out Swift + Vapor back in 2017 when I was still a Mac user and a Swift enthusiast. I remember that at the time, I had quite a positive experience with Vapor 2 on Swift 3. I built a backend websocket server[1] for a hobby project[2], and managed to get it mostly working even though I was quite inexperienced in general.

The pain came later. They eventually deprecated Vapor 2, and I found that the new version of Vapor required essentially a complete rewrite, using some kind of async paradigm I couldn't quite grok. I kept using the program I wrote for longer than I anticipated, and more pain came when I could no longer figure out how to set up the toolchain needed to even build the thing. Eventually the only way to build and run it was to use an old Ubuntu 16.04 installation.

This experience left me with a distaste for modern tooling with lots of churn, so last year I decided to rewrite the thing in C with minimal dependencies, so it's guaranteed to compile with minimal modifications even in 30 years time. Really happy with the result[3]. I added new features, optimized the websocket messaging with binary messages and zlib compression, and generally made it way faster than needed.

It compiles in less than a second vs. the minutes it took to build the Vapor version, and the resulting binary is 324K with debug symbols, 144K when stripped + -Os, and 68K when UPX-compressed. It also uses a local SQLite db instead of a separate MySQL server, which makes deployment quite trivial (git clone && make run). The web client is still built with React, I've been thinking of rebuilding it with a single .html file and minimal JavaScript.

[1] https://github.com/vkoskiv/NoMansCanvas

[2] https://pixel.vkoskiv.com

[3] https://github.com/vkoskiv/nmc2

vkoskiv··on C++ Modules: Packaging Story
Totally agree that plain header files have many issues, and they are a common source of headache, but can someone explain to me why replacing plaintext, greppable header files with a seemingly very fragile/unportable binary format is a good idea? Surely I must be missing something? I get the sense that they tried to fix complex issues of header files by introducing more complexity. Is it assumed that new tooling will hide this complexity? All genuine questions, I haven't tried out C++ modules myself at all yet.
vkoskiv··on Mastodon for Apple II
Very cool that you added support for that too! Now I'll 100% be sourcing a SuperSerial card for my II+!
vkoskiv··on Mastodon for Apple II
Now I kind of want to buy a SuperSerial card for my II+ to try this thing out! Too bad any kind of Apple II hardware is really hard to find where I live.

Edit: Now that I look at this closer, it looks to me like I'd also need to buy an 80-column card to run this on my system.

vkoskiv··on Authors sue OpenAI for using their works without proper licensing
Are you really trying to argue that there exist humans that can learn facts at a similar pace to a datacenter running GPT training software on petabytes of scraped data? My point still stands.
vkoskiv··on Authors sue OpenAI for using their works without proper licensing
No, but the point still stands.
vkoskiv··on Authors sue OpenAI for using their works without proper licensing
Human authors cannot read and perfectly memorize millions of books in a day, and are therefore not comparable to computers running machine learning software.
vkoskiv··on Linux gives up on 6-year LTS kernels, says they’re too much work
The trend is sadly not reversing fast enough. Apple already discontinued their line of slightly too big phones (mini series), and now they only sell oversized phablets. I might not have viable iOS-based hardware options when I upgrade in 2-3 years, and I'm not comfortable switching to an operating system made by an adtech company. I do hope they go back to smaller sizes before then. Kind of baffling to me how Apple otherwise puts a lot of effort into accessibility, but their main line of phones are awkward and uncomfortable to hold even for a fully able-bodied person with average size hands.
vkoskiv··on Tracing: Structured logging, but better
Nit to the author: 'rapala' seems like a mistranslation. It is a brand name of a company that makes fishing lures, as far as I can tell. It is not the Finnish word for "to bait", and is therefore only used to refer to a that particular brand. I'm not sure what the purpose of the text in parenthesis is here, but 'houkutella' would be the most apt translation in this case.
vkoskiv··on Britain's roads can't keep up with our cars
AFAIK in many countries there is also the double whammy of heavy electric cars eroding the roadways a lot more, but not paying for the increased maintenance costs with petrol tax.
vkoskiv··on The Pirate Preservationists
I really worry that we've entered another dark age of software preservation with cryptographic DRM becoming ubiquitous in the last ~15+ years. Many of my formative years were spent browsing the brand new App Store for hours and hours, trying out cool new apps. It was just so exciting then, cool new stuff was coming out all the time, and I have a lot of fond memories from that time. I'm aware that there are archives of some portion of unencrypted .IPA packages from back then, but what about young people today? Will they be able to relive their digital youth in 10-15 years time? Seems clear to me that everything available now will be locked up, and the keys archived on some server in Cupertino, never to be released to the world for legal reasons. And setting aside malicious encryption, there are also all the the apps and digital experiences that depend on servers with a finite lifetime, and these are also becoming more and more common. Am I of the last generation that can relive that portion of my digital life in an emulator? It seems like we've already lost so much, and it's only getting worse.
vkoskiv··on time.apple.com (17.253.14.253) is returning the wrong date and time
So as askbjoernhansen helpfully pointed out, I can't actually just look at the reference timestamp and use that. I was a bit hasty when putting this together, I didn't initially read the spec, I just looked at the NTP response in tcpdump, saw that "reference timestamp" looks about right, and went with that. I now know how to compute the actual offset I'm supposed to use, and I'll implement that instead. That computation doesn't involve the reference timestamp. Still curious why the reference timestamp on this particular timeserver is stuck at that particular time, though. If anyone knows anything about this, do let us know!
vkoskiv··on time.apple.com (17.253.14.253) is returning the wrong date and time
You are correct, it seems! Still weird though why Apple's reference timestamp on this particular server is so far off? Thanks for pointing this out!
vkoskiv··on time.apple.com (17.253.14.253) is returning the wrong date and time
None of those servers is the specific one with the issue, though.
vkoskiv··on time.apple.com (17.253.14.253) is returning the wrong date and time
You're just querying time.apple.com, not 17.253.14.253 specifically.
vkoskiv··on time.apple.com (17.253.14.253) is returning the wrong date and time
Yes, but your code isn't specifically querying the timeserver I mentioned, which was 17.253.14.253.
vkoskiv··on GitHub was down
Didn't notice it this time! At work we use bitbucket, and for the last few weeks I've been hacking on a hobby project on a 37 year old Mac. It can't run Git, but it does have Amend[1]!

[1] https://amendhub.com/

vkoskiv··on Random Load Balancing Is Unevenly Distributed
The Halton sequence[1] is also a very nicely even distribution, and really quick to compute!

[1]: https://en.wikipedia.org/wiki/Halton_sequence

vkoskiv··on DOS/4GW made Windows 95 game compatibility easier, but with higher stakes
I write C primarily for hobby projects, and I only started with C ~10 years ago, so I'm likely in the minority that considers this a code smell for new C code. I don't want to needlessly extend the scope of my local variables! Different story of course if you're targeting C89 or older, which I'm actually doing in my current project. I'm writing software on and for my old 68k Macintosh.
vkoskiv··on I have received a $100k sponsorship for Ladybird browser
Basic pattern-based content filtering is already built right into LibWeb[1]. I spot 851 patterns that get filtered currently [2].

1: https://github.com/SerenityOS/serenity/blob/master/Userland/... 2: https://github.com/SerenityOS/serenity/blob/master/Base/home...

vkoskiv··on Apple Vision Pro Is Apple's New VR Headset
Will it let me block people, like in Black Mirror?
vkoskiv··on Distcc: A fast, free distributed C/C++ compiler
Just tried this. I have a slow ARM laptop and a fast x86 desktop. The ARM laptop seems to detect the desktop as specified in the environment variable, but it doesn't accelerate compiling at all. The x86 box sits idle while the ARM laptop compiles. I have the aarch64 cross compiler installed on the desktop as well. Maybe I'm just bad at RTFM, but I can't seem to get it to work.
vkoskiv··on Like the macOS Dock but for macOS System 7
jcs has a very nice series of Classic Mac programming videos, he writes programs in Think C 5 on System 6, on real hardware: https://jcs.org/system6c

He even made a version control system for the Mac called Amend, and a website to share Amend repositories, called AmendHub!

I'm also working on my Mac Plus under System 6, but I haven't finished any projects that I could share.

vkoskiv··on Like the macOS Dock but for macOS System 7
Have you considered sharing this on AmendHub? I'm still trying to come up with a fun project idea to implement and share there.
vkoskiv··on The i.MX8 cannot be deblobbed
Since the MNT Reform was mentioned in the article, it's worth pointing out that the way they handled this was to have HDMI disabled by default, and the user can then run a script to re-enable HDMI and reboot. When HDMI is disabled, the only non-free blob left is the DDR4 controller training blob.
vkoskiv··on Using mmap to make LLaMA load faster
It was a significant change, and Greg - the original author of llama.cpp was fine with it:

> Regarding the version comment - yes, the plan was to bump versions and no the magic. But I'm ok to change the magic to commemorate the significance of this update. In fact, maybe we can make this a thing and everybody who makes a significant contribution to the project will get their initials appended to the version. What do you think? smile

vkoskiv··on Sorry, What's Going on Here?
It is my understanding that the fixed operating costs (hosting/bandwidth) for this site are quite low. Not sure how much staff they have, but they are doing a really good job.
vkoskiv··on ssh whoami.filippo.io
Anyone can download the public key and impersonate that person in a scheme like this.
vkoskiv··on SERV: 32-bit is the New 8-bit [video]
Off-topic, but this is a brilliant comment, and exactly the type of stuff I come to HN for.

Historical insight, and a tip on how to get transcriptions with yt-dlp. I didn't even know it could do that!

Thanks for sharing this.

← PreviousPage 2 of 6Next →