lxtx
|
4 years ago
|
on: Fun with Unix domain sockets
With Unix sockets you can even have in-order datagram semantics, which I think is just neat!
lxtx
|
4 years ago
|
on: Ask HN: Getting back to C++ and looking for ideas
Rather go with C, or as was pointed out in this thread, Orthodox C++.
Less time being bogged down in the quagmire of C++ "features".
lxtx
|
5 years ago
|
on: Why Clojure? (2018)
Thanks! Although I don't agree with all of the points, it was a good read.
lxtx
|
5 years ago
|
on: Why Clojure? (2018)
Language intricacies aside, is there a reason to use Clojure over Elixir, Erlang? Genuinely curious what JVM has to offer vs BEAM / OTP if you're going to use dynamic languages.
lxtx
|
5 years ago
|
on: GitHub Readme Templates
What's with the proliferation of emojispeak?
lxtx
|
5 years ago
|
on: Ask HN: Did you take any fresh MOOCs as of 2020?
lxtx
|
6 years ago
|
on: QuakeJS – A Quake Port to JavaScript with Emscripten
Sadly no, but I don't think there's much of a ping difference on a good network. With WebRTC (datachannels in UDP mode) you just get the benefits of UDP (or lack thereof :)).
lxtx
|
6 years ago
|
on: QuakeJS – A Quake Port to JavaScript with Emscripten
lxtx
|
6 years ago
|
on: QuakeJS – A Quake Port to JavaScript with Emscripten
Only played it with my friends, don't think a map ever exceeded 10 players. So I can't say much about scaling - although it was a client-server model over UDP and not peer to peer networking.
lxtx
|
6 years ago
|
on: QuakeJS – A Quake Port to JavaScript with Emscripten
If I remember right, this one is over WebSockets and the server is compiled to js as well. My version had a native server and browser clients.
lxtx
|
6 years ago
|
on: QuakeJS – A Quake Port to JavaScript with Emscripten
Quake's source code is very hackable. I forked ioquake3 for a personal project and it was surprisingly easy to add WebRTC support to the C codebase, so you could play it in your browser over WebRTC :)
lxtx
|
6 years ago
|
on: A restaurant owner who asked for 1-star Yelp reviews
If I remember correctly, there was no matching system in BW.
lxtx
|
7 years ago
|
on: OpenTTD Compiled to WebAssembly
The forked ioquake3 is available at
https://github.com/seemk/ioq3However it's not trivial to get it working at the moment, will hopefully soon come back to this project and finish it :D
lxtx
|
7 years ago
|
on: OpenTTD Compiled to WebAssembly
You can. I've used WebRTC for multiplayer support in Quake 3 compiled to WebAssembly.
lxtx
|
7 years ago
|
on: Farewell, Google Maps
You can also prerender the tiles on a powerful machine and host them on a cheap instance (assuming you don't need very large regions). A while ago I created an OSM server (
https://github.com/seemk/TileSweep) to do this for me, you can select regions you want to render via a polygon and you get a SQLite database of the tiles. It can also run as an alternative for mod_tile + renderd.
I rendered all of Estonia from zoom levels 0 to 18 (~16.5M tiles) which is around 20GB and host the tiles on a cheap DigitalOcean instance.
lxtx
|
8 years ago
|
on: Clang runs in the browser and compiles C++ to WebAssembly
I've written a library for that purpose [1]. It's not ideal, but I guess it's as close as you can get to UDP in a browser without using extensions.
[1] https://github.com/seemk/WebUDP
lxtx
|
8 years ago
|
on: Show HN: Airmash – Multiplayer Missile Warfare HTML5 Game
It is not entirely P2P, a server can act as a "peer" for all clients and handle the connections itself.
lxtx
|
8 years ago
|
on: LibHTTP: Open Source HTTP Library in C
libh2o does not require libuv, it has its own event loop. libuv is optional.
lxtx
|
8 years ago
|
on: Estonia blocks electronic ID cards over identity-theft risk
Not really, I can still use my mobile ID just fine. Not even in a hurry to get my certificates updated.
lxtx
|
8 years ago
|
on: Show HN: Vehicle Detection – using machine learning and computer vision
Totally agree with your point on HOG + SVM, I think it is obsoleted by convolutional neural networks.
I wrote a realtime human detection library [1] for a robotics project that used HOG + a simple neural net for classification. While it worked okay, I wasn't happy with the precision (around 90%) and decided to try out a simple convnet from Torch (doing the classication on depth images instead of HOG descriptors). The Torch version was slightly slower on a CPU, but both the precision and recall jumped up drastically.
[1]: https://github.com/seemk/FastHumanDetection