These are chat archives for DDMAL/RodanClient-deprecated-

16th
Jun 2015
Andrew Horwitz
@ahwitz
Jun 16 2015 12:18 UTC
I was having issues with iterating over a “DOM element” with a for/of but it turns out they haven’t implemented that automatically yet
thanks anyway
I’m also pretty sure I had a dream where I was arguing with you that a for/of was fast enough to use in production
Andrew Hankinson
@ahankinson
Jun 16 2015 14:18 UTC
Ha. That's funny, since for...of can't be used in production now, at least not without transpiling to ES5
Andrew Horwitz
@ahwitz
Jun 16 2015 14:35 UTC
well yeah, this is all assuming babel is a given
actually do you know offhand what it transpiles to?
I think babel/traceur implemented Iterator IIRC, which should just be the same while syntax you made us use
Andrew Hankinson
@ahankinson
Jun 16 2015 14:37 UTC
not a clue. It's probably best to stick to the "tried-and-true" for any sort of performance sensitive code though.
Andrew Hankinson
@ahankinson
Jun 16 2015 14:44 UTC
Are you using backbone for your super sekrit project?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:44 UTC
I mean, it’s not really a secret
and you’ll probably hear a ton about it at IAML
Andrew Hankinson
@ahankinson
Jun 16 2015 14:45 UTC
I know, I was just teasing you for selling out to the corporate world. ;)
(Just kidding -- you have a job, I don't. You win.)
Andrew Horwitz
@ahwitz
Jun 16 2015 14:45 UTC
I haven’t got started that much on the client side, but I’m planning to stick with backbone/marionette for the time being unless they’re actually going to abandon it
what happened to the gig in Switzerland?
Andrew Hankinson
@ahankinson
Jun 16 2015 14:46 UTC
no gig yet
Andrew Horwitz
@ahwitz
Jun 16 2015 14:46 UTC
ah
Andrew Hankinson
@ahankinson
Jun 16 2015 14:46 UTC
who would abandon it?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:47 UTC
I thought you’d mentioned Backbone was being abandoned
Andrew Hankinson
@ahankinson
Jun 16 2015 14:47 UTC
No
Andrew Horwitz
@ahwitz
Jun 16 2015 14:47 UTC
but then I saw someone was still active in commiting
okay
I don’t completely want to sell my soul to Google and use Angular
want to completely*
Andrew Hankinson
@ahankinson
Jun 16 2015 14:47 UTC
Angular is undergoing a rewrite into $INSERT_GOOGLES_LANGUAGE_OF_THE_DAY_HERE
Andrew Horwitz
@ahwitz
Jun 16 2015 14:47 UTC
that order
Andrew Hankinson
@ahankinson
Jun 16 2015 14:48 UTC
Dart / Typescript / Something
Andrew Horwitz
@ahwitz
Jun 16 2015 14:48 UTC
something that transpiles back to JS?
Andrew Hankinson
@ahankinson
Jun 16 2015 14:48 UTC
Yeah... ish
Andrew Horwitz
@ahwitz
Jun 16 2015 14:48 UTC
ah
lovely
evan magoni
@magoni
Jun 16 2015 14:49 UTC
Go
Andrew Horwitz
@ahwitz
Jun 16 2015 14:49 UTC
where?
evan magoni
@magoni
Jun 16 2015 14:49 UTC
jk
Andrew Horwitz
@ahwitz
Jun 16 2015 14:49 UTC
:rimshot:
evan magoni
@magoni
Jun 16 2015 14:49 UTC
:(
Andrew Hankinson
@ahankinson
Jun 16 2015 14:50 UTC
C++
For speed.
Andrew Horwitz
@ahwitz
Jun 16 2015 14:51 UTC
then to Emscripten for usability?
Andrew Hankinson
@ahankinson
Jun 16 2015 14:51 UTC
Yeah. So to get your webapps running you need to install a C compiler
Andrew Horwitz
@ahwitz
Jun 16 2015 14:52 UTC
why aren’t we just running everything in assembly
Andrew Hankinson
@ahankinson
Jun 16 2015 14:52 UTC
You could rewrite the performance-critical stuff in FORTRAN
Andrew Horwitz
@ahwitz
Jun 16 2015 14:52 UTC
pfft, who needs those javascript math symbol rendering libraries
everyone should just read raw fortran code
Andrew Hankinson
@ahankinson
Jun 16 2015 14:53 UTC
Whoa
"Introduction to iPads for stone table engravers."
*tablet
evan magoni
@magoni
Jun 16 2015 14:55 UTC
let's write a fortran to js compiler
Andrew Horwitz
@ahwitz
Jun 16 2015 14:55 UTC
:+1: SIMSSA needs that
Andrew Hankinson
@ahankinson
Jun 16 2015 14:55 UTC
It's (unfortunately) already been done.
Or fortunately, depending on your point of view
Andrew Horwitz
@ahwitz
Jun 16 2015 14:56 UTC
sorry to interrupt this wonderful conversation, but why did I think you could do something like {} * 10 in python
to create an array of 10 empty dictionaries
list* whoops
Andrew Hankinson
@ahankinson
Jun 16 2015 14:57 UTC
Because that's an awful way to program?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:57 UTC
there’s some language that supports that directly
found the actual, “pythonesque” or whatever they say way to do it
Andrew Hankinson
@ahankinson
Jun 16 2015 14:58 UTC
which is?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:58 UTC
portions = [{} for _ in range(num_portions)]
Andrew Hankinson
@ahankinson
Jun 16 2015 14:59 UTC
Why are you pre-allocating these?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:59 UTC
I’m initializing them with more stuff than an empty dictionary
it’d be easier to do objects but this is something I need to crank out fast and will not be incorporated into a production scenario
output is more important than process and reproducibility
/editability