Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
halayli
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
421.
▲
by
halayli
11y ago
I wish they say more than > We're investigating a significant network disruption affecting all github.com services.
422.
▲
by
halayli
11y ago
It's not like none of us went down this path until one day the app becomes unmaintainable and incoherent, with broken bindings and inconsistent states.
423.
▲
by
halayli
11y ago
I am not sure you are aware of C++11's memory management features.
424.
▲
by
halayli
11y ago
And what's wrong with using libunwind?
425.
▲
by
halayli
11y ago
This looks like it's coming from someone who doesn't know C++ well and is just coming up with reasons to fit their bias. The fact that he/she didn't mention any disadvantage to the C code written beside verbosity makes i
426.
▲
by
halayli
11y ago
You might also want to look at lthread. It has some interesting functions like lthread_compute_begin()/end() to run expensive computations inside a coroutine. the compute methods move the coroutine into an actual pthread and resume unt
427.
▲
by
halayli
11y ago
This is not an ideal design, surprised it has this many upvotes. Transferring the accepted connections this way involves an extra system call to epoll/kqueue to add the event into the particular thread and the accepting thread can beco
428.
▲
by
halayli
11y ago
I've read wget, and I am a cURL contributor as well. I know the capabilities of each very well. But when you have 1M+ urls to download and you care about proper error handling at a large scale, those tools will fall short. Not all erro
429.
▲
by
halayli
11y ago
> The Taco Bell answer? xargs and wget. In the rare case that you saturate the network connection, add some split and rsync. If you're going to download millions of webpages, you'll instantly saturate your network io. yes you c
430.
▲
by
halayli
11y ago
pretty much.
431.
▲
by
halayli
11y ago
This is a C problem in general. You can create your own data structures and use str.buf + str.len.
432.
▲
by
halayli
11y ago
You're talking about strncpy not strncat.
433.
▲
by
halayli
11y ago
what's inefficient about it?
434.
▲
by
halayli
11y ago
tcmalloc is great for small random sized allocations. when using std::string without .reserve() it performed much better from the testing I've done last year.
435.
▲
by
halayli
11y ago
Came here to say just that. tcmalloc performs better than jemalloc in various cases.
436.
▲
by
halayli
11y ago
Any suggestions for a good material UI framework that works well with Angular 2? Unfortunately, angular's material framework only works on 1.x so far.
437.
▲
by
halayli
11y ago
This is as true as it can get. I'd like to reemphasis the bug-for-bug. Sometimes that's the only way you can drop-in replace a system.
438.
▲
by
halayli
11y ago
hadoop != HDFS is my point.
439.
▲
by
halayli
11y ago
> "MongoDB, Cassandra, Redis, or Hadoop" Adding Hadoop in the mix tells me he doesn't know what a NoSQL is.
440.
▲
by
halayli
11y ago
I've built a similar system as well. Raw data compressed and stored in s3, but aggregations are stored in postgres. Data stored in Postgres is compressed binary representation of a histogram and I added few C functions in postgres to d
441.
▲
by
halayli
11y ago
The advise is pretty useless. Complexity often comes from incorrect abstractions, not from language features. Programmers can build very complicated systems using the simplest languages available.
442.
▲
by
halayli
11y ago
I didn't say individual objects/classes. I specifically said "collection of abstractions".
443.
▲
by
halayli
11y ago
OOP is an abstraction tool. When you have a problem you need to divide it into sub problems and represent each sub problem as an abstraction. The end result is that the collection of abstractions should model the problem domain.
444.
▲
by
halayli
11y ago
In reality we are never designing classes for a bookstore, shapes, or animals. Often times the problem is new and the classes go through an iterative lifecycle of design/refactor. Book authors should spend more time thinking about exam
445.
▲
by
halayli
11y ago
If the secret service is relying on snooped messages as the main affective method to catch criminals then it's doing it wrong. They're stuck in the WW2 mentality where they could listen on radio and decrypt codes. Back then it was
446.
▲
by
halayli
11y ago
I feel the title should be updated to: "for Applications Which Reply on UDP packets larger than 1500 bytes".
447.
▲
by
halayli
11y ago
Not being cynical, but I think it's more of I don't have the attention span to follow your demo and that's why it bores me. Demos tend to move at a slower pace than what an average programmer goes through on their own so the
448.
▲
by
halayli
11y ago
I have this habit of always pasting in the url bar then copying it from there. it clears formatting, and merges the lines.
449.
▲
by
halayli
11y ago
Their products are well designed but often sluggish which ruins the experience. I stopped using them because of that, unfortunately. It created a barrier in my head and made me hesitant every time I wanted to interact with their software.
450.
▲
by
halayli
11y ago
My point is that you can easily forget to declare a pointer as not_null and revert back to the old habit of declaring it as int*. The responsibility is still on the programmer.
More ›