These are chat archives for DDMAL/RodanClient-deprecated-

16th
Jun 2015
Andrew Horwitz
@ahwitz
Jun 16 2015 12:18
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
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
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
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
Are you using backbone for your super sekrit project?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:44
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
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
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
no gig yet
Andrew Horwitz
@ahwitz
Jun 16 2015 14:46
ah
Andrew Hankinson
@ahankinson
Jun 16 2015 14:46
who would abandon it?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:47
I thought you’d mentioned Backbone was being abandoned
Andrew Hankinson
@ahankinson
Jun 16 2015 14:47
No
Andrew Horwitz
@ahwitz
Jun 16 2015 14:47
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
Angular is undergoing a rewrite into $INSERT_GOOGLES_LANGUAGE_OF_THE_DAY_HERE
Andrew Horwitz
@ahwitz
Jun 16 2015 14:47
that order
Andrew Hankinson
@ahankinson
Jun 16 2015 14:48
Dart / Typescript / Something
Andrew Horwitz
@ahwitz
Jun 16 2015 14:48
something that transpiles back to JS?
Andrew Hankinson
@ahankinson
Jun 16 2015 14:48
Yeah... ish
Andrew Horwitz
@ahwitz
Jun 16 2015 14:48
ah
lovely
evan magoni
@magoni
Jun 16 2015 14:49
Go
Andrew Horwitz
@ahwitz
Jun 16 2015 14:49
where?
evan magoni
@magoni
Jun 16 2015 14:49
jk
Andrew Horwitz
@ahwitz
Jun 16 2015 14:49
:rimshot:
evan magoni
@magoni
Jun 16 2015 14:49
:(
Andrew Hankinson
@ahankinson
Jun 16 2015 14:50
C++
For speed.
Andrew Horwitz
@ahwitz
Jun 16 2015 14:51
then to Emscripten for usability?
Andrew Hankinson
@ahankinson
Jun 16 2015 14:51
Yeah. So to get your webapps running you need to install a C compiler
Andrew Horwitz
@ahwitz
Jun 16 2015 14:52
why aren’t we just running everything in assembly
Andrew Hankinson
@ahankinson
Jun 16 2015 14:52
You could rewrite the performance-critical stuff in FORTRAN
Andrew Horwitz
@ahwitz
Jun 16 2015 14:52
pfft, who needs those javascript math symbol rendering libraries
everyone should just read raw fortran code
Andrew Hankinson
@ahankinson
Jun 16 2015 14:53
Whoa
"Introduction to iPads for stone table engravers."
*tablet
evan magoni
@magoni
Jun 16 2015 14:55
let's write a fortran to js compiler
Andrew Horwitz
@ahwitz
Jun 16 2015 14:55
:+1: SIMSSA needs that
Andrew Hankinson
@ahankinson
Jun 16 2015 14:55
It's (unfortunately) already been done.
Or fortunately, depending on your point of view
Andrew Horwitz
@ahwitz
Jun 16 2015 14:56
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
Because that's an awful way to program?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:57
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
which is?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:58
portions = [{} for _ in range(num_portions)]
Andrew Hankinson
@ahankinson
Jun 16 2015 14:59
Why are you pre-allocating these?
Andrew Horwitz
@ahwitz
Jun 16 2015 14:59
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