Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
apankrat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
apankrat
5y ago
The NAT traversal logic here is really basic and won't hold up well in practice. A good chunk of NAT devices will pick external port based on [src ip/port, dst ip/port] combo, not just [src ip/port], so "WAN IP/
32.
▲
by
apankrat
5y ago
If you are selling an UI option, a screencap is pretty much a must. If you are selling non-UI options, simple click-to-view explainers go a long way too, e.g. https://backup2.com/features
33.
▲
by
apankrat
5y ago
Cheers, thanks. I completely forgot about LiceCap! Notable option of a very good provenance. Still a bit too much UI for my taste :)
34.
▲
by
apankrat
5y ago
As a part of my work, I do UI/UX design for our products and post some snippets of the process to the development blog. Being able to show things _in action_ is a must, but I couldn't find a tool that was convenient for doing mult
35.
▲
Show HN: μGiffer
(iobureau.com)
7 points
by
apankrat
5y ago
|
3 comments
36.
▲
by
apankrat
6y ago
Ha, indeed! Should've compressed the index too though :-P
37.
▲
by
apankrat
6y ago
You want a benchmark that shows that one >>, one &, two [] and a + are going to be fast ? The test loop that wraps the lookup code will likely take as much CPU as what's being benchmarked. Even if you are to use RDPMC and ev
38.
▲
by
apankrat
6y ago
Say, we have our N blocks. We make these into the nodes in a graph. Every node is connected to all other nodes. An edge leading from A to B is a case when block A precedes block B. The weight of that edge is the AB overlap. Note that the sa
39.
▲
by
apankrat
6y ago
Spotted the packing technique in the Wine's code and killed few days to see how much further it can be taken. Pretty much one of those rabbit holes that you'd occasionally run into in a course of regular programming and end up exp
40.
▲
Fast character case conversion, or how to really compress sparse arrays
(github.com)
80 points
by
apankrat
6y ago
|
26 comments
41.
▲
by
apankrat
6y ago
See my reply here - https://news.ycombinator.com/item?id=26152103
42.
▲
by
apankrat
6y ago
It was written when I needed a kanban board done to my specs in a minimum amount of time using whatever things I was most comfortable with.
43.
▲
by
apankrat
6y ago
For this to happen the storage "module" needs to be redone and cleaned up, which in turn requires having a couple of free weekends and these are hard to come by. That said, if you will get to the point of doing anything with an ai
44.
▲
by
apankrat
6y ago
This is mine. It is something I wrote for my own use after looking at all existing options and finding them not to my liking. This is pretty much a weekend hack, it is from 2019 and it's still close to what I need. When I have time I p
45.
▲
by
apankrat
6y ago
Dead-simple GIF screen recorder for Windows - https://gist.github.com/apankrat/14b28656236d78407b28aef3102... Real-time disk IO graphing thingy - https://bvckup2.com/wip/10042018 Both can be devel
46.
▲
by
apankrat
6y ago
Aye. I have an assert in the code that fronts a very pedantic test of the context. In all cases when this assert was tripped (and reported) an overnight memtest86 test surfaced RAM issues. - Edit - Also, bit flips in the non-ECC memory ar
47.
▲
by
apankrat
6y ago
Digital time-stamping service called CertTime. Here's the post-mortem - https://swapped.ch/certtime
48.
▲
by
apankrat
6y ago
Oh, well, good for it. If I were to pick the reason, it'd be simply that I don't like Boost. To me, Boost is an ultimate embodiment of all that went wrong with C++ when it evolved from being a better version of C into the multi-
49.
▲
by
apankrat
6y ago
The reason is that the goal is not achievable using boost contraptions. At the very least it's not possible to use boost version without inheritance. As to why to do what you wrote I have no idea. These two code snippets are unrelated.
50.
▲
by
apankrat
6y ago
It does, in the exact same sentence.
51.
▲
by
apankrat
6y ago
The post I linked to mentions it explicitly.
52.
▲
by
apankrat
6y ago
Nice, very nice. All of it. Long live C. Being stuck with C++ I did something in reverse - ported C-style ("intrusive") containers to ++, making them a bit safer to use, but keeping the syntax nearly the same. https://g
53.
▲
by
apankrat
6y ago
This will break the ABI indeed. That's given.
54.
▲
by
apankrat
6y ago
Every defer statement is ultimately pushing a lambda into some stack that is executed when the defer block is exited. With an exception of setjmp/longjmp, I can't think of an existing C construct with similar run-time complexity.
55.
▲
by
apankrat
6y ago
Aye, I've seen that. IMO it would've been better (read, cleaner) to merge lambdas and function pointers into a single language construct. Throw in the partial application too and we'd be have a natively supported concept of a
56.
▲
by
apankrat
6y ago
Re: Should object values be captured? The results from 387 responses (to a Twitter poll) show a 2:1 preference for the value being read at the time the deferred statements are executed (66.9%) rather than when the defer statement encoun
57.
▲
by
apankrat
6y ago
Just take it out of the <a> element and add a tooltip to it. The pedants will inspect the source code first before asking.
58.
▲
by
apankrat
6y ago
Ha, indeed. I had no need to use it with either, so I didn't bother to check. MSVC was the compiler.
59.
▲
by
apankrat
6y ago
#ifdef _DEBUG #define __REVIEW_ME / ## / #else #define __REVIEW_ME $review_me$ #endif When reworking a large amount of code, this can be used to tag places that may need another pass or a revie
60.
▲
C-style intrusive containers in C++
(github.com)
2 points
by
apankrat
6y ago
|
0 comments
More ›