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 8y ago · link · parent

Here is the entire text of the 2nd Amendment:

"A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed."

comment 9y ago · link · parent

In vim, I use CTRL+[. This should be mapped by default. Way better than the uncomfortable reach for the ESC key.

comment 9y ago · link · parent

Obligatory link to VimGolf, a great way to learn by doing.

https://vimgolf.com/

484.

How to Make Enemies and Lose Influence in the Chip Business(bloomberg.com ↗)

1 points · by localhost · 9y ago · discuss

comment 9y ago · link · parent

Read a little further down to WiSaGaN's answer. There's an excellent discussion of the optimizations afforded by the cmovge instruction that is typically generated for the C ternary operator and how its implementation in the CPU pipeline allows it to avoid the branch misprediction penalty.

He references a textbook as well "Computer Systems: A Programmer's Perspective (2nd Edition)". Just bought a copy.

comment 9y ago · link · parent

FYI I've found a way around the WSJ paywall - copy and paste the title into Facebook and click on that link.

comment 9y ago · link · parent

Depends on what you mean by scale. If scale means providing services globally to many jurisdictions, you're going to have to start doing the things that the big players so like putting data centers in specific geographies (e.g., EU, China). That means getting real estate, power etc. At that point I think the scale tips in the other direction where it's now more costly for you to "scale". So, cheap at the small end, cheap at the high end and expensive in the middle (cloud).

488.

Exploiting pseudo-RNGs in slot machines (2017)(wired.com ↗)

4 points · by localhost · 9y ago · discuss

comment 9y ago · link · parent

Current Ryzen CPUs support ECC, so presumably so will the Threadripper variant. See Lisa Su's comment(!) on Reddit repro'd on this page: http://www.hardwarecanucks.com/forum/hardware-canucks-review...

comment 9y ago · link · parent

Agreed. Raquel Urtasan's research is the cutting edge in this area: https://www.cs.toronto.edu/~urtasun/. And she was recently hired/retained by Uber to lead their robot car efforts in Canada. Here's a recent video of her research from the National Academy of Sciences: https://www.youtube.com/watch?v=sW4M7-xcseI

comment 9y ago · link · parent

Agree!

Machines can already see better than blind people. Machines can already hear better than deaf people. Machines can already move better than an invalid.

The low hanging fruit will be prosthesis for people missing that function. Then for people with impaired function. Then for people with full function (would you like a better memory/vision/hearing than you ever had before?)

comment 9y ago · link · parent

Or perhaps they want to go down the road of FPGA / ASIC. There is some LLVM based FPGA tooling around today [1], but perhaps they want to uplevel the core programming language to a new programming language? Chris has done this already from Obj-C to Swift.

[1] http://llvm.org/devmtg/2014-10/Slides/Baker-CustomHardwareSt...

comment 10y ago · link · parent

Well, the C64 screen resolution is 320 x 200, so you should be able to do some awesome full screen emoji :)

comment 10y ago · link · parent

Do Mac developers care at all about function keys? When I switched to a Powerbook G4 back in the day, I learned vim key bindings because of the lack of function keys (and page down/up). To address the specific complaint about the ESC key, I've been using CTRL-[ with the CAPS LOCK key mapped to CTRL for as long as I can remember.

Does the typical Mac developer care at all about physical / virtual function keys given their workflow? I would imagine not, but would love to hear about others' experiences here.

comment 10y ago · link · parent

That is a MUCH more detailed article. Thanks for sharing.

comment 10y ago · link · parent

Both of these two projects attempted to solve a problem that very few people have - using .NET libraries from Python and Ruby. In exchange, you had to give up all of your existing native libraries. That is a trade-off that very few people wanted. Source: I started the IronRuby project.

I learned this lesson the hard way a few times in my career - always have respect for people's existing code investments.

comment 10y ago · link · parent

At any company (Microsoft included) where performance-based compensation exists, there is a budget for that line item. Therefore it is a zero-sum game - to pay someone more because of their performance, that means that someone else gets less (or zero) from that line item.

So, depending on how you interpret the term "stack ranking", you can either look at it as "forced removal of the bottom x% of the company" or "people aren't ranked / bucketized". In the MSFT case, I believe that the former has been removed. But the latter definitely cannot be removed if you are to have performance-based compensation.

comment 10y ago · link · parent

You can rent an r3.8xlarge instance with 344GB RAM on AWS for $2.66/hr. If that isn't enough, an x1.32xlarge instance with ~2TB RAM is $13.34/hr. Assuming your data is already in AWS, of course. Of course those machines have a crap ton of CPU power (I'm explicitly not saying cores because I'm mystified by what vCPU really means) as well which you will be hard pressed to take advantage of but if it's RAM you need they're super-cheap.

If you prefer Azure, a G5 instance with 448GB RAM is available for $9.65/hr.

Not a lot of need for Spark/SparkR for the vast majority of data sets given the cheapness of compute these days.

comment 10y ago · link · parent

"When 60% of the workforce is unemployable ..." this is why I think that what we are currently seeing in the Trump phenomenon is just the tip of the iceberg of this problem from the perspective of the US political system. I don't know what can reasonably be done to fix this, but I that I think will get worse before it gets better.

comment 10y ago · link · parent

No, and not a stupid question at all :) This isn't an "IronR", rather RTVS simply calls out to whatever R interpreter that you have installed on your machine (and that is configurable if you like switching between different interpreters / versions).

comment 10y ago · link · parent

There is also the R Inferno "If you are using R and you think you’re in hell, this is a map for you": http://www.burns-stat.com/documents/books/the-r-inferno/

502.

Educational Mithridatism(zedshaw.com ↗)

4 points · by localhost · 11y ago · discuss

comment 11y ago · link · parent

Where I live (WA state USA), there are some crazy tax incentives here for solar. Rough math:

1. 30% rebate on federal income tax, so that's $12K back in the first year. 2. $0.54 / kWh WA state energy production credit which is capped at $5K / year. The estimated power production of a 9kW array over 1 year should get me pretty close to $5K back. The production credit expires in June 2020, which means that best case I get $25000 back from the state.

Without factoring in energy cost savings, I nearly break even in 5 years. Energy cost savings are somewhere in the neighborhood of $1200 / year with solar.

If the only rationale was energy savings, it's not a good investment. However, the tax incentives make it very attractive indeed.

More details on WA state incentives here: http://www.solarpowerrocks.com/washington/

comment 11y ago · link · parent

I'm going to install a 9kW solar grid on my roof in the next couple of months - capital cost is ~$40K USD. Without the Power Wall, I'd be selling power back to the utility at around $0.10 / kWh, and buying it back at $0.09 / kWh in the evenings. The Power Wall will also let me endure grid outages as well (you can't run your house on your solar panels directly).

I'm really curious about what the end-user cost is going to be for one of these batteries, after distributor markup and utility company rebates. Would be interesting to see if it pays for itself over the 10 year lifespan of the batteries.

I just reserved one.

comment 11y ago · link · parent

But there was also a follow-on quote attributed to Mark in the Wired piece:

"If you open source something but it comes with a build system that takes rocket scientists and three months to set up, what’s the point?"

When was that said? Or was it? That would be something that is a blocker to adoption.

comment 11y ago · link · parent

Thanks. Looks like both Multiplan[1] and Excel were p-code. However, Multiplan was wiped out by 1-2-3, and Excel ... adapted (it certainly isn't p-code today or anytime in recent history).

[1] http://en.wikipedia.org/wiki/Multiplan

comment 11y ago · link · parent

I'm pretty sure it was Multiplan and not Excel that used the p-code approach. Also, when Lotus 1-2-3 shipped, it was written entirely in assembly, was blazing fast, and crushed Multiplan in the marketplace.

comment 11y ago · link · parent

I learned how floating point arithmetic worked by disassembling the ROMs on my Commodore PET as a child. There I learned that they used a Taylor series expansion to compute the values of transcendental functions. It was fun to see the coefficients in the source.

When I wrote a set of 80 bit IEEE Temporary Real floating point functions for the 6502, I used an early version of Maple running on a VAX that I, ahem, "acquired" an account for running at a local university to compute the coefficients for my functions.

I grew up with this code; it's so awesome to finally see the source!

1
1516171819