anaphor

Joined 13 years ago

Karma
2,594
Submissions
878
Member since
Aug 15
You can email me at wes /AT/ wesk.tech
View on Hacker News

Recent submissions

Comment · 3 years ago
There's a functional / lazy version I like that uses a priority queue in order to get the next prime number https://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf

It basically uses the priority queue to store all the composites up to a certain point and then you can assume the next one is prime.

I had some (admittedly not well written) code for it too https://gist.github.com/weskerfoot/4699275

It can also incorporates the wheel factorization optimization mentioned in this article.

Comment · 3 years ago
Because they all cheated on their coursework and got graded on a curve for exams. Source: I was a TA for an intro CS course.
Comment · 3 years ago
Comment · 4 years ago
I have Teksavvy via Cogeco and had no issues (obviously). I just discovered Rogers owns 41% of their shares though :|
Comment · 4 years ago
These are just reports people made that the sites were down. Not actual data from monitoring tools or something. I used my Canadian banking website a bunch of times yesterday and had no issues. Banking websites go down for maintenance or randomly start acting slow because of the crappy infrastructure they're built on, or because of other reasons located between your computer and their servers. Nothing I've seen shows any actual evidence that anything out of the ordinary happened. Just confirmation bias.
Comment · 4 years ago
Or block all of the non-educational youtube channels. Personally a good portion of my youtube usage is educational videos about electronics now. It feels like much less of a waste of time than twitter or instagram.
Comment · 4 years ago
They referenced the movie on Stranger Things as well with a line similar to the one River Phoenix's character says: "It's fascinating what 50 bucks will get you at the county recorder's office"
Comment · 4 years ago
Comment · 4 years ago
It works if you put it in "Verbatim" mode for that particular search, but I don't know how to make it permanent. Does anyone know if there's a way to always force it to use "verbatim" mode?
Comment · 5 years ago
That's awesome. I didn't file an issue yet but I was hoping to try it again soon and get a better idea of what's going wrong first.
Comment · 5 years ago
You can always call the C functions directly (from a shared lib) although admittedly it's a pain because you have to deal with unmanaged pointers very often.
Comment · 5 years ago
I would really like to see more work on improving the use of Nim for programming microcontrollers. I stumbled on to https://github.com/elcritch/nesper recently and it looks neat, but I had issues getting my code to compile. Improved support for other MCUs like the esp8266 and atmega32u4 would be really cool and useful. It would be nice to have Nim as a higher level alternative to micropython or lua in the embedded world (your only other real alternatives being C/C++ or Rust).

I also found this https://disconnected.systems/blog/nim-on-adruino

Comment · 5 years ago
good to know! I was a bit confused by that at first :)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton