Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
colatkinson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
colatkinson
7y ago
Depends on the environment a great deal. Linux: Typically using the package manager, or the AUR if I'm not using the latest version. At the moment, I'm using 3.6 as my "universal" version since that's what ships wit
62.
▲
by
colatkinson
7y ago
IME dynamic typing is super easy and fast until it suddenly isn't. Then you're going through ten layers of functions to check if None is a valid value for some parameter because some intern three years ago figured that would be th
63.
▲
by
colatkinson
7y ago
I could be wrong, but conan's "killer feature" is its integration with traditional artifact management solutions. Using it with Nexus (which also takes care of PyPI, npm, and basically every other binary package type under th
64.
▲
by
colatkinson
7y ago
In fairness, it appears to use proof-of-stake[1] which has issues of its own, but doesn't use the TWh of electricity that proof-of-work does. [1]: https://althea.net/whitepaper#blockchain-overview
65.
▲
How many alternate data streams can a file have?
(colatkinson.site)
2 points
by
colatkinson
7y ago
|
0 comments
66.
▲
by
colatkinson
7y ago
Yeah I definitely agree with this. If I'm incrementing x in such a way that it's pretty clear what the meaning is (e.g. it's actually called like cur_page or something and I'm iterating over paginated data), then comment
67.
▲
by
colatkinson
7y ago
My personal favorite is PCZZWSTR: a const pointer to a contiguous WCHAR array, where each substring is NUL-terminated, and the array itself is also terminated by a NUL. Thus (I assume) the ZZ--zero zero. I've only ever seen it used in
68.
▲
by
colatkinson
7y ago
This isn't really the case, though. Lots of options are completely orthogonal (e.g. tabs vs spaces and function brace style don't really affect each other). My experience with clang-format has been that each option (mostly) only a
69.
▲
How many alternate data streams can a file have?
(colatkinson.site)
1 points
by
colatkinson
7y ago
|
0 comments
70.
▲
by
colatkinson
7y ago
I think changing history is fine on feature branches that only you are working on, though. IMO the benefits of keeping commit history clean outweigh the cost of having to push with "--force".
71.
▲
by
colatkinson
7y ago
From this article written by the author [0], the overhead is very high. So I don't think you'll be seeing this implemented in your CPU any time soon. The usefulness seems to be that (1) it's a cool new piece of theory and (2)
72.
▲
by
colatkinson
8y ago
My company uses Qt5 via Python fairly extensively. While it's great almost all the time, we've definitely encountered a few weird issues with segfaults, especially on Windows. Some our fault, some due to weird Qt/graphics dri
73.
▲
by
colatkinson
8y ago
I actually had to work with Python strings at the C level recently, and their approach is pretty clever. IIRC, the runtime can take any common form of Unicode, and will store it. When you access that string, the accessor requests a specific
74.
▲
by
colatkinson
8y ago
If I'm not mistaken, CStringT is just the template class for CString, CStringW, and CStringA. Makes perfect sense :) My personal favorite is the PCZZWSTR type, which I've only ever seen used by SHFILEOPSTRUCT. Basically it's
75.
▲
by
colatkinson
8y ago
Chen's blog and book are both amazing. Highly recommend if you've every asked yourself, "Why the hell would MS even conceive of doing this?"
76.
▲
by
colatkinson
8y ago
To be honest, I'm fine with this. My buddy is a plumber and makes almost as much as me.
77.
▲
by
colatkinson
8y ago
The only "long form discussions" I frequently see on Facebook are bad political arguments. Most people don't really care what Uncle Billy has to say about millenials. Agree on the event planning though. I think an Instagram E
78.
▲
by
colatkinson
8y ago
I'd argue that = only feels imperative if you're used to imperative languages. Prolog and Haskell, both of which focus on being declarative, also both use the equals sign.
79.
▲
by
colatkinson
8y ago
This is pretty nifty! Out of curiosity, why did you choose WebTorrent over, say, IPFS? I considered doing something similar using their JavaScript client[0]. [0]: https://github.com/ipfs/js-ipfs
80.
▲
by
colatkinson
8y ago
I actually really like the look of that. One of my friends is learning to program (in Python) and has recently taken an interest in FP. Planning to show this to her.
81.
▲
by
colatkinson
8y ago
If they hold the Bitcoin themselves, they have to deal with securely holding the keys, compliance, and insurance. If someone else holds them, then this third party has all of these issues while GS will still get some kind of insurance payou
82.
▲
by
colatkinson
8y ago
I've been working on learning x86 ASM, and this was a fun challenge. Cool stuff.
83.
▲
by
colatkinson
9y ago
> But there is no excuse for using 3rd party libs. Just don't use it. If you not know: do not use it. Wait, what? That goes against one of the core benefits of open source software--that having many eyes on a problem decreases the
84.
▲
by
colatkinson
9y ago
Link to the story, for GP: http://discours.philol.msu.ru/attachments/article/264/Chiang...
85.
▲
by
colatkinson
9y ago
The goal of science is for experiments to be repeatable. If I were to build a copy of the LHC under my house, presumably I would be able to verify any of CERN's results. But I can't verify anything in journalism. If two reporters
86.
▲
by
colatkinson
9y ago
They're already kind of separating Messenger from the main Facebook site. It's a separate app on mobile, and on desktop you can go to https://messenger.com . They don't even have Facebook in the name anymore.
87.
▲
by
colatkinson
9y ago
Lightning implementations exist and are fairly usable (although I've found there is some disagreement on e.g. public key format for peers). Check out the following: * Lit: https://github.com/mit-dci/lit * Eclair:
88.
▲
by
colatkinson
9y ago
While not a failsafe method, lots of newer cryptocurrencies use proof-of-work that is "ASIC-proof." This means that CPU and GPU mining will remain profitable, theoretically preventing the degree of centralization seen in Bitcoin.
89.
▲
by
colatkinson
9y ago
200 years ago: > Yup, everytime I hear someone complain about feudalism I eyeroll because they clearly aren't "woke" enough to realize that feudalism is the reason they can remain blissfully ignorant of how feudalism suppo
90.
▲
by
colatkinson
10y ago
Ignoring the fact that this article is from a very biased source, it also shows a distinct lack of education. Marxists would argue that the capitalist system is a "dictatorship of the bourgeoisie." Most of the West does not have a
More ›