« first day (1909 days earlier)      last day (2936 days later) » 

11:00 PM
^^^
 
typescript has its heart in the right place and it could really be quite good, but the creators are dragging their feet when it comes to interop and even VS is not keeping up with the versions of typescript. not to mention the latest version of VS (2015) doesn't actually respect tsconfig.json half of the time and the other half of the time it keeps falling over itself by trying to scan the entire of node_modules.. on a pc with a hdd it causes VS to brick itself
@QPaysTaxes that's typescript
first statement is import from commonjs
second statement is static es6 module import
 
@CᴏɴᴏʀO'Bʀɪᴇɴ because you dislike jquery, were you the one who downvoted this?
 
third statement is invoking a generic function require which force-casts the result to any so you can actually use it
note that the casting doesn't do anything at runtime it's just for static analysis
compare this to babel, which is sensible and adds an interop helper with commonjs (which 99% of npm uses):
 
Are you still on TS or are you doing the transition to FlowType @DanPantry?
 
import $ from 'jquery'
import lodash from 'lodash'
import classNames from './classNames.scss'
@Quill today I used sed to strip all typescript specific imports/casts and move everything to .js
 
11:03 PM
@quartata sqrt(det(A^T * A)) maybe? That avoids the inconsistency. Not sure how useful it may be, though
 
most type annotations can stay because they're syntax-compatible with flowtype, but right now they are just being stripped because most of them are wrong/omitted/any anyway
 
WebStorm has a builtin feature that tries (it literally won't stop asking me) to convert TS code into JS
 
the next 2-3 months is essentially going to be dedicated to bricking the app and building it from the ground up with component-based architecture and redux in mind
and http2/spdy
interestingly, SE's chat is not using spdy
 
@LuisMendo As it turns out that's actually what Jelly does... I misread Dennis's commit
 
@QPaysTaxes http2 is the next version of http (funnily enough)
 
11:05 PM
isnt se chat
damn, I thought it used WS
 
@quartata That totally makes sense then. Thanks for the suggestion!
 
amongst other things it enables server prefetching and multiple concurrent http requests instead of them being synchronous
@Optimizer it uses long polling I believe
 
no, normal post calls
 
i mean when receiving new messages
 
oh, probably.. let me refresh
 
11:06 PM
server prefetching, btw, is awesome. how it works is that the server indicates if you go to /foo you might also want /bar
 
It actually uses websockets
 
so the server will, ahead of time, stream /bar to you, but the page won't block waiting for it
then when you next to go /bar you won't hit the server, it'll already be cached
 
oh, WS for receiving
 
you can long poll too though but that's used for the transcript I believe
 
i believe it also uses a binary protocol instead of a textual one making the http sizes rly small... http2 is crazy fast compared to http
 
11:08 PM
Nope. It's regular JSON
 
obvious downside is that you can use more bandwidth if the server guesses wrong
@quartata i was talking about http2 in general, not SE chat then
 
Still doing js talk?
 
Oh my bad
 
11:09 PM
no that chat room is mean and scary and full of assholes angry people
and people who use capital letters
 
@QPaysTaxes I made a file with "This is aF string.FOO Stuff." Foo is my regex. This read everything up until the regex.
data = ''
with open('MyFile.txt', 'r') as myfile:
    data = myfile.read()

regex = "FOO"
print data.split(regex)[0]
 
heavy /s, btw.
 
@DanPantry ik
 
use a while loop and read byte by byte and break
 
11:10 PM
Harriet Tubman is new $20 bill :O latimes.com/business/…
 
It's imperative sure but it works
 
Kinda neat, didn't expect paper money to ever change
 
here in Europe, paper money doesn't change visually
 
food for thought - how to identify if some keys of an object were never accessed (during some time of course)?
JS
 
11:12 PM
it just steadily drops in value the longer greece stays in the eu
 
oh snap
 
@DanPantry well, if you want to do that, make the keys getters anyways..
 
@Optimizer yeah, that could work also, but that would require direct access to the object - proxies don't
 
and get is more widely supported than proxy
 
you asked how you would do it
not how you would do it in a backwards compatible way
;-)
 
11:14 PM
Is there no Object.prototype.get you can override?
 
even if you could, it's probably an internal method that various per browser.
I would not recommend it.
 
@QPaysTaxes I timed how long it took to run my program for 5000 characters vs 10 characters. I did five trials of each. The two averages were within a millisecond of one another.
 
@DanPantry you can create a function which takes in an object and replaces the keys with getters.
 
@Optimizer Or better yet, return a new object that shadows the old one without mutatin it
 
import time
start = int(round(time.time() * 1000))

#do the stuff

print end - start
 
11:15 PM
congrats - you just created a proxy ;D
 
That's what I used, for reference (with do the stuff replace with the earlier program)
 
brush your teeth then
I mean all the time.
 
brush them more. BRUSHIE BRUSHIE
 
Are you seriously worried about how much memory a string will take?
I wouldn't be
 
with the same tooth brush?
 
11:16 PM
ew
 
@Optimizer No. He uses his tooth brush on the dog and uses dentastix himself
:^)
 
@QPaysTaxes I feel so unhelpful lol
 
as always
and i am off to sleep.
 
@QPaysTaxes Closed as unclear what you're asking
 
Suppose I wanted to make a very fast interpreter for a prefix golfing language focused on math challenges. What language should I implement it in? C meets the very fast requirement but not really the math builtins requirement
 
11:19 PM
@quartata assembly. /s
 
@DanPantry perfect
The reason why I ask is because I want to make a primarily math focused language but I've been noticing time limits a lot more often on math challenges which makes it rough for golfing languages since they often written in slow languages and are slow themselves
 
@AlexA. How fast is R?
 
@quartata yarrrrrrrrrr it's pretty fast
> I just installed a clean copy of MS Word 2016
> for Mac today
 
11:29 PM
wat
 
yah
it exists
and is better than Apple Pages.
@DanPantry why so much wat
 
@DanPatntry Like, is it faster than CPython? I'll settle for faster than CPython.
 
I think so.
 
Is it faster than Perl? :P
 
@quartata i have no idea, i was making a pun..
yaRRRRRRRRRRRRRR
 
11:34 PM
Oh OK.
Pirate puns are great
 
I ship them.
 
hahahahaha
 
@QPaysTaxes HOIST THE COLOURS WE GOT OURSELVES A WHALE O A TIME ON THE STARBOARD
the "whale of a time" and "starboard" were unintended puns
@QPaysTaxes Port is also a thing you open when you want to let pirates in
Both IRL and on a PC.
 
@quartata R is incredibly slow.
Well, maybe not that slow
It's highly capable for stats
And some things it does efficiently
But overall it's not a high-performance language or anything
 
OK fair enough. That's what I figured.
 
11:43 PM
I think the focus for the language has been more on "make it be really easy and powerful to use" rather than "make it blazing fast."
 
The only mathy language I've ever learned was Octave because I had to
 
Though I've toyed with the idea of making a JIT compiler for R
Octave seems neat
 
Do you have any suggestions for my predicament
 
I had to use Matlab for a job a long time ago and it seemed like a neat language.
@quartata You haven't said what your predicament is?
@QPaysTaxes It would require a whole lot of knowledge that I don't have
 
Scroll up from the first ping
 
11:46 PM
@quartata C++. There are an incredible number of math libraries. One in particular that I like is Armadillo for linear algebra and other vector/matrix operations.
Armadillo is stupid fast from what I've seen
 
I fgured as much. I was hoping not to have to use libraries but eh
 
Even in R a lot of useful built-ins come from libraries rather than the base or stats packages (which are attached to the namespace by default)
There's even a C++ library that lets you do CAS stuff
That is pretty cool if you ask me
 
On the bright side it looks like NTL should be able to do everything I want so I won't need more than one library
 
@flawr Thanks a lot for the help :D
 
@quartata What is this NTL?
@AlexA. The only vote on this is mine ;-;
 
11:58 PM
Will test that function soon
 

« first day (1909 days earlier)      last day (2936 days later) »