HNHacker News
TopNewBestAskShowJobs

jason_s

474 karma · joined February 18, 2015

Embedded systems engineer in motor control and signal processing.

https://twitter.com/jms_embedded

submissionscomments
jason_s··on Is it unethical for me to not tell my employer I've automated my job?
No, this depends entirely on your employment contract. (Though I do agree that presumably a groundskeeper would not have intellectual property clauses in their employment contract) I've worked for two companies and they had different clauses; one said something to the effect that they owned any IP in their business interest (regardless of whether it was created on company time or company equipment); the other was narrower and said that they owned IP created outside of work only if it was dependent on company confidential information.
jason_s··on Ask HN: How can I recover an issue that was in Google Code?
You, sir, have made my day! :-)
jason_s··on Show HN: Tired of the non-portability of my playlists, I wrote my own format
+1, I was going to suggest the same thing. Or at least the ability to note multiple files which are supposed to be chained together in order. It pisses me off when Shuffle doesn't handle these properly:

- Pink Floyd, Brain Damage followed by Eclipse

- Queen, We Will Rock You followed by We Are the Champions

- Yes, Long Distance Runaround followed by The Fish (Schindleria Praematurus)

- the different movements of Beethoven's Fifth Symphony

jason_s··on Show HN: BitKeeper – Enterprise-ready version control, now open-source
I really hope that takes off -- I'm interested in something that like Git but which actually makes sense without costing lots of neurons to understand how to use it in practice.
jason_s··on Show HN: BitKeeper – Enterprise-ready version control, now open-source
^^ this. PLEASE. :-(

Bitbucket has been rotting since Atlassian bought them, and now there's really no "killer app" for Mercurial hosting. There are Mercurial hosting services out there, but nothing anywhere close to Github/Gitlab.

jason_s··on Long-reads, "tl;dr" articles
If it's your job to stay current, and read hundreds and hundreds of articles to see what is relevant, then yes, I could see a tool for managing "information overload" being useful.

My tool for managing "information overload" is to be more picky about what I choose to read in the first place (HN and Reddit definitely help), and to deal with the fact that I can't read everything. I'd rather read 20 articles in full than read 200 articles in soundbite form. My brain isn't going to retain the information anyway, so I can only hold onto the coherent stuff.

I'm still waiting for a good e-reader with enough resolution and update speed to facilitate rapid scanning. Paper is amazingly fast to read; I can scan through a newspaper much much faster than the equivalent electronic form.

jason_s··on Long-reads, "tl;dr" articles
The New Yorker is meant to be read and savored, along with a glass of fine wine on a rainy day sitting in a comfortable chair by the fireplace, while jazz plays in the background. Or on a commuter train while trying to forget stresses of the world for a while. It's about "flow" (https://en.wikipedia.org/wiki/Flow_%28psychology%29) while reading.

A "Reader's Digest" abridged version of the New Yorker misses the point.

If your attention span is in a TL;DR mood, don't read the New Yorker.

My favorite articles in past years:

- http://www.newyorker.com/magazine/1992/03/02/the-mountains-o... - http://www.newyorker.com/magazine/1987/02/23/atchafalaya

jason_s··on Long-reads, "tl;dr" articles
Reader's Digest abridged blogs? no thanks....
jason_s··on I've Just Liberated My Modules
Tell that to the Olympic Restaurant (http://www.nytimes.com/1994/11/13/sports/olympics-an-interim...) and Olympia Pizza (http://www.olympiapizza.com/About.html) and Olympic Gyro (https://www.techdirt.com/articles/20120713/06513919689/us-ol...) and Olympic Provisions (http://legacy.kgw.com/story/money/business/2015/02/20/olympi...) ...
jason_s··on U.S. tells Google computers can qualify as drivers
http://www.cbs.com/shows/the_good_wife/episodes/214653/
jason_s··on Unit Definitions
> * Everyone who follows the current rules of the SI blindly (as per JadeNB's analysis above) "knows" that a Hz is 1 radian/s.

FTFY

In any non-brain-dead system, angular frequency (rad/s, degrees/s, rev/s, RPM) has to be accounted for differently than 1/time. This unfortunately won't prevent automated systems from accepting "sin ft" where f is in Hz (incorrect) rather than "sin wt" where w is in rad/s (correct), but there's really no way to handle this automatically.

jason_s··on Why BPG will replace GIFs and more
oh, good! :-)
jason_s··on Why BPG will replace GIFs and more
FLIF is encumbered by GPL, so it is unlikely to make its way into digital cameras.
jason_s··on Why BPG will replace GIFs and more
FLIF is encumbered by GPL which means it's not going to make it into any digital cameras.
jason_s··on Unit Definitions
If you work in the field of motor control, you need this. (Not only that, but you need to distinguish electrical rad/s and mechanical rad/s; motors with N pairs of magnetic poles undergo N electrical cycles for each mechanical cycle.)
jason_s··on Unit Definitions
Angle is technically dimensionless.

Not sure how to explain the "zen" of radians; it's kind of the angular equivalent of "e" in natural logarithms. People who first learn logarithms say WTF, what is this "e" thing? why not just log10 everywhere? But when you get into calculus you find that "e" is the only log base that doesn't introduce extra baggage; if you take the derivative of a^x the result is ln a * a^x, and if you take the derivative of log_a x = ln x / ln a, you get 1/(x ln a). In both cases the "ln a" term is 1 only when a = e.

For radians, the functions sin wt and cos wt (w = "omega") have derivatives of w * cos wt and -w * sin wt when wt is measured in radians. Otherwise there is an additional constant of proportionality that depends on the angular "unit". (the term "unit" in quotes because it's still dimensionless but just related to radians by a dimensionless scaling factor, like 180/pi for radians <-> degrees or 1/(2*pi) for radians <-> revolutions.

jason_s··on Unit Definitions
yeah, the guy writing that rant in the units.txt file is messed up in the head.
jason_s··on Use JSON files as if they are Python modules
... ??? why? What's wrong with json.loads()?
jason_s··on I'm going to slowly move on from Mercurial
>To replace git, you need a new paradigm. I don't know what it is, and I think few people here would

um.... how about a good command-line UI that doesn't require remembering all sorts of crazy command line switches?

jason_s··on Microchip Technology to Buy Atmel for Nearly $3.6B
??? Sounds like FUD to me.
jason_s··on Microchip Technology to Buy Atmel for Nearly $3.6B
Renesas is a huge microcontroller supplier that no one ever hears about for some reason.

Other major competitors are NXP/Freescale, ST, TI, and Infineon.

jason_s··on Microchip Technology to Buy Atmel for Nearly $3.6B
Atmel's and Microchip's architectures are so different that I wouldn't expect any consolidation of platforms.
jason_s··on Microchip Technology to Buy Atmel for Nearly $3.6B
I commented in the other thread https://news.ycombinator.com/item?id=10939576:

>People in this thread keep talking like this is the "death" of Atmel. I don't see it changing much other than being guided by Microchip management to meet higher profit margins. If you think that Atmel's compilers and IDE's are going to be dropped overnight in favor of MPLAB X and Microchip compilers, you are almost surely mistaken; there's a big gap between architectures so it would be a lot of work to get Microchip tools to support Atmel parts.

jason_s··on Microchip to Acquire Atmel for $3.56B
http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/

nope, just optimization.

>Now that they won't be around

People in this thread keep talking like this is the "death" of Atmel. I don't see it changing much other than being guided by Microchip management to meet higher profit margins. If you think that Atmel's compilers and IDE's are going to be dropped overnight in favor of MPLAB X and Microchip compilers, you are almost surely mistaken; there's a big gap between architectures so it would be a lot of work to get Microchip tools to support Atmel parts.

jason_s··on Abominable Function Types (C++)
totally lost here -- can someone simplify?

I'm barely up to speed with C++11 and recognize the && move syntax but I've never seen "using" and don't understand the author's intent.

jason_s··on Microchip to Acquire Atmel for $3.56B
??? Microchip's IDE has always been free; the XC compilers all have free versions, the only restriction being that you can't use the higher level optimizations (-O2 and -O3 for XC16 are premium; not sure about XC8 and XC32)
jason_s··on Do the math on your stock options
I'd rather have the RSUs (https://en.wikipedia.org/wiki/Restricted_stock) that my company gives us, than stock options. A chunk of them vests each quarter, they allocate an appropriate fraction of that chunk to cover taxes, and the resulting shares are ours to hold or sell. No dilemma of when to exercise or whatever, no risk of being underwater.

My father once got stock options from Nortel Networks right before the dot-com bubble bust (sometime between 2000 and 2002). He exercised them, sold some to buy a car, but held onto the rest, had to pay a hefty tax bill, and then when the price nose-dived, they were worth less than what it had cost him in taxes.

jason_s··on Ritchie language: power of C and convenience of a high-level language
.kniht uoy naht tnatropmi erom s'ti spahrep os ytilibadaer stcapmi xatnyS
jason_s··on Ritchie language: power of C and convenience of a high-level language
? How does Javascript use semantic whitespace?
jason_s··on The dedoublifier, part one
oh right -- mediants! I've never heard of Stern-Brocot but I know what it is.

Why not just use continued fractions directly? https://en.wikipedia.org/wiki/Continued_fraction#Calculating...

e.g.

p = 3.141592653589793

  = 3 + 1 / 7.062513305931052

  = 3 + 1 / (7 + 1 / 15.996594406684103)

  = 3 + 1 / (7 + 1 / (15 + 1 / 1.0034172310150002))

  = 3 + 1 / (7 + 1 / (15 + 1 / (1 + 1/292.63459087501246)))
so the continued fraction coefficients are 3;7;15;1;292 (see http://mathworld.wolfram.com/PiContinuedFraction.html or https://en.wikipedia.org/wiki/Continued_fraction#Continued_f...) and can be converted to rationals at each step using the semiconvergent recursion formula https://en.wikipedia.org/wiki/Continued_fraction#Semiconverg... to get approximants 3/1, 22/7,

(3 + 15 * 22) / (1 + 15 * 7) = 333/106,

(22 + 1 * 333) / (7 + 1 * 106) = 355/113,

(333 + 292 * 355) / (106 + 292 * 113) = 103993/33102,

etc.

← PreviousPage 5 of 7Next →