HNHacker News
TopNewBestAskShowJobs

louiz

58 karma · joined February 24, 2014

submissionscomments
louiz··on Pybind11 — Seamless operability between C++11 and Python
Just like “operator+(int, int)” invokes undefined behaviour without mention: you can write “a + b” and it will break if the addition overflows!

Or std::vector<T>::operator[] invokes undefined behaviour if the argument is invalid (out of band).

Or printf() invokes undefined behaviour if an argument is of the wrong type (for example "%s" with a corresponding int).

Or strcpy invokes undefined behaviour if you give it invalid pointers (or non-null terminated strings, etc).

So, yeah, many functions can invoke undefined behaviour when they are called with bad arguments, that doesn’t make them bad functions.

louiz··on Milestone: 100M Certificates Issued
The software just negociates the token and such things, and communicates with EL to say “I want to have a certificate for such and such domains”.

But you can place these tokens on your webserver by hand if you want, in a pre-determined path.

louiz··on Debian 9 Stretch released
> Does this mean we're stuck with Python 3.5 for the lifetime of Debian 9

As always, with debian, you’re stuck with older softwares for the lifetime of their latest release.

For example, I can’t use any C++17 feature for the next 2-3 years in my projects, just because I want to support debian…

louiz··on The future of education is plain text
There’s no such thing as “plain text”.

Is this UTF-8, latin-1, 7 bits ASCII…?

louiz··on Chess.com stopped working on 32bit iPads because 2^31 games have been played
No, and it still doesn’t.
louiz··on Show HN: Biboumi – An XMPP-to-IRC gateway
I also wrote my own XMPP client (https://poez.io), but since I also use IRC I decided to write a gateway. This way I can use poezio for everything.
louiz··on Show HN: Biboumi – An XMPP-to-IRC gateway
That will probably work, yes.

But that’s also too convoluted, IMO. I would not personally use this. Don’t hesitate to try any combination of gateways you can think of, and report any issues to me.

louiz··on Show HN: Biboumi – An XMPP-to-IRC gateway
Indeed, that’s a feature I intend to do for version 6.0, but didn’t take the time to write a ticket on the bug tracker.

(But I just did, so I won’t forget that feature https://lab.louiz.org/louiz/biboumi/issues/3267)

louiz··on Show HN: Biboumi – An XMPP-to-IRC gateway
You could do something like this

  Conversations -> Biboumi --
                             \
                  irssi   ->  znc -> IRC
But it has a few gotchas (like when znc “force-join” a channel, that can’t be done with XMPP, so biboumi will send you an invite instead, that’s confusing), and it quickly gets complicated to manage. You could try that, but you might encounter a few usage issues.

And no, it doesn’t do an IRC->IRC bouncer, so you can’t replace your znc entirely if you still want to use a real IRC client on your desktop.

I think the best solution is to have two independent biboumi and znc.

louiz··on Show HN: Biboumi – An XMPP-to-IRC gateway
I just released version 5.0.

Among other things, this release includes a new feature that can make it behave like an IRC bouncer. Coupled with a few modern XMPP features, it makes IRC mobile friendly: you can mark a channel as persistent, join it from your mobile XMPP client (like Conversations), and whenever you get disconnected due to bad connectivity biboumi will stay online, and when you go back online it will send you all the messages you missed.

louiz··on Diaspora-common: does 'rm -rf /' on purge
You hope.
louiz··on HSTS Preload lists cause Chromium to think http://google/ is a valid domain
Of course, see localhost.
louiz··on GitLab Database Incident – Live Report
Why would you use gitlab.com if you have a self-hosted Gitlab instance?
louiz··on Linux Code of Conflict
International women's day.
louiz··on Comparing Rust and C++
Actually the simplest way to dix that code ils to write

it = v.push_back(5-*it);

louiz··on The Internet Sucks: Or, What I Learned Coding X-Wing vs. TIE Fighter (1999)
> In other words, "real-time" in the sense that missing deadlines will mean that the quality of service is degraded. Deadlines here mean delivering the packets in time for the next simulation timestep.

Yeah, that’s what happens in most RTS, if the feedback for the action you sent doesn’t come back before Xms, then the game pauses and waits (for example Starcraft 2 does that).

And I know the lock step mechanism used in some RTS, I’m implementing one myself. But I don’t see how it makes it non-real-time. If quake or teeworlds associates a network packet (containing a player-position) with a frame, does that make it really-fast turn-based game (with turns being frames, or ticks, or what you want to call them)?

That being said,

> You and I agree on everything except the definition of "real-time".

No, the “real-time” word is really not that important to me, I mostly disagree with you saying “TCP is […] useless for multi player gaming.”

RTS, or MMORPG, or turn-based tactical RPG, or card games are not “some exceptions”. They probably even represent a huge proportion of the multiplayer games out there. I now understand that you were talking about “fast-paced action games like quake or the likes”, but that really didn’t sound like it.

> I'm sorry if my words were a bit overgeneralized and it annoys you.

This is not just you, I’ve seen a lot of these “— TCP sucks for all online game purposes! — but what about all these cases were it’s fine? — Oh, I was obviously talking about those other cases”

But that’s ok, I’ve made my point public instead of grumbling in my head, now I’m fine and we can move on. :)

louiz··on The Internet Sucks: Or, What I Learned Coding X-Wing vs. TIE Fighter (1999)
I think “real-time” does not mean what you think it means.

I’ve read a lot of things like “TCP is not suitable for real-time online games”, in this thread, where the author of this sentence excludes RTS, MMORPG, etc. As if these were not real-time games.

According to http://en.wikipedia.org/wiki/Real-time_game#Real-time (and also the fact the RTS means real-time strategy), any game that is not turn based is a real-time game.

It’s not just you, but I had to choose one of the posts in this thread for my response. Saying “TCP is a wonderful protocol but absolutely useless for multi player gaming” is just plain wrong. A lot of online, real-time games are using TCP. Saying that TCP is useless for multi player gaming is really misleading and I’m tired of reading this. There are a lot of valid reason to choose TCP over UDP (for example the fact that your game doesn’t require any round-trip to be shorter than, say, 500ms, because that’s how the engine works). Of course, TCP would not really be suitable for an FPS like quake, but that’s only one case of real-time game, there are a lot of different kind of games, for which TCP is the best choice.

← PreviousPage 2 of 2