« first day (1891 days earlier)      last day (3282 days later) » 

00:00
just for parsing purposes
its easier to parse and then transform, then to try to force the ast structure (or so im told by the author of the library)
Ven
Ven
@Elyse are you implementing APL?
user1804599
No.
user1804599
:P
user1804599
Watching this:
Ven
Ven
00:01
ah, oke: )
was thinking it's been a long time since you last started a compiler project
user1804599
:v
user1804599
I might want to implement a typed variant.
@Elyse precedence doesn't follow from grammar
user1804599
It does.
user1804599
<add> ::= <add> '+' <mul> | <mul>
<mul> ::= <mul> '*' <prim> | <prim>
<prim> ::= <identifier>
user1804599
00:13
My favourite way of handling precedence.
Ven
Ven
@sehe APL is right-assoc, everywhere
assoc != precedence
AFAICT
user1804599
@Ven is APL's grammar context-sensitive? If not, how does it distinguish between user-defined variables, monadic, and dyadic functions?
Ven
Ven
it detects alpha and omega the first time it sees the name
user1804599
a <- 1
b <- 2
c <- 3
a b c
user1804599
00:20
How is this parsed?
Ven
Ven
knowing a, b, and c are values
user1804599
So it's context-sensitive.
Ven
Ven
yep
user1804599
:'(
user1804599
APL sucks.
user1804599
00:30
@Ven they should've used sigils instead.
user1804599
to distinguish between monadic, dyadic, and non-functions.
user1804599
Hmm.
user1804599
It seems Dyalog doesn't distinguish between monadic and dyadic functions.
user1804599
      f ← {⍵+⍵}
      1 f 1
2
      f 1
2
      f 1 f 1
4
user1804599
@Ven also interesting: treat non-functions as functions that when applied create vectors?
user1804599
00:37
x ← 2
1 x 3 ⍝ x applied to 1 and 3 creates a vector
@jaggedSpire those things use prisms to redirect the reflection to the less-reflective part. If yours doesn't work like it should, I guess an aftermarket replacement shouldn't be expensive.
There really are no TUI libraries that still compile with stable
got stuck, wrote code, things got ugly
@JohanLarsson The solution is to get wicked drunk
00:45
And not be a wanker like me, trying to write code at 1:45 am
Get some sleep, mate
(and alcohol, a little bit at least)
ok, a glass of wine
user1804599
@Ven I'm going with sigils so it's context-free and allows HOFs. gist.github.com/rightfold/8a68bac307d14543bad8
01:00
@набиячлэвэлиь Lol sleep.
Silly you.
user1804599
very nice :D
Rum and Disney movies
@CatPlusPlus What if feelings had feelings.
They'd drink a lot
recursive alcoholism
01:46
Hey noobel
@WGhost Hi cuttypie
Sup bb
playing minecraft and watching x-files
@jaggedSpire the animals have gained sentience /cc @TonyTheLion
@Borgleader Gott in Himmel
Will even our fortifications fall?!
02:08
Hi
@Borgleader reminds me of a friend I had in high school who everyone called Thor because he had hair like that
Ell
Ell
Ho guosw
I'm a leetle intoxicated
@Ell das ist gut
Ell
Ell
Ist raining
Raining a lo g
02:19
You are always intoxicated when we see each other :c
Ell
Ell
@AngryShoe no nees to be angry
Take a min to think
>:c
This would be angry ^
:c
This is sad ^
Ell
Ell
Be kangry if anything
Or cangry
Cankles are gross
what have you drank, mate
who's old enough to have played this? youtube.com/watch?v=pApuHDDDjuE
A) its called function paramers B) Indentation, it matters. — Borgleader 13 secs ago
how does someone post a question with this code and think "yeah, thats good enough formatting"
02:45
@bitcode What is this troll?
@AngryShoe yeah
That's not a yes/no question :/
@AngryShoe no
I basically just woke up.I can't read properly and thus can't answer properly
sorreh
@AngryShoe I noticed I made you a fan of the girl
yeah, it will last approximately 27 more minutes
03:17
@AngryShoe do you watch h3h3productions channel?
Dead code and formatting aside this is verbatim the code OP posted. How is this an answer? — Borgleader 33 secs ago
am i missing something here?
that question is ambiguous
yes, but the answer is litterally OPs code making it not an answer.
like wtf
@Borgleader yeah hahaha. vote it down
is programming for cellphones considered programming for embedded software? I'm trying to understand what people mean by "embedded"
@bitcode yes
03:30
@AngryShoe did you check the h3h3productions channel I said earlier?
I've been subscribed for months
@AngryShoe yeah, I thought you'd like
03:48
guys I know that pewdiepie sucks and all but check this game out: youtube.com/watch?v=6HH-eD8bPdI
 
1 hour later…
05:10
@bitcode smartphones aren't embedded. dumbphones sometimes. Embedded usually means very tiny: like "only on chip storage and less than 1M of memory"
06:04
@MooingDuck with enough dedication you can embed a smartphone
06:57
Ripperdoodles.
I can't do Gauss-Jordan elimination implementation correctly.
07:21
Oo matrix
Hey guys, what compiler do you use on Windows?
@MooingDuck Well, I used to do car-navis on Windows CE and it was considered embedded despite it being run on 400 MHz SH4 CPU.
@Ell now I'm drunk.
@orlp man this guy always makes my day happier.
07:53
@RishavKundu what Windows version are you using?
Er, does the answer depend on that? Actually, my friend wants to use some software, for which there are no existing binaries. I am instructing him to download the C++ compiler for himself and run make.
@RishavKundu use clang =D
@bitcode, does clang come on Windows?
Oh, it does I see! I was under the impression clang only ships on OSX.
don't use clang or gcc
@KhaledAKhunaifer why? its portable
07:59
bitcode, is it possible, running OS X to build windows binaries?
it's okay to work with them, if your aim is to make simple programs to run on the command line
@RishavKundu I don't think so, not easily.
@KhaledAKhunaifer clang is awesome dude. and it's portable...
Yes, he is using windows 10.
but then if your program has to work with IO operations, file structure, or user interface. you'll be stuck
@KhaledAKhunaifer not if you use boost
08:01
This is actually a chess engine.
It will be connected to a winboard interface
@bitcode are you trying to send him to hell ?
@KhaledAKhunaifer hahaha. I'm just trying to be portable
so his code runs anywhere
@RishavKundu if he is coding ON windows FOR windows, he should use VS compiler
Eh, I am not coding anything. The software is not mine.
@RishavKundu listen, just use Visual Studio C++, and stick to windows APIs, for your own mental safety
^^
I am compiling pre-existing software
08:05
@RishavKundu what compiler this software was originally written for?
@RishavKundu use clang then
the Makefile uses "g++"
Yeah, I have compiled it successfully using clang myself
he was already banished to hell, good luck getting your program barely functioning on windows
08:07
one advice for you buddy, don't update your windows, until you pass that subject
Pass which subject? What do you mean?
wait a minute, is this an actual product ?
@KhaledAKhunaifer why so much hate against clang? =\
@bitcode I first said "he was banished to hell" as joke, but if he's working like that on a program for a real product, then that statement is not a joke.
08:10
What do you mean by "Real product" ?
It's a command line program
@RishavKundu what is a "winboard interface" then ?
Winboard is a protocol for chess GUI interfaces to talk with command line programs
Also known as GNU Xboard
@RishavKundu what you said is wrong, WinBoard according to GNU website is "WinBoard is a port of XBoard to 32-bit Microsoft Windows systems"
Yes, it is the windows version of Xboard
What is the difference?
@RishavKundu wrong again, it is not a "version" it is a "port"
08:14
GNU itself recognizes it
@RishavKundu ports are not stable. GNU website says that it works on Windows 95-XP, 32-bit versions only. Reference: gnu.org/software/xboard/FAQ.html#tag-B.2
@RishavKundu so your program is not completely-potable on Windows.
Damn windows, making things complicated
@RishavKundu my windows is windows 7 64-bit, so I can't test your program if I wanted
08:22
do you guys drink beer?
Do you have make @KhaledAKhunaifer ?
@bitcode I drink Beer that has no Alchohol
@RishavKundu no one use "make" on windows
i don't drink beer
i'd rather have a glass of juice
@KhaledAKhunaifer why?
@Paul why?
08:24
it tastes bitter
@Paul how old are you?
24
@Paul life is bitter. beer makes it sweet
@bitcode I'm a muslim person, religion thing
@RishavKundu first note, win32 means it only works on 32-bit windows versions
@KhaledAKhunaifer gotcha. I'm an atheist. I don't have religious attachments
08:26
Well, the software itself will compile
because itself it does not concern itself with the GUI
the protocol is text based
and the headache of parsing the textual info, is upto the GUI
@bitcode atheist doesn't mean you don't believe at all, it's a misconcept by religous people subjectifying atheists
@RishavKundu what "protocol" ?
xboard protocol
@KhaledAKhunaifer what time is it where you live?
@bitcode 11:35 AM, GMT+3 Kuwait, Riyadh, Moscow
@KhaledAKhunaifer it's 6:35 here. the sun just appeared
brazil, brasília official time. GMT-3 (summer time +1) lol
08:37
@bitcode so ur in brazil?
@KhaledAKhunaifer yeah. not the greatest country, but not the worst either. =D
@bitcode i know that brazil is known for coffee, football, and sexy females dancing samba
Why do people who write Makefiles assume people will compile on posix shells?
...
stupid people
08:53
@RishavKundu they are not stupid, they are writing something to be used on unix, not windows
@RishavKundu and you are using a port to win32, so your best way to make this work is to install cygwin, which will create a unix kernel for you on windows
@RishavKundu cygwin: cygwin.com
Ell
Ell
Halp
Christmas ideas :V
@Ell wear an ugly sweater with red-white-green tiles .. lol
09:12
@KhaledAKhunaifer yeah, that's what people think of brazil most of the time. do you like the idea of sexy women dancing samba? carnival is in february
@Ell ideas for what?
Ell
Ell
ideas for presents
@Ell to whom? and what is your price limit\range? item preference?
@Ell for family or girlfriend?
Ell
Ell
for family
parents
@Ell socks
Ell
Ell
09:14
socks are good
as long as they don't have holes
I really like receiving socks, undies and towels as presents
cause I always need those
@Ell However, if you're rich, you should buy them tickets to Rio de Janeiro
I bet they'd love the warm weather
Ell
Ell
uh oh
someone could be using my amazon acc
@bitcode well, what I really consider "sexy" exist in my fantasy. man, I wish I can write a sex story, it'd be very successful, but it's not allowed in my place.
How do you suppress the urge to re-write your Python code in C++?
09:26
@KhaledAKhunaifer publish it in another country. write a story for women with sexy elements. you'll be so rich you won't be able to count your money
Ell
Ell
balls
@bitcode I have ideas that work for both genders, including bad ideas that can get banned.
@bitcode also I have to publish under a code name, since publishing under my real name has bad social implications.
Ell
Ell
09:54
I have an idea
a wifi dongle connected via ethernet cable
@Ell wifi hotspot?
Ell
Ell
10:16
nah
@TonyTheLion more like, I am keeping an eye on you
@TonyTheLion Stalkercat is stalker.
10:33
Silly, silly canadians.
who's canadian here?
<___>
Laplace Expansion, pls
P L S
P L E A S E
How do you implement this quickly in the computer damnit
In linear algebra, the Laplace expansion, named after Pierre-Simon Laplace, also called cofactor expansion, is an expression for the determinant |B| of an n × n matrix B that is a weighted sum of the determinants of n sub-matrices of B, each of size (n−1) × (n−1). The Laplace expansion is of theoretical interest as one of several ways to view the determinant, as well as of practical use in determinant computation. The i, j cofactor of B is the scalar Cij defined by where Mij is the i, j minor matrix of B, that is, the determinant of the (n − 1) × (n − 1) matrix that results from deleting the i...
There's no way to view a contiguous section of memory when you're deleting the i'th row and j'th column out of a matrix.
hmmm
you'd prolly need to recreate the matrix without the deleted sections
10:37
I guess I'll just have to figure out an iterator that specifically skips the Minor[i,j] of a matrix B.
it's difficult to do on heap memory
heap is the future
9
Q: How to find determinant of large matrix

vernomcrpI found some C++ code for finding the determinant of matrix, for 4x4 to 8x8. It works ok, but my project needs matrices that are 18x18 or more, and the code is too slow. The code is recursive, but is recursion the right concept to deal with an 18x18 matrix? How else can I find the determinant?

@ThePhD is this useful ^^
@bitcode yes heaps of fun
you can use std::rotate or std::stable_partition to place the column to be removed to the end of the matrix, then resize the array
@TonyTheLion Thanks, but the goal is to compute the determinant using Laplace Expansion, and then compute the determinant using reduced-echelon-form -> triangular determinant rule (just add up the diagonal).
10:40
Is this homework?
Sort of.
It's optional-ish "homework".
also I have never really understood the purpose of the determinant?
You can use it in a bunch of computations to get other stuff, but it lets you know if a matrix is invertible (nonsingular/nondegenerate).
It also is related to the definition of things like the area of a n-dimensional parallelogram represented by a system of equations and {zzzzzzzz, boring stuff}.
10:42
ahhh I see
use std::rotate to place the deleted column at the end of the array without disturbing the order, then you can just do SIZE=SIZE-1
But I shouldn't be worried about Linear Algebra.
Tomorrow, at 1 PM is PHYSIIIIICS EXAM
@ThePhD then why are you here on SO chat?
Because I already did some review, I'm relaxing, and then I'm gonna get back into it.
does anyone know any good programming games?
10:51
@TobiasLangner eh?
user1804599
0x10c oh wait
games where you need to program to win.
user1804599
Google Code Jam
There's an "assembly" game.
On Steam.
@ThePhD tis-100?
Ell
Ell
naming is hard mayn
what do I call a x,y & value?
user1804599
What is a x,y & value?
Ell
Ell
x & y represent integer x and y coords on a grid
value is some value :V
user1804599
"point–value pair"
Ell
Ell
I suppose
user1804599
10:59
not "point-value pair"
user1804599
the en dash is important
Ell
Ell
what is the en dash?
user1804599
A dash is a punctuation mark that is similar to a hyphen or minus sign, but differs from both of these symbols primarily in length and function. The most common versions of the dash are the en dash (–) and the em dash (—), named for the length of a typeface's lower-case n and upper-case M respectively. Usage varies both within English and in other languages, but the usual convention in printed English text is: Either version may be used to denote a break in a sentence or to set off parenthetical statements – ideally with intradocument consistency. Style and usage guides vary, but often in this...
even though Java is a pass-by-reference language, when you are using an Enterprise Java Server that run on multiple physical nodes, it will have different classes on different physical clusters, then a method call will not be pass-by-reference but rather pass-by-value, since parameters & return value has to be marshaled over network
user1804599
Java passes everything by value.
user1804599
11:02
It never passes by reference. Java has no references.
user1804599
It has pointers (hence NullPointerException).
Java always passes by value - that value may just happen to be a reference.
@Elyse it's just a different "term", reference=pointer-to-object, method=function, attribute=data-member
user1804599
"Pass-by-reference" is well-defined and Java doesn't do it.
how is pass by ref done then?
user1804599
11:07
Like ref in C#.
Is sanity abandoned?
Object a = null; // a is a reference (aka pointer to Object)
user1804599
@JohanLarsson I think so. :P
a is a value.
that value is just coincidentally a reference.
user1804599
a is not a reference. Reassigning it doesn't cause spooky action at a distance.
11:10
guys, surely writing code can't make one feel enclosed and restriced in their own mind?
@Elyse I don't abandon enough, takes time to maintain this
user1804599
@edition That's called "concentration" and it's necessary.
abandoned all f# though :)
user1804599
@JohanLarsson :P
user1804599
11:11
I've been working on a closed-source project since a week or so.
I've been working on C++, C#, and Java projects
I've been working on your face
user1804599
@JohanLarsson No.
user1804599
Uptime monitor.
11:15
syntactically, C# is the best, but the way their APIs are structured reminds me of how government jobs are
why is it closed?
user1804599
@StackedCrooked millenium
user1804599
@JohanLarsson I want to sell it.
user1804599
The Danish Government has on 10 December presented a bill before the Danish Parliament
user1804599
11:17
This reads like Dutch translated to English word for word.
user1804599
It's a weird word order.
C++ is keeping on introducing new features, that you no longer understand source codes anymore, even though you know how to program well in C++
@KhaledAKhunaifer Well, if you no longer understand modern source code, you don't know how to program well in C++ :P
@ElimGarak you mean I need a course in C++11, and C++14 soon after
And by the time you're done, C++17. :P Jokes aside, the changes aren't so groundbreaking, you can soak it up in a fairly short amount of time.
11:23
I'll soak you up bby, in a short amount of time <3
<3 It's the holidays, guise! Also, shitty there's no snow. It's just cold for no payoff.
Maybe this helps some.
hmm
Ell
Ell
I need some haskell help
syntactically
user1804599
Then post your problem.
Ell
Ell
11:26
foo x | bar x == 0 = something
      | bar x > 9 = somethingElse
      | bar x /= 8 = somethingElsethanSomethingElse
      | bar x -- etc.
how do I avoid repeating bar x?
where something = bar x
rightfold is typing
Ell
Ell
@Rapptz oh yh lol
btw you can do otherwise
11:28
@JohanLarsson furiously
Ell
Ell
oh yeah I used otherwise in my actual impl
user1804599
func foo(x int) int {
    y := bar(x)
    switch {
    case y == 0: return something
    case y > 9: return somethingElse
    case y != 8: return somethingElsethanSomethingElse
    default: ...
    }
}
user1804599
:D
Ell
Ell
I would like a syntax where y could be ommited completely I think. I know it don't exist
case == 0:
case > 9:
case != 8:
hmm
yeah, that's bad and wrong.
Ell
Ell
11:33
Why is it bad?
it's really the same as those x == 7 || 8 things.
because you're trying to infer something which cannot be inferred.
Ell
Ell
x == 7 || 8 would always give 7, no?
how about it now?
no, the requested feature which I am referring to is people who don't want x == 7 || x == 8
they think it should be simplified to x == 7 || 8
Ell
Ell
Oh
x == (7 || 8) :P
nah I agree
user1804599
COBOL has that.
user1804599
11:36
Perl 6 does it nicely without special cases.
what is (7 || 8) ?
Ell
Ell
if == were defined to be distributive then you could do that
user1804599
7 | 8 is a junction (|, {7, 8}). 7 == 7 | 8 is a junction (|, {true, false}), which yields true when converted to a Boolean.
you're asking me to believe that there an exists an x, for which Perl 6 does x nicely?
I doubt it
user1804599
> sqrt(1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9)
any(1, 1.4142135623731, 1.73205080756888, 2, 2.23606797749979, 2.44948974278318, 2.64575131106459, 2.82842712474619, 3)
> sqrt(1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) == 2
any(False, False, False, True, False, False, False, False, False)
> (sqrt(1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) == 2).Bool
True
user1804599
11:39
:>
can you do this, (array == 2).Bool, to check if 2 exist in the array?
user1804599
No.
user1804599
Junctions and arrays are different things.
user1804599
You can do (any(@array) == 2).Bool.
user1804599
You can also do all(@array) == 2 and none(@array) == 2.
11:49
can you do set operations on arrays then? that'd be very useful
user1804599
Convert them to sets and then you can do set operations.
user1804599
> 2 ∈ [1, 2, 3]
True
Ell
Ell
This is perl?
That is nice
my @unionAB        = sort { $a <=> $b } eigenstates( any(@a, @b) );
my @intersectionAB = sort { $a <=> $b } eigenstates( any(@a) == any(@b
+) );
my @differenceAB   = sort { $a <=> $b } eigenstates( any(@a) != all(@b
+) );
user1804599
Don't use eigenstates.
user1804599
11:54
Don't use junctions as sets.
user1804599
eigenstates is only useful for debugging.
user1804599
Package subtle implements functions that are often useful in cryptographic code but require careful thought to use correctly.
user1804599
I like how this package is named "subtle".
user1804599
func ConstantTimeByteEq(x, y uint8) int {
	z := ^(x ^ y)
	z &= z >> 4
	z &= z >> 2
	z &= z >> 1

	return int(z)
}
user1804599
This is so awesome.

« first day (1891 days earlier)      last day (3282 days later) »