Better HN
topnewbestaskshowjobs
Log inSign up

localhost

2,512 karma · joined Apr 30, 2011 (15y ago) · 551 submissions

I work on making Python more awesome across the company, now including Excel!

My alias is jflam (at the company I work for).

Submissions

comment 13y ago · link · parent

Girl Talk had a similar "dual life" experience at the start of his career where he was working as a biomedical engineer during the days in a cube farm and jetting off to Europe on the weekends to do gigs.

Here's an early interview: http://pitchfork.com/features/interviews/6415-girl-talk/

comment 14y ago · link · parent

Running IE10 I see <5% CPU utilization.

comment 14y ago · link · parent

The problem was that the 6504 in the disk drive only had something like 2KB of RAM. It was better to transfer the data to the C-64.

comment 14y ago · link · parent

Happy to. I was 15 at the time, so I had limited knowledge of algorithms. So, I invented my own :)

IIRC I packed each character into 6 bits, using the first 26 values for A-Z, and the rest of the values for the common 2-3 grams that I found in the back of a dictionary in the local library. I had some other scheme for building words from stem + suffixes (eg flood, flooded).

What I learned the most from that experience was mostly around reverse-engineering and perseverance. I had to figure out what the 1541 drive did by disassembling its ROM and following the boot sequence. When comparing it to a 2040 drive (a older dual drive variant that was much more expensive - something like $2500 in 1981 dollars) I knew quite a bit about the sector interleave spacing - the disk could do sustained 2 sector reads per revolution. So I knew there was room for improvement if I could just get the transfer rate between the disk and the C-64 to go faster. I did that by improving how it transferred bits down the wire. To cut costs, Commodore had a serial interface vs. the parallel IEEE-488 interface used in the 2040 / Commodore PETs of the previous generation. They had a super inefficient algorithm where they did a handshake for every bit that went down the wire. This was due to the VIC chip in the C-64 stealing cycles from the 6510 CPU whenever it needed to read from shared RAM. Since they weren't clever enough to figure out when the VIC chip would steal cycles they did a handshake for every bit.

I improved this by asynchronously transferring 2 bits at a time using the clock and the data lines for ~3 bytes. I could read a register on the VIC chip that would tell me what scan line was being processed and from that I could tell when the VIC chip would steal the bus. Also on the vertical flyback I would be able to transfer bits with impunity.

This speed boost made it possible for me to hit the interleave on the disk and get the transfer back up to ~25Kbps.

These were pretty low level hacks (that worked quite well) to get things to go fast. Not sure how any of that transfers to the things we do today. One thing's for sure, I don't think I'll ever understand a modern computer as well as I understood those computers of my childhood.

The spell checker was completely IO bound. The 1541 stored ~170KB of data. The words on disk were sorted and I generated a unique sorted list of words in memory. It was, at the time the fastest spell checker for the Commodore 64, it was packaged with a popular word processor of the time called WordPro 64. Most of the other spell checkers had much smaller dictionaries and took a LONG time to read the disk. I could read 170KB in something like 70s, which, using my data transfer improvements was 5x faster than any other spell checker at the time. I'm pretty sure I had more words in my dictionary too. But things are a bit fuzzy - that was nearly 30 years ago!

comment 14y ago · link · parent

I wrote a spellchecker in the 80's for the Commodore 64. Step 1 was writing an efficient data transfer algorithm to move the bits off of the disk so that the 1541 drive could hit the sector interleave (it would miss it using its built-in data transfer algorithm). This sped up IO by 500%. But for reference that was still only about ~25kbps, or a bit slower than a 28.8kbps modem. Step 2 was coming up with a data compression algorithm that exploited the distribution of the top 30 or so 2/3-grams in English. I had a dictionary of about 80K words.

I can confirm this is on the order of several months worth of work :)

comment 14y ago · link · parent

I think the last part of the post where he meets the ex pro runner is key. There's the old adage of "practice makes perfect" whereas in reality it's "perfect practice makes perfect". Learn how to run properly first (much harder than it looks) then start to add the miles / pace. Chi Running is a fantastic book for this (although it's incredibly verbose). A key thing I learned there is the value of a metronome to aid in cadence.

comment 14y ago · link · parent

On the other hand, there are products that have a lot of inertia built into them based on the success of their ecosystems. For example, regardless of whether you believe tile based interfaces in Windows 8 / Windows Phone are interesting / useful, they are different. Apple simply can't go there (quickly) without having to move the entire ecosystem of apps along with it. It's effectively a once in a generation change, much like the OS9 to OSX transition.

comment 14y ago · link · parent

In principle, you should be able to trivially turn this into a WinRT app. This way you could write to temp file storage for your app and render out of that. You could keep the codebase isolated for the cross-platform browser bits and have WinRT integration code as a separate project.

comment 14y ago · link · parent

Mono is a completely different implementation from the CLR. I wouldn't be so quick to discount the CLR's GC.

comment 14y ago · link · parent

Interesting idea. I do a similar thing with OneNote on long outgoing mails that I write that take a long time to compose.

However, how do you deal with threaded conversations and tracking the 1 liner replies to those mails? There are a large # of mails that I write that fall into this category.

Someone I know wrote his own email client that is essentially a long text buffer where email conversations are persisted to a single text file. He has commands that allow him to select portions of text from that file to compose in his replies. He's used that system since the 1980's and still has all of his email from back then logged into individual files.

comment 14y ago · link · parent

This is cool. A bit of feedback - it would be really helpful if the linked page said exactly what pressureNet does - I had to read the linked Giz article to understand that it takes barometric readings off of the Xoom's built-in barometric sensor.
1
1516171819