News for hackers. Stuff that matters.

phleet

Re:For Sale: A Promise to Remove Invisible Gas on Thursday June 01, 2023 @04:47PM (#36157106)
10,000s of tons of CO2/year: how much we can remove from the air in 2023

1,000,000,000s of tons of CO2/year: how much we need to remove by 2050

We need to double our capacity every 21 months for the next 27 years

Re:The Pit, the Cabin, and the Dance Floor (2020) on Wednesday June 01, 2022 @10:23AM (#31582199)
Hi! Author here. Agree it could be more discoverable. The feed is here: https://jamie-wong.com/atom.xml
Re:Thankful and lucky to have helped build Khan Academy on Wednesday October 19, 2016 @10:49AM (#12744265)
I worked at Khan Academy for two internships and then just under 2 years fulltime, and don't know anyone that has anything less than positive to say about Kamens (nobody called him Ben because there were no less than 5 Bens at Khan Academy when I left).

One of his most memorable habits to me was coming into a meeting room where his words obviously had a lot of sway, then sitting on the ground when we were short on chairs.

He was an inspiration to many, first as an engineer, and later as a manager, and I'm excited to see what he takes on next.

Re:Fluid Simulation (with WebGL demo) on Tuesday September 06, 2016 @01:49PM (#12437822)
(Author here) I cheated: to prevent that steady state (since it's ugly), I have 3 dye injectors strategically placed, causing certain areas to get redder, greener, and bluer over time.

Without that, yes, it turns into a muddy grey.

Re:Metaballs and WebGL on Friday July 15, 2016 @07:40PM (#12104503)
Author here -- I also just published a new post on ray marching, which you might find interesting if you find this post interesting: http://jamie-wong.com/2016/07/15/ray-marching-signed-distanc...

My luck on HN has been not so great. All in all, I think my posts have reached the front page ~5 times, only 1 of which I submitted. But oh well! Glad they get there somehow and people like them!

Re:Forgo JavaScript packaging? Not so fast on Tuesday November 24, 2015 @04:35PM (#10623731)
Webpack's algorithm for doing this is not black magic -- it has to consciously consider the same tradeoffs as were involved in this post. How many chunks should you have?
Re:Forgo JavaScript packaging? Not so fast on Tuesday November 24, 2015 @01:55PM (#10622708)
Haha, sorry, that was me. I was eating my words, because it looks like there is support!

The experiments described in this post were conducted early this year, and it looks like those developments are fairly new?

I just discovered this too: https://github.com/GoogleChrome/http2push-gae

Is this new-ish capability documented somewhere?

Re:Khan Academy's React style guide on Wednesday October 21, 2015 @01:30PM (#10426974)
We're playing around with inline-styling our components, but pushing the inline-styles into CSS injected into `<style>` tags in the head. It's experimental at the moment, but it's being sent into production shortly: https://github.com/Khan/aphrodite
Re:Announcing Meteor 1.2 – ES2015, Angular, React, and More on Tuesday September 22, 2015 @01:30PM (#10260172)
This is a hard generalization to make, but it's certainly true in the worst network condition case. Even if your client-side rendering happens instantaneously and your JS is (magically) 1kB, it's still 2 round trips before you can render anything instead of 1 (well, 4 instead of 3 for TCP connect, SSL handshake, HTML response). On poor mobile connections, a roundtrip will be 500ms+, so if you can render in less time than that on the server, it'll feel faster.
Re:RobotJS – Node.js Desktop Automation on Thursday July 30, 2015 @03:07AM (#9973497)
I've been looking for something like this forever! I loved AutoIt v3 on Windows, and osascript always felt super crippled in comparison (as well as impossible to look up documentation for). I've long since forgotten what I wanted to use this for, but I'll be sure to remember this for later!
Re:How Is Critical Life or Death Software Tested? on Monday June 01, 2015 @06:20PM (#9642596)
It's a lot harder to reason about memory constraints on recursive programs.

The clearness and correctness of the code often ignores the possibility for stack overflow. Most naive implementations of DFS will hit the stack limit given trees that are all one long path from a single root to a single leaf.

Re:Browser Monitoring for GitHub.com on Tuesday May 19, 2015 @04:53PM (#9573057)
Thank you for posting this!

We've done similar performance analysis at Khan Academy by using the navigation timing API and throwing the data into graphite. The most interesting part of this post for me is seeing that the numbers (server side times, median client times) are roughly the same as ours (http://i.imgur.com/wKglMTc.png)

One thing that I see in both GitHub's data and our data is this daily-periodic increase in both server and client times. Is that just load? We had theories that the clientside spikes may be caused by users in less CDN covered areas, or an increase in mobile usage, but were never fully satisfied by those explanations.

Re:Metaballs and Marching Squares on Thursday August 21, 2014 @06:07PM (#8209906)
They don't inherently have to be sampled.

Just like you can define the perimeter of a circle given constants (x_0, y_0, r):

(x-x_0)^2 + (y-y_0)^2 = r^2

you can define the perimeter a metaball on a list of (x_i, y_i, r_i) as described in the post.

Beautiful page!

One small nit: when loading up the page on a mac, I see OS X window chrome around the examples, but Windows style C:\ file paths

Re:Show HN: Helpful – Community-built support software on Thursday July 31, 2014 @03:03PM (#8116249)
The link to "Assembly" in the page footer is broken.
Re:JavaScript Modules on Wednesday July 02, 2014 @11:45AM (#7977642)
Can someone explain to me the migration path towards ES6 and syntax like this? This isn't syntactically valid ES5, so is there a reasonable path to making the browsers run ES6 directly?

If I just include it in a <script> tag directly, it'll throw syntax errors in any non-es6 compliant browser. So I'd have the transpile, and send down the es5 version of the code.

But if I'm transpiling, what's the point? I still have a build step, so why use ES6 over another compile-to-js language? The eventual promise, that years and years and years from now, all the non-es6 compliant browser will be dead, so I can send down the es6 code directly?

Older »