« first day (1718 days earlier)      last day (3215 days later) » 

6:00 PM
@BenjaminGruenbaum The background thread will step a simulation every 1-2s. The sim data is 100-200MB worth of byte arrays.
 
@ssube A memory mapped file might work fine.
 
!!youtube beartooth one more
 
I've listened to this song like 50 times today
I just love the chorus
 
@BenjaminGruenbaum If I can't find a way to make threads work, that's probably the next best thing.
 
6:11 PM
I am starting work on upgrading the #stackoverflow #stackexchange edge routers. Once again no disruption expected
 
Hello guys
 
@Manzik Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Hello working suckers. How's the code life?
 
rude
 
:|
 
6:17 PM
...
 
@Manzik not you
 
@rlemon You don't work anymore?
 
I know
 
Vacation, on my second week.
 
Enjoy it while it lasts <3
 
6:18 PM
What do you think about this: manzik.co/lab/connections/
 
Nice url
 
does it use html in chatrooms?
 
No
Add a protocol
 
I have an advanced regex question
Is there any regex engine which supports matching Unicode code points outside the BMP with the \x syntax, or similar?
 
oh yeah, sorry about not giving you a solid answer about moving the fish tank - I wasnt functioning well when I got to grebel friday afternoon
 
6:19 PM
My free lawn mower died. I had to buy a new one today. Lawnmowers are pricey.
 
buy a goat
 
@BenCraig no worries, I managed
 
all moved in now?
 
Yup. It's "in" but still a huge cluster fuck.
 
WTF GOOGLE
 
6:21 PM
catgoatcat
 
my google thinks i am logged in from my nexus 5 while i am logged in from internet explorer mobile !
 
Does anyone know about Web Audio API? I have a question
 
@Abhishrek There's IE on mobile too? Great..
 
My Google thinks I'm in the UK. :P
@Manzik just ask it.
 
google doesn't think guys, it's a website
wtf...
 
6:22 PM
@afonsomatos depending on your definition of thought, Google does think.
 
@KendallFrey Well, JS appears to
 
How can I get average frequency data from an audio(without playing it)?
 
@KendallFrey that's so sad you replied to yourself
 
@afonsomatos not as sad as the way you touch yourself at night
 
6:24 PM
@uselesschien ie is a great browser stop the bashing
 
ah, crap, I was wrong, JS does not support it
 
@KendallFrey I don't need to touch myself, I have your mom.
4
 
IE 6-9 are dreadful (69 tehe)
 
@rlemon It gives current frequency when it is playing
 
Oh, god, stop.
 
6:24 PM
HAMMERTIME!
 
Poke around. Maybe there is an option or something similar linked.
 
what is hammertime?
 
I'm on mobile or I'd help more
 
HAMMERTIME
 
@afonsomatos this:
 
6:25 PM
oh it's that song?
 
!!youtube can't touch this
 
can't touch this tanananananananan
 
stop.
 
HAMMERTIME!
 
6:26 PM
Halt
 
HAMMERZEIT!
 
@CapricaSix okay..?
 
stop
 
HAMMERTIME!
 
@Manzik you want an offline analyser (but the spec has changed a bit, so I'm not 100% what it would be called or if the functionality is still present)
 
6:26 PM
Or do it with node
 
histopathology
 
@Zirak can we throttle "stop" listener ??
Maybe it can only be invoked once every 5 minutes?
 
I don't see what is the purpose
 
fun
 
^
 
6:28 PM
^
 
@rlemon I've proposed making a 1-5% chance to reply on a stop message, and I still think that's the best approach
that way it won't be annoying, but it'll be funny when it does happen
 
My favorite plugin Is the one that has a .5% chance to ping jandy " the game " every time he speaks.
 
that exists?
 
Yup, and it is glorious
!!afk
 
@BenjaminGruenbaum webworker threads totally work with the node on my centos vm (0.10.36)
 
6:35 PM
cool :)
 
and with 0.12.5, which ought to be the latest stable
since my threads are pretty long-lived, that will handle that part. Just need to figure out the data transfer. Structured clone is relatively efficient, with typed arrays might be perfect.
 
Structured clone is a clone, it's anything but efficient.
In WebWorkers terms you're looking for SharedArrayBuffer
 
I'm going to make a copy every step anyway, so why not just transfer an object into the worker?
ArrayBuffer is a parent of the typed arrays, isn't it?
 
6:53 PM
Node should have transferable-object support as part of unprefixed postMessage by now, right?
(Sorry if you already knew all that; I wasn't sure from what you were saying about structured clone)
 
@apsillers been looking at that question, almost have a test script put together
 
I'm working out the final design touches on my side project app. On each "landmark" screen I want the user to be able to swipe left or right for the next "landmark". How would I make it clear to the user that they can do that.
 
I'm know I could put arrows for left and right...
 
7:09 PM
bonkers !
@BenjaminGruenbaum can you proof read something for me ?
/cc @AwalGarg @SomeGuy
 
@BenjaminGruenbaum I can't share it here :P
 
Sure
 
perfect.
 
Mail it, might take a day or two
 
7:11 PM
As long as it won't take too long :P
 
@BenjaminGruenbaum @SomeGuy I will mail you both in about 30 minutes :-) its okay if you take a day or two :-)
 
What's the meaning of saying that you like to sleep, since you are not conscious asleep.
 
That you like the effects sleep has on your conscious hours, maybe?
 
Alternatively, you don't like being conscious
 
$("input#name").html() is returning "" and I don't know why!
 
7:21 PM
because
 
but really tho
 
input elements can't have child elements
 
What I am trying to do is add an "error" label to the input element and wrap input in it, all through JS.
 
you're probably looking for api.jquery.com/val?
 
.val() just returns the text inside
 
7:25 PM
This is painful to witness
 
I just need to make <input id="name" type="text"/> into <label for="name">Error <input id="name" type="text"/></label>`
@NickDugger Good.
 
@DemCodeLines :-(
 
whatever, .before("<label....") does the job, so ok
 
Oh, you're still here.
I thought you'd give up by now.
 
lol, idk since when i havent seen .before :/
 
7:37 PM
Can somebody run this script and let me know how it performs?
I'm seeing really weird performance (extremely slow transfer)
It's also using 7GB+ of memory, which makes me think some bad copies are happening.
 
@ssube hmm
postMessage roundtrip rate: 32000 MB/s
Does the lib support Transferrables ?
 
Well now, that would be the question, wouldn't it?
 
Have you tested what happens if you try to access an array after you've sent it via postMessage?
if you can still read the data in the environment the data was just sent from, it was copied, not transfered
 
@apsillers It's setting byteLength to 0, which is supposed to indicate transferral.
Plus passing them over, writing, passing back, and reading works just fine (i.e., results are produced). It's just really slow.
Updated the scripts slightly to potentially be more correct.
 
7:45 PM
@BenjaminGruenbaum Yup.
 
thats what it does for posting objects from one thread to other
 
@Abhishrek why, something wrong with it?
 
@ssube github.com/audreyt/node-webworker-threads/blob/master/src/… -- postMessage doesn't even expect a second parameter, which doesn't inspire confidence
 
And that doesnt looks like structured cloning for some reason :-/
 
@apsillers No, it doesn't. It certainly looks like it's just copying the arrays.
 
7:50 PM
its serializing the data to bson array and then deserialzing it
 
If I have to write C to make this work, I'm gonna be pissed.
 
@ssube iirc node had something better for inter threads communication
 
@Abhishrek does it really? what would that be?
 
it was about 3 years ago :P
node has an thread pool, i used to use the thread pool itself without having to fork new threads ^_^
 
Isn't that convenient?
 
7:51 PM
lemme find out a better way, it must be somewhere in v8 docs
@ssube its not convienient though you will probably have to find a function out of a probably the most complex code block
btw try running the script you made for node in browser ? is it really super dooper slow ?
 
@Abhishrek in English?
 
@ssube You could use Rust
 
@copy what will that do for me?
 
7:58 PM
It's not C
 
I want SQRL to be a thing :(
 
Does it replace just the C or both the C and JS?
 
The C
 
@ssube it turns out my hatch was right Structured Clone is implemented in Chromium
well blink
not v8 itself
 
@copy But I know (and am comfortable with) C. I just don't want to write any native code.
I'm trying to avoid native entirely without resorting to Java.
 
8:00 PM
github.com/tcr/structured-clone @ssube you can use that
and patch the node-webworker-threads
to use that instead of how it passes data
 
@Abhishrek I don't want to clone anything.
Not cloning is the entire point of this exercise.
 
oh okay, then its gonna be slow :D
 
No, it's slow because it is cloning things.
 
@ssube v8 objects cannot break context
one valid in one v8 is gonna be valid in that context only
 
@Abhishrek You need to read up on Transferrable and how Web Workers handle them.
 
8:04 PM
> Is a sequence of Transferable objects that are transferred with the message. The ownership of these objects is given to the destination side and they are no longer usable on the sending side. ?
 
super off topic, but i saw this in here once, buut does anyone remember the site where you could collab on programming projects?
some were games, apps, websites, etc.
 
any Kendo UI users by chance? Wanting to know if the javascript is free
 
Has anyone done this? jhusain.github.io/learnrx
 
it was like, super bare website, white and orange??
 
8:07 PM
relatively easy until #12 then WALL
 
@JoJo not for anything useful
 
I learned a thing or two
 
@ssube ty
 
it might be partially free for OS, but not libre or anything
 
I am guessing it is not free (part of a larger Paid Kendo toolset) since I cannot find the jscript anywhere
 
8:11 PM
Linux guys, how come when I hit localhost:3000 I get a response (from some node app I have on my system but did not start), and netstat -tulpn doesn't show anything bound to 3000?
 
@Abhishrek Why do I care about that?
 
Is 3000 bound in any way to the default port?
 
v8MessagePort::toNative
 
@SterlingArcher Not that I know of.
 
8:12 PM
It could be cached somehow. If you restart the service does it still happen?
 
@SterlingArcher The service was never started
 
might help if u want to make it work in node :-)
 
There are no active node instances on the machine.
 
hello what is the best to way to read a String and pick words .like syntex. regex or what ??
 
So it should return an error page?
 
8:13 PM
@SterlingArcher It should return connection refused
And it does for other ports.
 
right yeah
that's weird as hell
 
did you remap localhost to another machine? :P
 
@apsillers I did not.
(I just checked to be sure :D)
 
Are you running other services? like apache and nginx?
 
@SomeKittens i'm on #8 now
 
8:21 PM
@AaronHarding nice
 
as per that it seems that despite whatever there will be structured cloning of data, while passing the original copy will be nuetered but the receiver context will only get a clone ?
 
@Abhishrek You're wrong.
 
@SomeKittens now 9 :p
 
@ssube cite the source ?
 
8:22 PM
@Abhishrek "must create a new ArrayBuffer object pointing at the same underlying data as old"
The data is not run through a structured clone, a new wrapper is created to the same data.
 
> To transfer a Transferable object to a new owner, the user agent must run the steps defined for the type of object in question. The steps will return a new object of the same type, and will permanently neuter the original object. (This is an irreversible and non-idempotent operation; once an object has been transferred, it cannot be transferred, or indeed used, again.)
 
That's the entire point of Transferable.
 
source ?
 
2 mins ago, by ssube
@Abhishrek "must create a new ArrayBuffer object pointing at the same underlying data as old"
 
8:25 PM
what, firefox is taking 250mb of ram
is this normal
 
@MadaraUchiha We just get the "Oddly-worded error + bash prompt on startup"
 
@ssube facepalm
 
looks good
 
I'm hoping they can fix it, but that library seems to have a lot of problem (missing setInterval/setTimeout too)
so threads might not work :\
 
8:29 PM
:/
it will at least be a signpost to other people looking to use transferables
 
do you have to pay to publish chrome apps?
is there an age restraint or something???
 
// will give you a pointer to original data structure
v8::ArrayBuffer::Contents con = originalBuffer->Externalize();
// then pass that over to other v8 context, you can use the contents
// or just use the data pointer itself
void * data = con->Data();
size_t dataLen = con->DataLen();
originalBuffer->Neuter(); // will kill this
and then you can create the array buffer in the other context via simply creating the context the lib you are using forgets handle arraybuffers seperately
 
jquery: what's the plain datatype for posting data?
 
@SterlingArcher so you need to do nothing special with a "text" datatype for server handling?
or just remove it?
 
user1596138
8:37 PM
@php_purest just google it
 
I'm not sure I follow what you're asking here
 
user1596138
Whatever it is you're trying to ask lol ^
 
i'm trying to submit a form to a server, but i want the data sent in the most rudimentary language possible
 
user1596138
Do it
 
then close the encapsulated dialog box
 
user1596138
8:39 PM
Sounds like a hell of a plan
 
has anyone ever written one they can send to me?
 
user1596138
Content-Type: plain/text (totes not text/plain)
 
forms usually have to be form encoded
 
what do you mean rudimentary language? Most basic datatype?
 
otherwise the server doesn't know to read it
 
8:40 PM
@php_purest Sure, what content type do you want me to send that in?
 
application/x-www-form-urlencoded or multipart/form-data
 
default form type
 
@ssube so the structured data spec is still valid for structured data and array buffers get copied by reference right ?
 
@Abhishrek NO
transfer != copy
 
@php_purest Why not create your own? php_purest/x-most-rudimentary
 
8:41 PM
> When a user agent is required to obtain a structured clone of a value, optionally with a transfer map, it must run the following algorithm, which either returns a separate value, or throws an exception. If a transfer map is provided, it consists of an association list of Transferable objects to placeholder objects.
transfer map ?
 
@afonsomatos you have to pay a nominal one-time fee ($5?) to weed out spammers, I think
 
I don't have that kind of budget
 
@Abhishrek You can stop trolling now, we've moved on.
 
i kow, but i'm trying to write one with serialization of the data so it can dynamically grab the whole form
 
@ssube i am not trolling :-/
 
8:42 PM
If you're not trolling and actually still don't understand, I'm very sorry for you.
 
@afonsomatos make a Kickstarter campaign :P
 
I seriously don't get it.
 
@apsillers lol
 
@apsillers fuck yeah
 
Sucks to be you, then.
 
8:43 PM
@ssube i do understand transfer != copy
 
Transferal is a pretty simple concept.
 
@Abhishrek @copy is a room member
 
user1596138
A tiny one
 
Trouble with the audio play in IE 11
 
@SomeKittens do you know of a great example?
 
8:45 PM
Its working all over the world computer, but not with my client IE. actually my client is using IE in school.
 
user1596138
3 mins ago, by php_purest
i kow, but i'm trying to write one with serialization of the data so it can dynamically grab the whole form
 
$("#schoolplayer").attr("src", src);
 $("#schoolplayr").trigger('play');
 
user1596138
I really, really don't understand what you're saying. You said content-types... Now serialization
 
@pirabdulwakeel why ie, and not opera
 
schoolplayr != schoolplayer
 
8:46 PM
@php_purest Yup, find it here
 
Our users is mostly schools student, so they are using IE 11 in school
 
@SomeKittens ha ha very funny
 
yes, that's what I changed here when typing.
 
user1596138
^ Did you really type that out with mixed quotes?
 
I guess there is issue with the security or other IE setting, but don't know what is that setting...
I had tested it, in multiple computers and os, starting from window 7, window 8 etc. and its work. but when students open IE in school, its not work.
Does any one had ever experience this problem with IE?
 
8:49 PM
IE doesn't have any problems
 
So what should be the problem, why its not working with school computer.
 
hm
do you have access to one of these school machines?
you would probably be able to figure it out in no time at all if you did
 
Not yet, although they share the pc, and os screen shot.
They are using, dell, with window 7
and IE 11
 
have you checked sound drivers, sound volume, selective app muting in volume mixer?
oh and is the output device correct?
 
yes, all is working fine. its working fine with the chrome.
 
user1596138
8:54 PM
 
user1596138
s/and/or/
 
user1596138
This hurts me inside
 
user1596138
Also the arrow points at nothing..
 
do you realize your schoolplayer selector is misspelled
 
Hello!! Is someone of you familiar with context free languages?
 
8:55 PM
yes, the id is different, i just wrote it here for demo.
 
ok
 
Is javascript behaviour of returning the first truthy operand with the operator || equal in other languages?
 
and what exactly is it you're playing?
 
let obj = {} || obj;
 
have you verified IE supports the file format
 
8:56 PM
@afonsomatos yes, except PHP and statically typed languages
 
@nick , only letter sounds.
A, b, c , d , e , f, when student press
 
good to know
 
Yes, @Nick. you know its working with all other IE 11, but not with the student machine.
 
well i'm out of ideas :)
 
!!s/file format/internet/
 
8:58 PM
@SomeKittens have you verified IE supports the internet (source)
 
In soviet Russia, the internet supports IE
 
Is the language $L={w∈∑* | |w|_a=|w|_b, |w|_c = 2*|w|_a}$ contexfree?
To see this we have to check if there is a CFG that generates this language, right?
If we would have the language $L'={w∈∑* | |w|_a=|w|_b}$ the language would be contextfree, and a CFG that generates the language would be:
S -> aSb | bSa | ab | ba
right?
 
TIL : postMessage(objectTobeCloned, origin, objectToOnlyBeTransferred); // what i thought till date was postMessage(stringOnly, origin, objectToBeTransferredCloned);
 
@Nick, even I am out of idea.
 

« first day (1718 days earlier)      last day (3215 days later) »