Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
halayli
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
211.
▲
by
halayli
6y ago
there are cases were coroutines and threads can be used interchangeably. But often times, they co-exist together to solve the problem. That's the case in Go. goroutines run on threads after all. Op's could have used a better examp
212.
▲
by
halayli
6y ago
How can this paper be taken seriously when the paper doesn't even show the compilation flags?
213.
▲
by
halayli
6y ago
The title and content don't match. The way we distinguish between musical instruments and notes is because of timbre/tone color. Which has nothing to do with fourier transforms per se and you can use wavelet for that matter. DFT&#
214.
▲
1.1B Taxi Rides Using Hydrolix on AWS
(tech.marksblogg.com)
12 points
by
halayli
6y ago
|
1 comments
215.
▲
by
halayli
6y ago
coincidentally, I was just looking at Puffer project couple days ago when I was remembering how I used to couch surf and flip channels instantly. https://puffer.stanford.edu
216.
▲
by
halayli
6y ago
Typical implementations use std::atomic or a variation of it (further stripped version of it).
217.
▲
by
halayli
6y ago
You're on the Internet. You are going to see all patterns and combinations you can think about. But there's an rfc and that's what defines correct usage.
218.
▲
by
halayli
6y ago
Been checking elm-chan since 1999/2000 when I implemented his mp3 player using atmel. I admire his consistency.
219.
▲
by
halayli
6y ago
If anyone is interested in Type systems and what's a type, I highly recommend watching the first 20 mins of Sean Parent's presentation: https://youtu.be/sWgDk-o-6ZE It will change the way you think about types aft
220.
▲
by
halayli
6y ago
while there is an overlap between libc and POSIX where by POSIX defines its standard in terms of the C language spec and its std lib, getaddrinfo(3) behavior is part of POSIX standard only. Obviously go devs are attempting to do the right t
221.
▲
by
halayli
6y ago
I use clion by jetbrains and been using remote development feature for almost a year now.
222.
▲
by
halayli
6y ago
You'll find all the answers in the book 'Advanced Programming in the UNIX environment' by Richard Stevens. It's also referred to by the acronym APUE.
223.
▲
by
halayli
6y ago
kqueue is not responsible for initiation. It's responsible to notify you about events. when you open(2) a file with O_NONBLOCK flag, you can register it with kqueue to let you know when it's readable/writable.
224.
▲
by
halayli
6y ago
kqueue does support this via EVFILT_VNODE. io_uring is in linux as of kernel 5.1(march 2020). alternatives are available but might not be viable for everyone.
225.
▲
by
halayli
6y ago
using threads for file IO is a hammer approach imho. Often times the price you pay to send the job to the queue, yield for another coroutine, wait for IO task to finish, receive a notification back from the thread pool and resume is higher
226.
▲
by
halayli
6y ago
IMHO one of the best indicators that I've nailed the abstraction is when I am able to use/re-use it in many places. A concrete and easy example is when you're developing a new software and building your common utils/libs
227.
▲
by
halayli
6y ago
Creating good APIs is about developing a good taste and not surprise the user. In your case, the first job of designing the API is done for you by the app. So as a first step, create the foundation layer by mapping the app's API to sim
228.
▲
by
halayli
6y ago
wyhash is very impressive for those interested. Not sure why it doesn't get a lot of attention. https://github.com/wangyi-fudan/wyhash
229.
▲
by
halayli
6y ago
Youtube Terry Davis. There's a thin line between insanity and a genius.
230.
▲
by
halayli
6y ago
I am not sure if it's possible to implement this as pluggable pass to llvm, but it would widen adoption.
231.
▲
by
halayli
6y ago
Subjective perspective from personal experience: We program for various reasons. We got into it because we loved it then it became our job and what started as something we do for fun became something we do to survive. We no longer have a lo
232.
▲
by
halayli
7y ago
your statements are nothing but opinions. It's also dishonest to make them sound like facts. If you care this much about security, you should have taken a look at CVE reports of each db. You'll find that historically MySql has alm
233.
▲
by
halayli
7y ago
I am not sure it's a good idea to take advice from someone that picks such a background color
234.
▲
by
halayli
7y ago
There is a legal binding contract in marriage. You can walk out of a relationship without having to settle/split assets etc. You cannot in marriage.
235.
▲
by
halayli
7y ago
i don't think you can arrive to any conclusion based on analyzing traffic/dns reqs made alone. How can you tell a user didn't jitter scroll and caused more content to show up? What if it was a 404 page. How's the intrude
236.
▲
by
halayli
7y ago
I wonder where/if incompleteness theorem fits in this picture. https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_...
237.
▲
by
halayli
7y ago
you don't need to limit yourself to c/c++. It can be used for various other reasons. As for c/c++ specifically, you can optimize much better and safer if you have 1 or more intermediate dialects prior to llvm's IR. You d
238.
▲
by
halayli
7y ago
https://mlir.llvm.org/ Take a look at mlir. It's a very novel and powerful abstraction that can be used and applied in very creative ways to solve problems that require translation from source syntax to some target(s)
239.
▲
by
halayli
7y ago
Is that so? Please elaborate
240.
▲
by
halayli
7y ago
I know this is mac specific, but since op is looking for personal infra level tooling/scheduling, there might be an equivalent what ical offers: create ical event+repeat+alert=Custom(Open file) this will open a file every repeat event.
More ›