Readit News logoReadit News
anaphor commented on My favorite prime number generator   eli.thegreenplace.net/202... · Posted by u/mfrw
anaphor · 2 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.

anaphor commented on Ask HN: Why do many CS graduates lack foundational knowledge?    · Posted by u/platzhirsch
anaphor · 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.

Deleted Comment

anaphor commented on Ask HN: Can you recommend a book to learn basic electrical concepts/engineering?    · Posted by u/TurkishPoptart
anaphor · 3 years ago
Watch EEVblog's playlist on DC theory, and then play around with a breadboard and simulations using something like circuitjs. Get some basic tools such as a soldering iron (and solder/wick/sponge/etc), breadboard, wires, and a collection of components like resistors, capacitors, and LEDs, and so on. r/AskElectronics has a guide for all of the practical stuff you need. Pick a project you actually find interesting and work on it (after learning how to safely use your tools and components).

Lots of people get started with things like using a microcontroller to light up some LEDs and so on. That will introduce you to basic concepts like how transistors work as well if you dig into it.

https://www.youtube.com/watch?v=xSRe_4TQbuo&list=PLvOlSehNtu...

https://www.falstad.com/circuit/circuitjs.html

https://www.reddit.com/r/AskElectronics/wiki/beginners/

Deleted Comment

anaphor commented on Rogers Canada, please fix the damn internet in Canada    · Posted by u/gabugsat
Scoundreller · 3 years ago
that's because your teksavvy service is over Shaw or Telus lines. This outage was out of Teksavvy's hands: if you were in their Rogers-based territory on DOCSIS, you were down with the ship.
anaphor · 3 years ago
I have Teksavvy via Cogeco and had no issues (obviously). I just discovered Rogers owns 41% of their shares though :|
anaphor commented on Five major Canadian banks mysteriously go offline in hours-long outage   finbold.com/five-major-ca... · Posted by u/_0ffh
anaphor · 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.
anaphor commented on Living on 24 hours a day   justindfuller.com/2022/01... · Posted by u/iamjfu
iratewizard · 4 years ago
And cut off the free dopamine sources. Make your phone's screen black and white. Use an extension to block Twitter, reddit, YouTube and HN. Learn to be bored again like when you were young.
anaphor · 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.
anaphor commented on Memories of the “Sneakers” Shoot (2012)   web.archive.org/web/20130... · Posted by u/ColinWright
birriel · 4 years ago
"I leave message here on service, but you do not call." XD This line was referenced in "Halt and Catch Fire." Good stuff.
anaphor · 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"
anaphor commented on Why It’s So Difficult – and Costly – To Secure Chips   semiengineering.com/why-i... · Posted by u/PaulHoule
aurizon · 4 years ago
How Small Is Small? From PC Mag https://www.pcmag.com/encyclopedia/term/process-technology To understand how tiny these transistor elements are, using state-of-the-art 5 nm feature sizes as an example, 16 thousand of them laid side-by-side are equal to the cross section of one human hair. See half-node and active area.

Semiconductor Feature Sizes (approximate for all vendors)

      Nanometers  Micrometers  Millimeters
 Year     (nm)       (µm)       (mm)

 1957  120,000      120.0       0.12
 1963   30,000       30.0       0.03
 1971   10,000       10.0       0.01
 1974    6,000        6.0
 1976    3,000        3.0
 1982    1,500        1.5  **
 1985    1,300        1.3  **
 1989    1,000        1.0  **
 1993      600        0.6  **
 1996      350        0.35 **
 1998      250        0.25 **
 1999      180        0.18 **
 2001      130        0.13 **
 2003       90        0.09 **
 2005       65        0.065
 2008       45        0.045
 2010       32        0.032
 2012       22        0.022
 2014       14        0.014
 2017       10        0.010
 2018        7        0.007
 2020        5        0.005
 2022        3        0.003
 2024        2        0.002 ***
What this means is:- very complex circuits can be laid out and placed inside a bypass capacitor on the 3.3 or 5 volt rail that pass their data through the encapsulant via IR and also receive instructions. They can be hidden on multilayer boards hidden by the + and G rails from x-rays. They can also access data busses by similar hidden means. With data bus access they can get/send clocked data on command. Ever hear of the 'Russian Pebbles'. Dead drops that use a foot coil to send/receive data, and yes, they have wireless charging - a charger agent places his foot nearby the buried pebbles...

anaphor · 4 years ago
You can even place a backdoor on a circuit without any noticeable physical changes (other than chemical differences which are extremely hard to detect). You basically change which chemicals are used to "dope" the transistors, which changes their polarity.

See: https://news.ycombinator.com/item?id=26860715

u/anaphor

KarmaCake day2594August 15, 2013
About
You can email me at wes /AT/ wesk.tech
View Original