Better HN
topnewbestaskshowjobs
Log inSign up

novocaine7

4 karma · joined Nov 26, 2012 (14y ago) · 4 submissions

Submissions

1.

Malleability Is in the Eye of the Beholder(jsalter.net ↗)

3 points · by novocaine7 · 6y ago · discuss

comment 13y ago · link · parent

why would you focus on what's happening to the bottom tier students?

what do you think is happening to the distinction and high distinction students?

all the interesting from uni (unsw) i know either have good jobs or are doing really interesting research.

and software engineering is plenty well respected - people usually know it means you build apps and generally assume you're pretty smart. cheer up mate.

comment 13y ago · link · parent

I work for a mid-sized financial software company and am involved with dev on a mature, used in production, in-house Excel clone.

Initially I figured this was about the craziest thing possible, but over time I've come to realise the company derives genuine competitive advantage from this system because

1. it allows actuaries to program calculators in a language and environment that they are comfortable with. It is a lot easier to find finance guys that do excel than ones that can seriously program.

2. tbh, excel is often a really good tool for the job because it allows visualization of data as you work. If you work often with projections it kills the alternatives like numpy, matlab etc.

The system is pretty advanced and has been used in production for about 8 or so years. We have an interpretive runtime for use during dev and also a static compiler that generates c++ and creates a shared library per sheet.

Some interesting points about implementing excel:

* Most functional languages do lazy evaluation on the assumption that there's a fair amount of arguments that won't be evaluated. We find that in excel all arguments are almost always used, so lazy evaluation and thunks just add overhead if you use them in all cases. We just have special cases for IF and OR et al.

* Performance is all about cell caching - i.e. memoization - but you only really have performance problems if you want to do root finding monte carlo sims online (we do). We have a dependency tracking system so cached cells are selectively flushed only when a cell they depend on changes.

* the system generates very large amounts of static c++, sometimes hundreds of thousands of lines for one sheet - this can be necessary when the sheet has millions of cells, even though we scan for similar formulas and factor them into single functions to improve spatial locality. MSVC can compile a million line .cpp in about 5 minutes using about 1gb ram - gcc 4.6 would use all the memory on my 8gb machine and swap ad infinitum (but if you split the files it is fine).

comment 14y ago · link · parent

its not just a custom lisp (which i wouldnt be too worried about) - its a custom db.

i wonder how much engineering talent is going to get sunk into writing a db and whether the management is going to get fidgety while the company's best talent is writing a db rather than the product? (especially with .. two guys)