« first day (2022 days earlier)      last day (2927 days later) » 

6:04 PM
@KendallFrey
it is amazing anyone ever played this sport
 
lol
 
Ughh
 
6:25 PM
-1
Q: The javascript maximum function isn't working?

TabulaSmaragdinaWhen I try to run the Math.max function with several numbers in it, independently, I get such a result: m = a number m= another number ... (largest number) Somehow I can't get it to print the largest number in isolation.

cv-pls because it's a bad bad question
 
Here I go on the leaderboard again but little miggits get in my way of doubling the score
 
maggots?
 
Slither.io is insanely addictive
But also fun to play if you can manage not to die in the next minute
 
so is life
 
6:31 PM
Yeah but I can't imagine becoming one of the top 10 richest people in Life, in a short period of time, where you risk dying the richer you get.
 
lol
but pretty sure I saw that one a week or two ago
 
F***ing "Muslims leave Europe!" killed me
Ughhh
 
I wonder how many hours I should play of this game to start not dying
Are there any languages where one can express a lambda, without a reserved word? like in javascript function(param1, param2) { return param1 + param2; }, but without the "function" substring?
 
plenty of them
including JS
(param1, param2) => param1 + param2
 
6:38 PM
Oh yaaa
 
python is the only language I know where lambda is a word
 
which translates to (+) in Haskell :P
 
I prefer to call them lambdas
it makes me sound smart
 
...nice
 
isn't there a subtle difference that makes them not true (mathematics/pure csci) lambdas?
 
6:39 PM
it's just shorter than anonymous function expression :S
 
Nah, I went and learned lambda calc a while back, and it's the same thing
Unless there really is something so subtle that I didn't catch
 
user1596138
lol
 
@Kendall can you use "=>" with a curly-bracket body containing a return statement?
 
what is it called when you do a bunch of methods for an object? i wan t to search it up but i dont know what to search.. azurelogic.com/posts/web-scraping-with-nightmare-js
 
6:42 PM
Oh that's nice
 
@thepiercingarrow you mean the this.that.the.other.thing?
 
Xan
@thepiercingarrow [method] chaining?
 
method chaining, or fluent api
 
I've been thinking about the design of a new language, and was overly obsessed with the syntactic aesthetics... What feels better collection = [ a, b, c ]; collection = { a, b, c }? :S
 
@FilipDupanović hey :)
 
Xan
@Krush And by "collection" you mean what structure exactly?
 
Anyone here good with #!/bin/bash stuff?
 
evening o/
 
I mean "collection" @Xan
 
@Krush which type of collection?
@ChristophBühler sort of
 
6:46 PM
@Krush [], but only because that's how my favourite languages do it
 
@ssube
Can I do this without creating the output_ink.svg file?
python /usr/share/inkscape/extensions/dxf_input.py sample.dxf > output_ink.svg
python /usr/share/inkscape/extensions/scour.inkscape.py output_ink.svg > output.svg
 
no preference
 
Somtthing like this maybe?
python /usr/share/inkscape/extensions/scour.inkscape.py (python /usr/share/inkscape/extensions/dxf_input.py sample.dxf) > output.svg
sorry for posting this here ^^
 
@ChristophBühler pipe them together
 
@ssbue @Xan I just mean collection, I know set, list, class and family are all extensions of collection, but I mean the base
 
6:47 PM
@ssube how?
 
if scour.inkscape.py will take stdin
 
@KendallFrey we've known this for a while now
 
python foo.py < input | python bar.py > output
 
@rlemon ?
 
Xan
@Krush A literal of an abstract collection doesn't sound useful.
 
6:47 PM
@ssbue @Xan the kind of collection with a nation of a bunch of mathematical objects which are collected into one big pile
notion*
 
@KendallFrey that your preference is either or
 
Xan
@Krush Does order matter?
 
!!woosh
 
@Xan Oh wait, you just broke ma mind... It does, gonna go change
 
6:48 PM
Is that some kind of sexual joke?
 
@Krush that's not something you can implement
 
@ssbue ??
 
there's a reason most languages have a syntax for map and a syntax for vector-like collections
 
Xan
@Krush Set? Multiset? List? Something else?
 
@ssbue not set, because duplicates can exist unless you extend the base, whatever [ a, b, c ] will be a class of
 
Xan
6:49 PM
@Krush Okay, multiset or list?
 
@ssube like this?
python /usr/share/inkscape/extensions/scour.inkscape.py < python /usr/share/inkscape/extensions/dxf_input.py sample.dxf > output.svg
 
@ChristophBühler definitely not
 
Did you look at the example he gave you?
 
Xan
You'd need a pipe.
python ... | python ... > output
 
6:50 PM
python /usr/share/inkscape/extensions/scour.inkscape.py < python /usr/share/inkscape/extensions/dxf_input.py | sample.dxf > output.svg ?
 
@Xan ermm... what you can a collection with a limited number of items, that CAN be duplicates and are accessible by index?
 
Xan
@Krush List.
 
@Krush that's a list
 
@Xan yay that'll be it :)
A list can be a set right
 
Xan
No.
 
6:50 PM
@ChristophBühler no, you need to feed the input into one, then pipe the output of that into the other, than redirect that to the file
 
Well then List is not what I'm looking for!
 
bar < foo | baz > bin
 
What is mutually exclusive in List and Set?
 
foo goes to bar, bar writes to baz, baz writes to bin
 
@ssube ok, thanks!
 
Xan
6:51 PM
List cares about number of duplicates and order.
 
If List is nothing more than what I requested, then I assume because List can have duplicates, you could have a List that is a Set if it simply does not contain any duplicates, regardless of ability to do so... If I were to simply make a native class of "List" and one that extended this called "Set" which simply checked for duplicates, then what else is wrong? What am I missing?
 
Xan
@Krush You can always interpret a List as a Set.
 
@Xan is List a superset of Set?
Ignore the mutual recursion, but you know what I mean
 
Xan
No, because equality is different
[a,b] = [b,a] as sets but not as lists
 
I'm not saying they're equal
Oh
 
Xan
6:55 PM
As such, it's not a "subset".
Superset. You know what I mean.
 
Hmm, but then Set could inherit List, and override equality testing?
 
Xan
It should not inherit.
 
Or is this a bad way to think of relation between the two?
 
Xan
A Set can be implemented with a List
 
??
 
6:56 PM
@Xan no, you can't
@Xan list does not care about duplicates
list just has an ordered series of items
 
Xan
Not efficiently.
But you can.
 
you can view a set as a list, but not vice versa
 
Xan
You can.
 
You have to copy a list to treat it as a set. You do not have to copy a set.
 
Xan
Let's implement a set given a list l.
Membership: loop through list, if found - in, if not found - not in.
Insertion: add at the end.
Deletion: loop through the list removing all copies
Subset: take each element of first list, see if it's "in" the second.
Set equality: both are subsets of each other.
 

« first day (2022 days earlier)      last day (2927 days later) »