Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mgaunard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
99 ms
·
1981.
▲
by
mgaunard
5y ago
Why would you try to watch a TV show on your phone? Is that a zoomer thing? Can you not just download stuff from NZB and use whatever open-source software you like to stream and play it on your computer device of choice?
1982.
▲
by
mgaunard
5y ago
There are lots of different mechanisms to use for this depending on your need. You can do a futex but that still requires the producer to issue system calls. You could also just have the consumer poll at whatever frequency you please (eithe
1983.
▲
by
mgaunard
5y ago
If you have special performance requirements you should do your own queue in userland where you can not only control how big it is but also completely avoid context switches and system calls.
1984.
▲
by
mgaunard
5y ago
Computer Science got harder once you realized it existed outside of undergraduate studies.
1985.
▲
by
mgaunard
5y ago
And that is one of thr major defects I pointed out. It's not "fine".
1986.
▲
by
mgaunard
5y ago
Why would you disallow a powerful and useful language feature? It's better to be practical than dogmatic.
1987.
▲
by
mgaunard
5y ago
Pretty much any L3 switch supports UDP multicast. What can be more rare is PIM support which is a router feature. If anything in HFT environments, people use L2 switches for latency reasons. Those operate at the Ethernet level, so they don&
1988.
▲
by
mgaunard
5y ago
The fact that you think this is a proper way to deal with a queue is quite concerning. You completely missed the point. It's the producer that needs to be paused, and the reason for that is that memory is not infinite. You cannot just
1989.
▲
by
mgaunard
5y ago
The established languages for systems programming are C and C++.
1990.
▲
by
mgaunard
5y ago
Well to begin with, Java is not a serious programming language to do systems programming in, since it has poor control of networking, threads and memory. Then it's a message bus built on top of TCP. Anyone with basic understanding of n
1991.
▲
by
mgaunard
5y ago
Stopped reading at Kafka. Java technology that combines bad networking with bad messaging and bad queueing. I would have expected one of the big Internet websites to use better technology.
1992.
▲
by
mgaunard
5y ago
C macros did this in 1973 (48 years ago)
1993.
▲
by
mgaunard
5y ago
I've seen a lot of videos that actually show the opposite. Even I as a non-expert over video can clearly see the difference from thousands of miles away. The problem might just be that the TV shows you watch are so mediocre they can&#x
1994.
▲
by
mgaunard
5y ago
Good taste is simply a matter of depth. Take for example coffee. If you have bad taste, you just buy supermarket instant coffee and use the cheapest cafetiere. If you have taste, you've researched what makes coffee good or bad, buy who
1995.
▲
by
mgaunard
5y ago
Most of the use of libpcap is with files. If you need to capture live data, most likely it's not a good fit. Reliable high throughput requires a special software architecture, that the format isn't even particularly suited for.
1996.
▲
by
mgaunard
5y ago
The point of Rust is that your mediocre C++ developers won't be able to write some kinds of bad code patterns with it, since it won't compile. The problem is that most likely those mediocre C++ developers won't be able to wri
1997.
▲
by
mgaunard
5y ago
That is precisely what C++ does.
1998.
▲
by
mgaunard
5y ago
Rust also just enforces good C++ practices, so you could just get yourself familiar with the 40 years history of C++.
1999.
▲
by
mgaunard
5y ago
Reference counting is mostly a cop-out for people who can't design code properly and reason about ownership and lifetimes. It essentially makes your code Java and defeats the point of the language. I would expect most decent teams to r
2000.
▲
by
mgaunard
5y ago
So basically, Rust does async right, but the author wishes he didn't have to worry about generics and lifetime management which become increasingly complicated in asynchronous contexts. Maybe this guy needs to just stick to Lisp.
2001.
▲
by
mgaunard
5y ago
libpcap does so little you're better off doing that yourserlf and avoiding going through the library, giving you more control on I/O and memory management. As for the library interface, what I usually need is to synchronize a pcap
2002.
▲
by
mgaunard
5y ago
Guy is now working on Buck. In the meantime I'll stick to Bazel thnak you very much.