« first day (1957 days earlier)      last day (2885 days later) » 

4:00 PM
AAahrg, I know I'm gonna stumble over this =< a thousand more times.
Heureka!
 
rule: the = touches the pointy part :p
 
> touches the pointy part
=)
quicksort([],[]).
quicksort([P|L],S) :-  partition(P,L,A,B), quicksort(A,X), quicksort(B,Y), append(X,[P|Y],S).
^ this works!
 
> touches the pointy part
( ͡° ͜ʖ ͡°)
 
@TimmyD On a scale from 1 to 10, how old are you???
 
@flawr And it's readable yet short drool
 
4:05 PM
@Fatalize I tried something else, that always produces out of stack errors, do you see why?
quicksort([],[]).
quicksort(L,S) :- [P|_] = L, partition(P,L,A,B), quicksort(A,X), quicksort(B,Y), append(X,Y,S).
OOoooh I just found out.
 
lol
aint event got time to read the code he found out
 
@flawr Like, is this a logarithmic scale?
 
@TimmyD Nope, exponential
 
Uh ... what?
 
@Fatalize For me that's always a sign of progress=)
@TimmyD joking (unfunnily)
 
4:09 PM
How would you guys define JavaScript?
I can't say it's an OOP language.
It's not really a functional language either
It's also not purely a prototype-based language, as you can create new objects
 
@flawr If it's powers-of-two based, I'm slightly over 5
 
crap (noun)
2
sometimes vulgar : nonsense, rubbish;
 
@Bálint imperative
 
@Fatalize I was just trying to think of something like that=)
 
@Fatalize ಠ್ಗಠ
 
4:15 PM
@Bálint a language fits into lots of paradigms, and most languages rarely perfectly match a given paradigm. That said, a given paradigm more often depends on the programmer than the language
 
@NathanMerrill Yes, but wich categories does it "contain"
I know it can be functional, because....functions...
 
nearly all of them listed here:
In computer programming, the notion of programming paradigms can have somewhat different meanings depending on its context of use. Involving programming languages and programming: it is a way to classify programming languages according to the style of computer programming and idioms used. Involving software development: it is a fundamental style of programming, which is not generally dictated by the project management methodology (such as waterfall or agile). Paradigms differ in the concepts and abstractions used to represent the elements of a program (such as objects, functions, variables,...
 
@flawr your predicate crashes for a list of 10,000 zeroes
length(L,10000), maplist(=(0),L), quicksort(L,Z).
ERROR: Out of local stack
not sure there's an easy fix for it though
 
@Upgoat I like the new header for your blog, but it bothers me, that it's very assymetrical
 
@Fatalize If you really want to sort 10000 zeros, you should probably use another language=)
(or realize that they are already sorted xD)
 
4:19 PM
or use a sorting alg that doesn't recurse that much
 
> or use a snorting algorithm that doesn't curse that much
 
So ... not Scarface
 
lol
I just used the msort builtin of Prolog to compare
it did it for 10000 immediatly
1 second for 1000000
not sure which algorithm it uses though
 
Well implementing quicksort that way in prolog is probably close to the most innefficient sorting techniques ever.
 
"The implementation is in C, using natural merge sort" well that explains it
 
4:24 PM
I bet they didn't use natural merge sort.
They sure used artificial merge sort.
 
^ weak af joke
throws tomato
 
weak af?
 
GMO merge sort
 
@Lembik af = as bip
 
I recently thought about making a neuronal-net sort.
 
4:28 PM
@Fatalize ah thanks
 
actually, a neural net for a sort isn't too bad of an idea
I mean, lets say you are able to identify where you are being called from
 
@NathanMerrill ? :)
 
(your stack trace)
 
hang on.. first you need as many outputs as inputs
 
@NathanMerrill No I'm Fatalize
damn you fixed it
mah joke
 
4:31 PM
second a 5% error isn't going to work so well :)
 
@Lembik make it recursive then
 
@flawr I think neural network factorizing would be more fun :)
 
nah, you wouldn't use your neural net to match each element
 
or primality testing
that I would like to see
 
@Lembik that would be interesting
 
4:32 PM
I already know how to sort numbers :)
@flawr we need someone with a fast cpu or a gpu
 
I think the problem with all those is that neuronal nets usually only accept input of a certain size
 
@flawr that's ok.. we can say it will always have 100 bits
or 10 :)
it's still very hard
 
oooh, here we go. Your input is the current position (decimal 0 to 1)
 
@Lembik That is cheating then
 
and the output is the predicted location
 
4:33 PM
@flawr why?
standard crypto systems using a fixed number of bits
I still bet we can't do it :)
 
you sort it according to the neural net
then do a secondary sort that sorts faster if the array is mostly sorted
 
@EᴀsᴛᴇʀʟʏIʀᴋ hahaha
 
@Lembik Then it is trivial
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ikr
 
@flawr what do you mean?
@flawr it's impossibly hard
so we are at different ends :)
 
4:35 PM
@avocadjuic 10/10 can i haz some juic
 
wel you only have a finite number of different inputs, so you're guaranteed to find a NN that produces the correct output.
 
@flawr not if you are referring to a NN you can actually implement
If I have 2^100 different inputs you can't train a NN that recognises those in practice
 
@Lembik make an input layer with one node per bit
 
if you have an array the size of 2^100, you have much bigger problems
 
@NathanMerrill no.. 100 bits gives 2^100 possible inputs
 
4:37 PM
ah ok
 
There's no point testing a NN on data you trained it with anyway, it will just learn the numbers directly instead of patterns
 
@Fatalize my point is that you can't possibly train it with 2^100 differnet inputs
 
@Fatalize yeah that is what I thought too
 
the guess here is that arrays to be sorted are often in similar patterns.
 
we need a NN to play with
anyone got any code?
 
4:38 PM
when called from the same location
 
So back to the sorting=)
 
@DrGreenEggsandIronMan your name runs of the edge of your flair. :P
 
@flawr my idea is much more interesting :)
 
therefore, you have a 1-input NN
where the input is the position in the array
 
@Lembik My point is there's no point to even train it with 10000 prime numbers, there are no patterns so if you want good recognition on the training set it will learn the numbers directly
 
4:39 PM
and the output is the is the estimated final position
 
and won't generalize at all
 
@Fatalize oh well that's a claim but do you know it is true? I mean do you know that there is no pattern?
@Fatalize I mean the pattern is that the numbers have no prime factors :)
 
@Lembik go train your nn and come back when you've found the pattern^^
 
@Lembik if you find a pattern that predicts primes numbers with 100% accuracy why are you wasting time here :p
 
@flawr that was my point!
I would like to know if a NN can give a better than random output
 
4:40 PM
the claim is that a sort call (in a real world situation) often passes arrays in a similar order
 
or more specifically, what size NN do you need for that
 
If you don't overtrain it it will probably find patterns like "not pair",etc.
 
@Fatalize I was just aiming for better than random not 100% :)
 
if you only have a finite number of inputs, just make it big enough
 
I'll give it a try...
 
4:41 PM
I would like to
I have no gpu and no code :)
 
@Lembik thats already gonna happend if it just tells even from odd numbers
 
I can fix one of those
@flawr I would already be impressed if it managed that to be honest
 
@Lembik there's no way it can't do that
 
A nn that just tells even numbers apart from odd ones?
 
@Fatalize ok.. so how far do you think it could get? multiples of 3?
do you see what I mean? It could be interesting
 
4:42 PM
probably heavily depends on the encoding you use
 
but I need some easy to play with NN code and a gpu
@flawr yes I am sure that is right.. which why I thought it could be fun
 
but I'm more interested in an NN that could actually take inputs of arbitrary sizes
 
@flawr hmm... up to some limit I suppose?
 
without limit, as long as you have enough time
 
there are recurrent neural networks but I don't really understand them
I feel we should use sat solvers more at ppcg... just saying :)
 
4:49 PM
How to generate a fractal in vim: qq<C-w>v<C-w>n@qq@q
 
@Lembik what are sat solvers?
 
@flawr do you know the problem SAT? That is the task of finding a satisfying assignment in propositional logic.
 
No, I do not really know logic
let me ask wikipedia
 
@flawr ok well it is the classic NP-complete problem
do you know what np-complete means?
 
@Bálint Multi-paradigm but it implements them all badly
 
4:56 PM
@Lembik nope
 
@flawr It means all problems in NP can be reduced to an instance of it in polynomial time
ninja'd ish
 
@quartata I assume that anyone who doesn't know what np-complete means doesn't know what NP is
but I could be wrong
 
That's fair :P
 
@DrGreenEggsandIronMan What Ctrl+W means in Vim? >_>
 
4:58 PM
I just know that it is about the theoretical complexity of some algorithmical problems, but nothing more=)
 
@zʏᴀʙiɴ101 delete last word
 
@quartata No, it's just W. But with Ctrl it does things with windows, I got it already. :P
@DrGreenEggsandIronMan v
                    |    |    |    |    |    |    |    |    |    |    |    |
[No Name] 0,0-1  All < 0,|~   |~   |~   |~   |~   |~   |~   |~   |~   |~   |~
                         |~   |~   |~   |~   |~   |~   |~   |~   |~   |~   |~
[No Name]    0,0-1    All < 0,|~   |~   |~   |~   |~   |~   |~   |~   |~   |~
                              |~   |~   |~   |~   |~   |~   |~   |~   |~   |~
[No Name]      0,0-1       All < 0,|~   |~   |~   |~   |~   |~   |~   |~   |~
                                   |~   |~   |~   |~   |~   |~   |~   |~   |~
 
@zʏᴀʙiɴ101 No? It's Ctrl and W
 
What do you say, Not enough room? >_>
@quartata W without the shift modifier.
 
Oh, yeah.
 
5:08 PM
@Upgoat found you
2
Remember, we are staying up this time? :P
 
@zʏᴀʙiɴ101 isn't that awesome?
 
It is.
:D
 
Now you can do qq:q<cr>@qq@q to close them all.
 
@DrGreenEggsandIronMan That will also exit the program.
 
ughh
the notifications icon keeps on showing up as green without a rep number
no highlight when i open
 
5:17 PM
lol
Anybody here played Cube? The game.
 
I've played qube
 
@EᴀsᴛᴇʀʟʏIʀᴋ Cube.io? o_o
 
Stop with the .io games >_>
 
5:18 PM
They're a bit too... viral.
 
It's Cube. The game. >_>
 
cube-the-game.com
 
@zʏᴀʙiɴ101 ITS NOT A IO GAME
 
@EᴀsᴛᴇʀʟʏIʀᴋ I KNOW RIGHT
 
5:19 PM
WHERE CAN I FIND THIS NON-.IO GAME
 
Update on that NN prime thing
 
0
Q: Calculate the 3BV of a Minesweeper Board

mbomb007The 3BV of a Minesweeper board represents the minimum number of left clicks required to solve the board if you already know the solution. Below is a solved Minesweeper board. The image on the right shows which tiles need to be clicked in order to solve the board. You would count one click for ea...

 
just fucking google "cube fps game" and click the wikipedia article
 
Does anyone know how to enable an x86's MMU in assembly?
 
Generated all primes less than 100,000, used randomly half for training and half for testing
 
5:22 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I know it
 
Generated all composite less than 10,000, used randomly half for training and half for testing
trained an MLP with 1 hidden layer of 100 neurons, normalized input numbers between 0 and 1
Final accuracy: 93.2% correct classification (prime/not prime)
However I think it's highly biased cause composite are all less than 10000
so big numbers are automatically prime
I need to change my composite dataset
 
yes
that sounds right
 
Nevermind, I can't Google today apparently
 
I'm redoing it with composites less than 100000 and will limit the size of those sets to about the same as the primes
 
Better question is how I pin a page
 
5:27 PM
?
Pin the tab in a browser? roll over and hit p normally
 
Not that kind of page
A memory page
 
oh
try staples
 
@MartinEnder so..... what was that pic?
 
@Optimizer I was literally just about to type that. Get outta my head.
 
5:40 PM
@quartata was that something aginst javascript again?
 
@Bálint Moi doesn't go to transcript.
 
@zʏᴀʙiɴ101 I didn't know how old that message was, as the chat immedialitely threw me in the transcript vie
 
@Bálint It just feels like it does them all weird. On the OO front, objects are hashes (which is weird for a language whose APIs are heavily based on objects -- I'd expect it from a language where objects were an afterthought) but with prototype inheritance (which is also weird). Functional programming wise it's all right but it's not nearly as powerful as a true functional programming language like Haskell. And imperative programming wise it has a lot of weird quirks (no good for-each, etc)
 
@quartata It's, as far as I know, started as a prototypal language based on Self
 
5:45 PM
@Bálint The paradigm would be OO then but as I said it's weird about it
Its implementation of prototype inheritance is not very good imo also
 
@quartata It does the job
And you don't have too many good alternatives
e.g. Flash is not good
 
And that's exactly my point: the only reason people like JS is really because there isn't anything better yet. That's an awful reason
 
@quartata In my opinion, it's fun to use
BUT
only on small scales, where I usually do some things (like small "demos")
On big projects, I use Java
I'm not quite sure, how it got a library for OpenGL
There's no sane person, who's going to create big games with it
Like really big ones, where you need to use a graphical library
 
I'd rather use WebGL than <canvas> really, if only because I'm more familiar with OpenGL
 
@quartata That's essentially the same
 
5:50 PM
you cannot really use webgl without <canvas>
ninja'd
 
People often use the drawImage function of the canvas object to create GUIs, instead of the traditional way of creating rectangles
 
does anybody here know gulp?
 
yes
 
I'm trying to do a require that also moves the relative path
aka, script A calls script B (which is in a subdirectory)
 
how is that gulp?
 
5:53 PM
but if script B uses relative paths, it is relative to A
er, is that just node?
 
@Bálint c'est lazy :P
 
@NathanMerrill no
its just require
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Without laziness, we still would use Assembly, but there's a limit to how lazy a programmer should be
 
@Bálint I was joking, but on a more serious note, there is a difference between "laziness" and "efficiency"
 
hey @CᴏɴᴏʀO'Bʀɪᴇɴ
 
instead of requiring by path, require by exported module name
 
@CᴏɴᴏʀO'Bʀɪᴇɴ What does c'est mean BTW?
 
He's/It's iirc
 
@Bálint This is?
Or I am?
As in, c'est vrai?
 
It is acc. google translate
 
5:58 PM
@Bálint it/that is
 
@Bálint It's, This is, That is
@zʏᴀʙiɴ101 This is true
 
Ok, everyone speaks French except me
 
^ I don't
 
5:58 PM
@Fatalize Uhh
How does that work exactly
 
Not everyone.
 
everyone knows my not-so-secret secret :(
 
Almost everyone*
 
Only Conor, Katenkyo, Fatalize (maybe?) and quartata (maybe?).
 
@zʏᴀʙiɴ101 yes
 
5:59 PM
@Katenkyo is also french
 
I don't know any French except for the words that are almost exactly the same as in English. :P
 
iirc
 
Because I was too hip to learn Spanish in school
 
Hey!
 
@El'endiaStarman So you know a lot then :p
 

« first day (1957 days earlier)      last day (2885 days later) »