Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vortico
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
91 ms
·
841.
▲
by
vortico
9y ago
For this reason, I wouldn't recommend that anyone try this. I expect that the Darklang employees will present a really early/difficult platform to the startup and require that the developer expand the platform as they go, which wi
842.
▲
by
vortico
9y ago
Started my own startup. Now I have 9-9 life!
843.
▲
by
vortico
9y ago
Oh yes, I forgot to make it clear that `Foo` is a C struct from a C API. There are tens of thousands of such libraries. An issue with your wrapper is that it is not generic enough and thus must be written for each Foo-like object. That coul
844.
▲
by
vortico
9y ago
This is a reasonable suggestion since the code isn't too bad. std::unique_ptr<Foo, std::function<void(Foo*)>> p(new Foo, [](Foo* p) { if (p) destroyFoo(p); }); // initialize Foo and set to
845.
▲
by
vortico
9y ago
A general rule in C++ programming is that time spent "perfecting" your code increases, the more difficult it is to change and maintain it, and the probability of using Boost approaches 1. Using Boost as a dependency makes your pro
846.
▲
by
vortico
9y ago
See my response to the sister comment
847.
▲
by
vortico
9y ago
Tell that to the APIs I work with, like POSIX sockets/Winsock, etc. You're suggesting that I wrap them all with RAII? That's ridiculous when you have hundreds of C types which are all used just once or twice. Using defer make
848.
▲
by
vortico
9y ago
This also works well with a C++ `defer` helper. #define CONCAT_LITERAL(x, y) x ## y #define CONCAT(x, y) CONCAT_LITERAL(x, y) template <typename F> struct DeferWrapper { F f; DeferWrapper
849.
▲
by
vortico
9y ago
https://vcvrack.com/ I handle password resets by hand when people email my support address. A horrible solution, but it's a great form of rate limiting and prevents abuse, and I only get 1 request/day average.
850.
▲
by
vortico
9y ago
Tens of thousands, email + password only. Not one person has complained.
851.
▲
by
vortico
9y ago
>People can't barely manage passwords, they can't manage them at all. This is like walking in a room, seeing a tiny speck of red paint on the wall and saying that the wall is painted red. Virtually everyone who owns a computer
852.
▲
by
vortico
9y ago
Censorship is the correct term for any organization restricting content. E.g. a parent restricting a child's TV is censorship. The First Ammendment only deals with censorship by the US Government.
853.
▲
by
vortico
9y ago
The original title was "GitLab adds support for GitHub". Now that GitLab supports GitHub, I'll go to GitLab for all my support questions about using GitHub!
854.
▲
by
vortico
9y ago
Ah, I was imagining a sales warehouse, where the customers typically only talk to the sales employees by phone.
855.
▲
by
vortico
9y ago
What software actually parses /etc/hosts, at least on Linux?
856.
▲
by
vortico
9y ago
Why don't they have a normal employee play the "be fired" role? Unless he gets fired 8 times a day, I don't see why he's idle...
857.
▲
by
vortico
9y ago
It doesn't require Make but xmake http://xmake.io/ . It's pretty self-explanitory by reading the build scripts why it needs it.
858.
▲
by
vortico
9y ago
The author admitted the stronger-than-needed title in the first comment, but I'd like to make it clear when talking about practical personal security: There are ~100,000 people in the world that would think to run a GPU password cracke
859.
▲
by
vortico
9y ago
I found this article difficult to follow, mostly because I'm not familiar with the people or event, and it begins with rhetoric assuming the reader is familiar. Here's a list of the "characters". https://en.wi
860.
▲
by
vortico
9y ago
Save the file to something like `compile.mk` and create a Makefile with SOURCES += $(wildcard src/*.cpp) SOURCES += other_files.c TARGET = foo include compile.mk
861.
▲
by
vortico
9y ago
There's no problem with replacing, other than losing the ability to glance at an object and determine which language it came from, and name conflicts with `util.c` and `util.cpp` in the same directory (believe me, it happens).
862.
▲
by
vortico
9y ago
https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Preprocessor-Op... Looks useful, I'll add it to my configs.
863.
▲
by
vortico
9y ago
Pretty spot on. I use a pretty similar dependency system for all of my C and C++ projects. FLAGS += -MMD CFLAGS += $(FLAGS) CXXFLAGS += $(FLAGS) OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) DEPS = $(patsubst %
864.
▲
by
vortico
9y ago
I'm a indie filmmaker and would love to receive movie scripts from people. Why submit to Amazon when you can submit to me or other indie filmmakers? Very small companies do not have the disadvantages regarding your rights that large st
865.
▲
by
vortico
9y ago
I am completely confused by how this court order even works. I am assuming that PGLAF is owned and operated in the US. "PGLAF has no actual presence or activity in Germany". I suppose the Berne Convention allows US police to honor
866.
▲
by
vortico
9y ago
Don't filesystem caches basically do this for you?
867.
▲
by
vortico
9y ago
You could even go as far as saying that a class in some forms is a state machine. Networking is a huge application of state machines. Microcontrollers usually have a small state and step through a switch statement in an infinite loop. OpenG
868.
▲
by
vortico
9y ago
Even if the content of this article is 99% my opinion, it's written in a trashy way and makes me want to disagree with it. I'm going to educate the public to avoid macro.org
869.
▲
by
vortico
9y ago
Weird, so manufacturers just haven't implemented uncompressed 6-channel optical audio? Is it bandwidth?
870.
▲
by
vortico
9y ago
Does the optical input for the amplifier only suport AC-3? Why don't manufacturers use a more naive patent-free method that might be slower? Are they really starving for bandwidth enough to justify the cost of an AC-3 license? Even u
More ›