HNHacker News
TopNewBestAskShowJobs

eknkc

4,499 karma · joined September 20, 2012

https://github.com/eknkc
submissionscomments
eknkc··on Stride Game Engine 4.3 with .NET 10 Support
Let's say I want to create a small 2D game. I'm no game dev so nothing fancy, just a PoC. I'm willing to take a code first approach and I love C#. What is my best best?

- Unity seems promising but they have a weird version of mono running things and not so recent C# features available. Might be a non issue.

- Godot seems more promising for my use case but I feel like they want you to use GDScript. I don't want to use GDScript while there is a perfectly capable C# engine there. Is .NET second class in Godot?

- MonoGame was basically abandoned for a long time. I wonder if it got any better. That might be a little too much "code first" though.

Stride.. I just heard it the first time ever. Its a shame. And apparently it is a proven engine especially in VR space. Jumped on it, unfortunately no macOS support available so can't dig in right now.

eknkc··on Gemini 3
Looks like it is already available on VSCode Copilot. Just tried a prompt that was not returning anything good on Sonnet 4.5. (Did not spend much time though, but the prompth was already there on the chat screen so I switched the model and sent it again)

Gemini 3 worked much better and I actually committed the changes that it created. I don't mean its revolutionary or anything but it provided a nice summary of my request and created a decent simple solution. Sonnet had created a bunch of overarching changes that I would not even bother reviewing. Seems nice. Will probably use it for 2 weeks until someone else releases a 1.0001x better model.

eknkc··on How Quake.exe got its TCP/IP stack
Completely off topic;

So I just took a look at DJ’s website and he has a college transcript there. Something looked interesting.

Apparently he passed a marksmanship PE course at the first year. Is that a thing in US? I don’t know, maybe its common and I have no idea. I’d love to have a marksmanship course while studying computer science though.

eknkc··on Winamp clone in Swift for macOS
https://webamp.org/
eknkc··on I Am Mark Zuckerberg
I share the same name with a local TV star in my country. Even that is a PITA. Can’t imagine being named Mark Zuckerberg or Michael Jackson or anything like that.

At some point there were teenager girls calling me (no idea how they got the phone number). I started acting like they called the right person and there would be happy screams on the other hand. I guess the high point was that. I decided that might not be a good idea though. Would definitely continue if my “fans” were middle aged men.

eknkc··on Sick: Indexed deduplicated binary storage for JSON-like data structures
.net has a polymorphic serializer where the output json contains a $type field for deserializer to choose the concrete type.

It needs to be the very first key in the object. I’ve been bitten by this because postgresql’s jsonb also does not preserve the key ordering.

I believe the latest .net release addresses this but key ordering does matter sometimes.

eknkc··on Show HN: JSON Query
Most alternatives being talked about are working on query strings (like `$.phoneNumbers[:1].type`) which is fine but can not be easily modeled / modified by code.

Things like https://jsonlogic.com/ works better if you wish to expose a rest api with a defined query schema or something like that. Instead of accepting a query `string`. This seems better as in you have a string format and a concrete JSON format. Also APIs to convert between them.

Also, if you are building a filter interface, having a structured representation helps:

https://react-querybuilder.js.org/demo?outputMode=export&exp...

eknkc··on Just Use Curl
I use httpie (not httpie actually, https://github.com/ducaale/xh but it has the exact same ux). For the life of me, I can't remember curl flags for some reason. Even fucking -X POST... Sending JSON is pain too.

For quick and easy http requests, httpie has been fantastic.

eknkc··on Pointer Pointer (2012)
Since this is old, I assume someone found these photos and then manually selected the pointer location. Maybe used openCV or something like that.. But I'd most likely go with manual.

There are 700+ images defined in https://pointerpointer.com/new-positions.json and the script finds the closest match to the current mouse pointer.

eknkc··on Meow.camera
This seems like a great program!

Small anectode;

My wife runs a cafe in Ankara, Turkey. A week after opening a random cat walked in and claimed one of the chairs.

We started feeding him. Then another walked in... We left a large automated feeder outside and started spaying / neutering, vaccinating, deworming them. I think we neutered close to 20-30 cats. A couple needed medical intervention (broken limbs, infections etc). And 2 I had to put down because they were too far gone. This effort alone put the neighborhood kitten population in control.

The place was aimed at health conscious / vegan people so the theme fit with cats hanging around.

It is really emotionally and financially draining to do these things. I've been fortunate enough to fund everything myself but I assume it is hard when scale grows larger and there is not enough help.

eknkc··on European.cloud: A Curated Directory of EU-Based Cloud Providers
They have a cloud offering. Hourly billing instances with basic management features. They also have an S3 compatible storage service as part of it and a load balancer.

I mean it is not really "cloud" compared to larger ones, just a toy but they are building things now.

eknkc··on Help us raise $200k to free JavaScript from Oracle
I personally am a user of JavaScript and don’t care what it is called. Call it FuckScript for what I care. How does this benefit anything other than Deno marketing?
eknkc··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
I've been using pnpm and it does not run lifecycle scripts by default. Asks for confirmation and creates a whitelist if you allow things. Might be the better default.
eknkc··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
Does that even matter?

The malware could have been a JS code injected into the module entry point itself. As soon as you execute something that imports the package (which, you did install for a reason) the code can run.

I don't think that many people sandbox their development environments.

eknkc··on Vector database that can index 1B vectors in 48M
I guess for 2D vectors that would work?

For 1024 dimensions even with 8 bit quantization you are looking at a terrabyte of data. Lets make it binary vectors, it is still 128GB of VRAM.

WAT?

eknkc··on A new experimental Go API for JSON
Go already has a JSON parser and serializer. It kind of resembles the JS api where you push some objects into JSON.stringify and it serializes them. Or you push some string and get an object (or string etc) from JSON.parse.

The types themselves have a way to customize their own JSON conversion code. You could have a struct serialize itself to a string, an array, do weird gymnastics, whatever. The JSON module calls these custom implementations when available.

The current way of doing it is shit though. If you want to customize serialization, you need to return a json string basically. Then the serializer has to check if you actually managed to return something sane. You also have no idea if there were some JSON options. Maybe there is an indentation setting or whatever. No, you return a byte array.

Deserialization is also shit because a) again, no options. b) the parser has to send you a byte array to parse. Hey, I have this JSON string, parse it. If that JSON string is 100MB long, too bad, it has to be read completely and allocated again for you to work on because you can only accept a byte array to parse.

New API fixes these. They provide a Decoder or Encoder to you. These carry any options from top. And they also can stream data. So you can serialize your 10GB array value by value while the underlying writer writes it into disk for example. Instead of allocating all on memory first, as the older API forces you to.

There are other improvements too but the post mainly focuses on these so thats what I got from it (I havent tried the new api btw, this is all from the post so maybe I’m wrong on some points)

eknkc··on Next.js is infuriating
If you don't like changing APIs I'd stay away from the Remix guys. I know it is not like Next but I've used react-router, which had some API churn, later evolved to remix and then back to react-router... Backward incompatible changes are the signature of it. The documentation story is a problem too because of that. Completely different things are named the same and they are now building a new Remix, not even on React as far as I can tell.

Stick with a single version and you'd probably be happy though.

eknkc··on Next.js is infuriating
I have a tendency to use different stuff on new projects for the sake of it. I've built apps with express + react on client, angular, vue, next, nuxt.. Used go, .net, node, php etc on the server. I always find good and bad parts and appreciate different aspects of different solutions.

Not Next though. We built a pretty large app on Next and it was painful from start to finish. Every part of it was either weird, slow, cumbersome or completely insane.

We still maintain the app and it is the only "thing" I hate with a passion at this point. I understand that the ecosystem is pretty good and people seem to be happy with the results given that it is extremely popular. But my own experience has been negative beyond redemption. It's weird.

eknkc··on Show HN: Clyp – Clipboard Manager for Linux
I thought wayland had some restrictions on global clipboard access and the last time I tried none of the well known clipboard managers worked as expected. (Also they all looked like shit).

This has been one of my pain points switching from macOS to linux or windows. Great job.

eknkc··on Benchmarks for Golang SQLite Drivers
I have done a lot of data migrations between sqlite -> postgres and such using duckdb. It works great but does not seem to perform well. I'd simply leave an instance churning data but a specialized small cli tool would probably work a lot faster.
eknkc··on Orion Browser by Kagi
Yes. I do not tend to launch new tabs. I almost always use a single tab for browsing. Only when I need to keep something around then I launch a new tab to preserve the old one.

That means the address bar is my main interaction with the browser.

eknkc··on Orion Browser
Yeah. That’s one reason I stopped using Kagi. Its not their fault but it is what it is.
eknkc··on Reading QR codes without a computer (2023)
I remember downloading stuff from usenet 20 years ago and the par files going with them. Basically, files were split into chunks and you’d merge the chunks. In case there was a missing or corrupt chunk, the par files would allow recovering the missing part. You did not need to download entire par chunks either. You lost 1mb? Download 1mb of par and recover it (or something like that, cant remember now).

That blew my mind and I went into a rabbit hole of error correction. I did not know about the reed-solomon or any other methods. Just took days to understand it. Implementing my own par like shitty thing in the process.

This brings that back as I’m more curious about the error correction than the actual bit encoding.

eknkc··on Bun adds pnpm-style isolated installation mode
It is also my first choice now. Especially due to built in SQLite support. Also recently needed to write a simple script to dump some data to S3. Found out that bun has built in s3 client too...
eknkc··on Measuring the Impact of AI on Experienced Open-Source Developer Productivity
It works great on adding stuff to an already established codebase. Things like “we have these search parameters, also add foo”. Remove anything related to x…
eknkc··on The Future of Nuxt
Congrats and thanks to the team and I wish the best for them. Nuxt is a fantastic framework.

I don't like the Vercel involvement a tiny bit though. Wish it was Cloudflare or something else. Hope I'm wrong.

eknkc··on Why AO3 Was Down
What in the name of fuck
eknkc··on Clarifying our pricing
I seem to like cursor agent with sonnet. Or even copilot agent with sonnet. The editor integrated agent feels better.

For example they can react to in editor linter errors without running a lint command etc.

eknkc··on Tesla reports 14% decline in deliveries, marking second year-over-year drop
The Model Y refresh happened this quarter and they basically had no deliveries for a month or something. Probably had an impact.

I'm not sure how this goes in the long term though, likely to worse. For example BYD sold almost twice the number of cars in the same period and they don't seem to be slowing down.

eknkc··on Gemini CLI
Same here. Tried to implement a new feature on one of our apps to test it. It completely screwed things up. Used undefined functions and stuff. After a couple of iterations of error reporting and fixing I gave up.

Claude did it fine but I was not happy with the code. What Gemini came up with was much better but it could not tie things together at the end.

← PreviousPage 4 of 32Next →