Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hoytech
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
hoytech
7y ago
It's better to just do nothing and allow SIGPIPE to kill your program. That is the reason this signal exists. Python is not a good unix citizen in this case. Compare it to Perl for example where nothing special is required to do the ri
62.
▲
by
hoytech
7y ago
I think the "calling BS" objection was to your categorical statement: "No computer-to-computer interchange format has comments," and not about whether they are a good idea or not (that is a separate argument). How about
63.
▲
by
hoytech
7y ago
Why do you believe this? Are you under the impression there is some security problem, or are you opposed to users having more control over how programs run on their computers?
64.
▲
by
hoytech
7y ago
Well searching/counting/etc k-mers can be done with regexps, but I certainly agree that regexp-based searching is somewhat niche compared to more generally useful similarity searches like BLAST. One comment though: backtracking is
65.
▲
by
hoytech
7y ago
Interesting, thanks!
66.
▲
by
hoytech
7y ago
I'm especially interested in how sequence searching and matching work in libraries like this. Seq has a "match" statement for this task, which implements ACGT characters and _ for a single wildcard base and "..." fo
67.
▲
by
hoytech
7y ago
This is still in kick-starter phase, but if you don't mind waiting a few months it has a lot of potential IMO: https://www.crowdsupply.com/e-radionica/inkplate-6
68.
▲
by
hoytech
7y ago
There is also: -t(STDOUT) Pulling in the POSIX module uses a lot of memory.
69.
▲
by
hoytech
7y ago
https://www.buzzfeed.com/erikmalinowski/the-evolution-of-the...
70.
▲
by
hoytech
7y ago
Here's a good presentation by Michael Ossmann on DIY retroreflectors with a HackRF: https://www.youtube.com/watch?v=mAai6dRAtFo
71.
▲
by
hoytech
7y ago
Solokeys are great. They also have a crowdsupply for a smaller form factor version (USB-A only for now): https://www.crowdsupply.com/solokeys/somu
72.
▲
by
hoytech
7y ago
Any reason why you don't give addition and concatenation distinct operators? Perl does this and it's a lot cleaner IMO. Whenever you see a "+" you can consider it an explicit numeric conversion of both arguments: https:
73.
▲
by
hoytech
7y ago
Not to be that guy, but is it still an "RC" car if it's self-driving? :)
74.
▲
by
hoytech
7y ago
I'm sure you know, but for the people down-voting you: You often have to kill dogfish when you pull them up because they have poisonous spines on them and you don't want to get pricked while they're thrashing around. I'v
75.
▲
by
hoytech
7y ago
https://en.wikipedia.org/wiki/School_of_the_Air
76.
▲
by
hoytech
7y ago
This is a really fun and easy experiment you might like: https://www.cs.cmu.edu/~zhuxj/astro/html/spectrometer.html
77.
▲
by
hoytech
8y ago
And the character that was after the 3rd hyphen is always one of [89ab].
78.
▲
by
hoytech
8y ago
"When I'm in a book store nowadays, or when I'm at a conference looking at a table full of new books, I try to gauge how good the books are by picking them up and -- yes, I guess it's okay to reveal the secret -- I turn
79.
▲
by
hoytech
8y ago
I just tested and this Makefile works fine with clang, except that -flto should be added to LDFLAGS. In fact I believe it should be there for gcc too, according to https://gcc.gnu.org/wiki/LinkTimeOptimization so perha
80.
▲
by
hoytech
8y ago
You shouldn't hard-code gcc. make has an implicit CC variable for this: https://www.gnu.org/software/make/manual/html_node/Implicit-... Your makefile will then work on systems without gcc, and it is
81.
▲
by
hoytech
8y ago
I also wrote a forth system for the Z80 TI calculator series when I was in high school, about 20 years ago now (wow). Very happy to see young people still fooling with this stuff, despite the ubiquity of smart phones etc. I just uploaded th
82.
▲
by
hoytech
8y ago
Hehe nice ones, thanks for the links! :) Yep leave it Damien. I remember he did something similar for a test module where it would show the expressions that were evaluated in the test failure output.
83.
▲
by
hoytech
8y ago
It's pretty much exactly like Ingy's XXX perl module from 2006: https://metacpan.org/pod/XXX Prints a YAML dump of "my str", followed by file/line number information, then returns its argument
84.
▲
by
hoytech
8y ago
Hi Marek, great article as usual. > (2) Pre-warm the disk cache with posix_fadvise(2) and hope for the best. Just as an aside, there is also the option of mlock(2) to improve this technique as implemented in the flash webserver ( https:&
85.
▲
by
hoytech
8y ago
For perl5 there have been several attempts at AOT native code compilers. For example: http://rperl.org
86.
▲
by
hoytech
8y ago
$ perl -MO=Concise -e 'my $v = 1234; $v *= 9876' a <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 1 -e:1) v:{ ->3 5 <2> sassign vKS&
87.
▲
by
hoytech
8y ago
Didn't see the most addictive variant mentioned in the history: https://en.wikipedia.org/wiki/TetriNET Here's a remake you can play in your browser built by some friends of mine: http://blockbattle
88.
▲
by
hoytech
8y ago
Another nice example is the name of Obelix's little dog. In French it's Idéfix, a play on "idée fixe". In English it's Dogmatix, a play on "dogmatic" (preserving the French joke) and, obviously, "dog&
89.
▲
by
hoytech
8y ago
Thank you for the details. I agree none of this probably matters much for their use-case.
90.
▲
by
hoytech
8y ago
Yes good point. I was careful not to say that perl actually uses rand(3) because I think it may not for portability reasons. Also, I think this may have changed at some point so might be different depending on perl version.
More ›