Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
byuu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
105 ms
·
721.
▲
by
byuu
12y ago
Haven't seen that before; indeed it is similar. I quite like that. The limitation I see is, how do you store data values with spaces in them? If it allows quoted values, then how do you store values with quotes in them? And how do you
722.
▲
by
byuu
12y ago
Linux and OS X do the same thing to Windows (xbill, Micro$oft, PC vs Mac commercials, etc.) It is kind of sad, but it's how underdogs always work. Selling yourself as an underdog means not only pointing out what you do well, but how yo
723.
▲
by
byuu
12y ago
I came up with such a format (called BML) and for the same reasons. Here's an example that shows the entirety of the syntax: server path: /core/www/ host: example.com port: 80 service: true
724.
▲
by
byuu
12y ago
> Sorry, it was not my intent to "play this up as a bogeyman" Okay, my apologies as well then. It was hard to get a read from just that one sentence with the word kernel emphasized. > (Do audio devices support floating point
725.
▲
by
byuu
12y ago
That is correct. Let's look at the simplest form of sound mixing: /* A */ sample = (sample_a >> 1) + (sample_b >> 1); //lowers volume of A and B by 50% /* B */ sample = max(-32768, m
726.
▲
by
byuu
12y ago
And if Linux weren't available, Lennart would most likely be working on systemd for BSD. Whether or not he would be successful in getting it adopted there is unknowable, but it would be possible. This is why choice is good, and lock-in
727.
▲
by
byuu
12y ago
Alternatively or in addition, add a firewall rule to permanently ban any IPs after too many failed attempts or simultaneous connections, make sure root login is disabled, and/or put sshd on a non-standard port (I find the last one a bi
728.
▲
by
byuu
12y ago
Shit!! Someone guessed my password as well, on line 1120! 000000.000000000**0000000000000000000ooooo000111222333000OOO00OO0O0O0011447700384zxh.007Martin00idc805188..e0102030114110123.01234.01234.*012345601234567.*0123456789!@0123lhb01
729.
▲
by
byuu
12y ago
> why worry about things like your web server? I want to do different things that haven't really been done before. I want to write my site in C++ instead of PHP. In my own case, it's not as much about speed (that's a free
730.
▲
by
byuu
12y ago
> a hobbyist deciding to write their own web server would not be one of them nginx started out as a hobby project by Igor Sysoev. Maybe he should have just used Apache too? > Or at the very least you could let another process to TLS t
731.
▲
by
byuu
12y ago
Here's my current issue with moving to TLS: library support. I do a lot of custom stuff and want to run my own server. I can set up and run the server in maybe 50-100 lines of code, and it works great. I know, I should conform and use
732.
▲
by
byuu
12y ago
> I would phrase it the other way around, Nvidia support for OpenBSD is very, very sad. Sure, in the case of the nvidia binary-blob driver, that's very fair. It's the same net effect to the end user, though. nvidia+OpenBSD is
733.
▲
by
byuu
12y ago
> For long I've lamented the fact that VESA/VBE caps at some not-particularly-high 4:3 resolution. The official VESA modes are all 4:3 (and 5:4 for 1280x1024). But most video cards have non-standard modes. These modes are usual
734.
▲
by
byuu
12y ago
Hopefully. I don't get the feeling there's a strong desire in the Wayland camp to support non-Linux. I mean, I don't think they're actively hostile like the systemd team, but at the same time, they don't seem
735.
▲
by
byuu
12y ago
No, OpenBSD support for nvidia is very, very sad. There is no nvidia binary driver, and no nouveau port. You only have the ancient nv driver, which is just a frame buffer. And an absolutely horrible one at that. It is at least 20x slower th
736.
▲
by
byuu
12y ago
In general, pretty great on FreeBSD. You have nVidia binary blob 32-bit and 64-bit drivers. The OpenGL performance equals Linux and Windows. The blobs aren't available for the other BSDs. There's some trouble at the moment due to
737.
▲
by
byuu
12y ago
> perhaps if there was a wider pool of developers, the BSDs wouldn't be so clean and straightforward. That's exactly how I feel about it. You never want too many cooks in the kitchen. They have all they need for a very successf
738.
▲
by
byuu
12y ago
Many people are leaving Linux because of systemd (among other issues); but are choosing FreeBSD because of ZFS, pf, geli, jails, dtrace, bhyve, etc. (I haven't used the latter two myself yet, but the rest are fantastic.) In the end I&#
739.
▲
by
byuu
12y ago
I want to say that GCC will do the same thing with the inline trick. It has the option to inline the function (where there won't be any actual functions in the resulting binary), or declare it as a unit-unique function (where the actua
740.
▲
by
byuu
12y ago
Please don't be upset with me for asking ... but I am sincerely curious: I know that an MPMC lock-free queue is a vastly challenging thing (the best I could do lock-free myself was one producer thread, one consumer thread), but is this
741.
▲
by
byuu
12y ago
I found a cool trick around that recently. Use anonymous namespaces when you want to have "standard-library/boost"-like template header libraries. Anything inside of an anonymous namespace has no external linkage, and it can
742.
▲
by
byuu
12y ago
Ah, most interesting. Didn't think you were allowed to ever move "X to <verb>" to "to <verb> X", but great to know that this happens. Thank you for the explanation!
743.
▲
by
byuu
12y ago
Sorry for going off-topic here to the thread, but ... As someone studying the language, can you explain what the と portion of the name means? I am aware of the ある (有る) portion, "to exist", and that と is being used here to represen
744.
▲
by
byuu
12y ago
What if you query the total and available amount of RAM on the system to set your limits?
745.
▲
by
byuu
12y ago
You can certainly set reasonable limits. "After 512MB, start adding chunks of 64MB at a time." Similarly, you also really want a minimum bound so you aren't reallocating 12x to get to 4KB when you add a byte at a time (if y
746.
▲
by
byuu
12y ago
Heap allocators already are ridiculously smart. But there's just too many divergent use cases for allocators. I wrote a simple string heap allocator (grab a 16MB block and hand out 256-byte chunks) and the resulting code was 85x* faste
747.
▲
by
byuu
12y ago
> Good job spreading FUD though. What you said sounds good. Maybe if they were more clear in their Wiki page, I wouldn't have been as concerned. "The current implementation is of draft-14 with compression-09 [august 6 nightly]
748.
▲
by
byuu
12y ago
I'd certainly love to get a group of people together and design a nice HTTP/1.2+ step. But unfortunately it would stand no chance of wide adoption. There's an unbelievable level of bureaucracy and unwillingness to work with o
749.
▲
by
byuu
12y ago
The one major advantage to TLS everywhere will definitely be avoiding mixed-content issues when eg you have a web forum and someone tries to embed an image on a non-TLS server into their post. Hopefully IE's choice to be the one non-TL
750.
▲
by
byuu
12y ago
Thanks for the response! > The goal is to make the request small enough that it can fit in one round-trip so that you don't have to wait for all the ACKs. Thank you, that makes sense. I definitely see how bloated some of these heade
More ›