« first day (1896 days earlier)      last day (2947 days later) » 

6:00 PM
it's not even an alpha yet, just the trunk
not even sure if pip will work with it
 
is Google Code Jam like code-golfing competition or what?
 
You should not read from standard input. The input will be provided through a library function specified for each problem. Each node will get the same input. You need to include/import the library into your solution, using:

#include "problem_name.h" in C and C++
import problem_name in Python
uses problem_name; in Pascal
it gets imported automatically in Java
so how would I use javascript?
 
@Downgoat it's speed coding
 
oh
so fastest-coder-in-the-west
 
these are my instructions for building Python 3.6: gist.github.com/orlp/7295cdfd887ac04599a0de9e12c3ff9e
 
6:00 PM
@epicTCK Node.
 
@epicTCK You don't.
 
I had to patch one file
 
@epicTCK spidermonkey
 
but not sure why/whether it's even correct
 
@ChrisJester-Young so how would I import though...
 
6:01 PM
@orlp Dang. I'll wait for the alpha then
 
You just translate it to Java.
 
@epicTCK var foo = require('foo');
 
@Sherlock9 why
 
@ChrisJester-Young you sure they accept node though..?
 
Because I like my Python installations to be nice and simple
 
6:01 PM
@epicTCK What contest are we talking about?
 
@ChrisJester-Young google code jam
 
JavaScript in Java ==> True, so you should have little to no problem doing JavaScript ==> Java.
 
@Sherlock9 you can just install it in a directory and not set up any PATH/shortcuts
 
@epicTCK Google Code Jam is a contest where you write all your code yourself. The problem is given in input data sets, which your code reads, and you submit the correct output.
@epicTCK You run the code on your own computer.
 
it's a bit like project euler
 
6:03 PM
They don't have a Docker instance to run your code in. ;-)
@orlp Right.
@epicTCK So yes, you can write Node solutions.
 
@orlp Very well, but I'll have to download it when my Internet connection doesn't suck 38 MB may take 3 hours wtf
 
registered for codejam :)
 
@orlp ur python 3.6 doesn't work @_@
 
lol do i see barely no stars in the curent page ?
 
6:04 PM
usually the input is pretty small
 
@EᴀsᴛᴇʀʟʏIʀᴋ no problem :D
 
@NathanMerrill Come join the chat in "#gcj#{1+1}". :-)
 
@zyabin101 Get a sane machine.
 
linky?
 
irc://chat.freenode.net/gcj2 ;-)
 
6:04 PM
ah, its irc
I don't want to install a client
 
> There is no application set to open the URL irc://chat.freenode.net/gcj2.
 
Bummer. Oh well.
 
D:
 
oh, its freenode
 
6:05 PM
@zyabin101 in what way does it not work?
 
@orlp Looks like my machine isn't sane enough to run 3.6 XP
 
so I assume I can't just use some random codegolf language for code jam...
 
why 2?
 
Thanks, no help needed.
 
6:06 PM
what's on gcj?
 
I think I joined something
 
@zyabin101 please tell me where the issue lies
what error do you get?
 
@NathanMerrill #gcj is the official channel, which is muted during the contest. #gcj2 is unofficial. Still no cheating allowed, but people can talk during the contest.
 
@ChrisJester-Young what is the channel I'm supposed to join
 
@orlp The installer just terminates, returning a "Resolving problem via web" message.
 
6:07 PM
what is the great point of jammed codes since they are unfolded once before getting compiled
 
@Downgoat Whichever you want.
 
Maybe the system has to be better than vista.
 
unless there is some special compiler
 
@zyabin101 odd one sec
 
Solutions will run using Python 2.7.3 for Python XP
 
6:08 PM
@orlp I have Windows Vista x86.
 
> A grand prize of $15,000 and earning the title of 2016 Code Jam World Champion.
 
@zyabin101 Vista got a bad rap because Microsoft needed to drastically change the driver architecture API, and hardware vendors ignored it.
 
damn, I could but I lot of goat-sized keyboard for $15K
 
@TimmyD Well, and also because it sucked :P
 
@zyabin101 Oh, or did you mean "newer than Vista"?
 
6:09 PM
@TimmyD Yup.
 
@Geobits Y'know what Windows 7 is? Vista with a slightly prettier GUI, a different label on the box, and several years to let hardware vendors get their heads out of their collective behinds and actually write decent drivers.
 
@TimmyD Exactly. It's what Vista should have been, but wasn't. They released a half-baked OS with no support.
 
So it's Microsoft's fault that hardware vendors didn't update software? Okay ...
 
we all complain about windows and say OSX is best, but we forget that OSX has only one hardware vendor while windows has hundreds
 
6:12 PM
Time to standardise Windows execution platforms! It will be Hyper-V only going forward. :-P
 
@epicTCK Use whatever you wish
 
@TonHospel all sounding pretty awesome :)
 
@TimmyD More that it's their fault for going ahead and releasing it before they did update drivers. Sure, it's a good way to push them to, but it's also a good way to get heavily criticized.
 
@epicTCK You can! I've solved GCJ problems in GolfScript some years ago.
 
@epicTCK 8/10 not upsidedown
 
6:13 PM
@ChrisJester-Young would it be faster do you think?
 
@ChrisJester-Young Hell, that's essentially what UWP is on the back-end.
 
when does code jam start?
 
@TimmyD :-D
@epicTCK No, you'd only do it for fun.
 
4 hours
 
oh wow
 
6:13 PM
As an OS vendor (and the big one at that), they should have known the state of the driver side of things, because they should have been talking to the hardware vendors. If they knew and released it, then yes, they deserve some blame.
 
ah look!! .... a star ...... i feel in the right place now
 
@TimmyD UWP is the universal apps ecosystem?
 
@Optimizer Right.
Xbox One is already running a flavor of Hyper-V
 
@Geobits they can't possible talk to all of them. and major vendors had drivers. tbh, I feel vista was a software fault
 
The summer update coming in a couple months is going to make it better.
 
6:15 PM
@TimmyD yeah.. within an year, they have expanded the UWP to all of their devices, allowing cross device synergy..
 
@Optimizer Microsoft is definitely talking to all major ones about stuff like this. There is no way they didn't know about the massive lack of support.
 
cortana across device!
@Geobits umm, this is what i wrote?
 
what should happen when a sqrt "foo" (square root on a string) is run?
 
> "bar"
 
@Downgoat Clearly that's base64 :P
 
6:17 PM
@Optimizer bar =/= sqrt "foo"
@Geobits no, it's just a normal string
 
An honest answer? Nothing, or an error. Don't try to square root strings. It makes no sense and overloading it to something arbitrary is silly.
 
Anonymous
sqrt(str) should be an error
 
@QPaysTaxes you must of not had enough coffee
@Mego oj
 
@Geobits Are you serious? Vista had probably the largest beta-test and developer-preview support of any of Microsoft's operating systems. It was already going to be the longest lag between releases (XP to Vista) of any OS they've produced. What is Microsoft supposed to do? Code the drivers themselves? They stuck to it, took the brunt of the bad feelings, and when hardware vendors caught up, released a polished version that became their best seller ever.
 
:/
 
6:20 PM
@Downgoat If you've defined multiplication for str * str then go ahead and define the square root too. Otherwise definitely not
 
@QPaysTaxes Windows 7
@QPaysTaxes PowerShell begs to differ
PS C:\Tools\Scripts\golfing> [math]::Sqrt("36")
6
:D
 
what should the behavior be formultiplieng strings ame?
 
some one knows which technique is appoached in this answer
 
e.g. "foo" * "foo:
 
@Agawa001 you forgot to paste a link
ugg ninja'd
 
Anonymous
6:21 PM
Exceptions are for exceptional circumstances. Trying to apply mathematical operators where they don't make sense is an exceptional circumstance. Throw an exception.
 
@TimmyD None of which matters to consumers when they plug in their mouse, sound card, or whatever and it doesn't work. That's essentially the same complaint linux has been fighting forever, so it shouldn't be waved away for microsoft either.
 
@Downgoat I can't imagine a reason for being able to multiply two strings. If you have such a reason, that reason should guide your implementation
 
Anonymous
I plugged in my wireless mouse in Linux and it triggered the Emergency Alert System
 
@trichoplax ok, It'll be throwing an error than
 
is this a suffix tree ?
doesnt seem so
 
6:22 PM
@Downgoat Good plan :)
 
Anonymous
@orlp I might love you for that windows installer
 
@Geobits I'm not trying to wave it away, but Microsoft took the best approach they could to get the developers to actually do.
 
Anonymous
And since it's not April 1, I have no fear in clicking on a link on the internet
 
@Mego Is that the OS equivalent of "Eeek! A mouse!"?
3
 
Anonymous
@trichoplax Something like that
 
6:24 PM
how should operator overloading work? If I let classes define a function which takes the two sides of the operator. e.g. A + B, what if both A and B overload the + operator?
 
Anonymous
LHS has precedence
 
Anonymous
Or better yet, don't get yourself into such confusing scenarios
 
Anonymous
Don't make/allow ambiguous overload scenarios
 
@QPaysTaxes yeah, but how would the interpreter descide which class's overload to use?
 
@Downgoat are you defining extension methods like I described before?
 
6:26 PM
@NathanMerrill I'm deciding on how operator overloading should work
@QPaysTaxes hm, okay, that makes sense
 
right, but my answer depends on whether you are allowing extension methods
 
@QPaysTaxes ._.
@NathanMerrill if that means what I think it means, yes.
 
@Downgoat it means that I can define a method for a class that I didn't declare
 
@NathanMerrill as in:
 
i had devoted 2 months for arborescent structure of lcs, i stopped developping it when it refuses to refrain from giving birth to bugs like fly eggs
 
6:28 PM
class A {/*...*/ }
variable := A:()
variable.extensionMethod := /*function*?
@Agawa001 lcs?
 
sort of, except that extension methods are defined for every variable of that type
 
@Downgoat If you're going for confusing, set up an precedence order for types, then favour the LHS if the precedence is equal, unless a type of the LHS is only overloaded for use on the RHS, then follow the RHS unless that only works from the LHS in which case switch the sides otherwise error
 
@trichoplax oh shit that's bad
 
cover this bug, see this bug coming, burry this flaw see this one proliferating, w t bloody heck ?
 
A.extensionMethod := /* function  */
 
6:29 PM
Hi Mego
 
@Downgoat yes longest common sub-string
 
@QPaysTaxes Yes your way is far better - mine was an example of what not to do :)
 
@NathanMerrill okay, I guess could allow those. Shuold I?
@Agawa001 oh ok
 
@Mego I put in a sane pull request for Seriously docs
 
@Downgoat I like them a lot :)
 
Anonymous
6:30 PM
Actually I decided not to try to type out VB.NET code
 
Anonymous
Python does it way better
 
I did something correctly in C with malloc without leaking memory
 
@quartata \o/
 
Yay!
 
if you do support them, then the class used is always the left operator
 
Anonymous
6:31 PM
 
@Mego no really I checked with valgrind
I can't believe it myself
 
@QPaysTaxes ok, seems good. Ruby is weird though
since when is + a valid property name???/
 
Class A {
    __add__ := (b: B) <= a + b
}
B.__add__ := A.__add__
 
Anonymous
@Sherlock9 You're gonna hate me :)
 
6:33 PM
That sounds like good news
 
still...
 
Anonymous
Numeric parsing is different and way better in v2, and ^ is XOR instead of exponentiation ( is exponentiation now). These docs are a good start for v1, though.
 
Should I just start on v2?
 
@QPaysTaxes the problem with that is that it makes things white space specific
 
in Cheddar should ^ be xor or exponentiation?
@NathanMerrill whoops, trypo
 
Anonymous
6:36 PM
@Sherlock9 Nah v1 needs docs more than v2
 
Are we keeping v1 around?
 
right, but how do you define a method by +
the syntax gets really messy
 
For backwards compatibility and such?
 
but he doesn't define methods like that in the first place
methods are just properties
 
Anonymous
@Sherlock9 Yes, because, until I get v2 to where I want it to be, v1 will still be superior for certain things
 
6:37 PM
meaning you have classes like:
class A{
    a
    +
    b
}
 
how many moderators are there actually in this room, grr this s the most controlled spot of the network including non-beta sites
 
@Agawa001 only 7
 
def is not required for his language
so you can't do def
nah
:)
@Downgoat exponents
 
okay
what should xor be then?
b^?
 
6:39 PM
oh okay
yeah, that's what I was doing
duh,
should subtracting an integer and a string try to do some implicit casting or just throw an error?
 
can I get a link to cheddar @Downgoat
 
e.g. 3-"2" should it be 1 or errro
@QPaysTaxes ok
@epicTCK sure, the github or the c9?
 
github I guess
 
@Downgoat error
 
6:41 PM
never implicity cast
 
never JavaScript
 
Anonymous
Explicit is better than implicit
 
if you want implicit casting, then classes should be able to define the datatypes they implicity cast to
 
@Mego tell that to Jelly
 
6:43 PM
^
:P
^^^^^ that's a great idea
 
@Downgoat typo in Cheddar README, currently not currenty.
 
what should the syntax for overloading be?
@zyabin101 screw gramar
 
Anonymous
@Downgoat Jelly's design goal was to kick ass at golfing, not to be a good general-purpose language :P
 
@Downgoat nop
 
@Mego it kicks goat, dragon, penguin, bird, everything....
 
6:44 PM
@Downgoat :D I will be definitely using cheddar
@Downgoat oi. I've beaten Jelly before.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ :D \o/ \o/ \o/
@CᴏɴᴏʀO'Bʀɪᴇɴ fixed
 
Anonymous
I would have beaten Jelly once if it wasn't for FGITW
 
It can't kick glider bc the glider is the FGITW
@Mego ouch
 
Anonymous
I didn't see the challenge until 4 hours after Dennis posted a Jelly answer because time zones and meals and such. Seriously and Jelly both had the same byte count.
 
@Downgoat how did you decide operator overloading should work? Is it determined by the type of the first variable
 
6:45 PM
@NathanMerrill yeah
 
@Downgoat Is Cheddar a functional language?
 
__add__
no its not
 
Anonymous
Dis one:
 
Anonymous
3
A: Minimum Scalar Product

MegoSeriously, 6 bytes ,SR,S* Try it online! Explanation: ,SR,S* ,SR input first vector, sort, reverse ,S input second vector, sort * dot product

 
Anonymous
6:46 PM
Compare:
 
Anonymous
6
A: Minimum Scalar Product

DennisJelly, 6 bytes ṢṚ×Ṣ}S Try it online! Using brute force is equally short: Œ!×S€Ṃ How it works ṢṚ×Ṣ}S Main link. Arguments: u (vector), v (vector) Ṣ Sort the components of u. Ṛ Reverse. Ṣ} Sort the components of v. × Multiply the results, element by element. S ...

 
and MATL
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it's like 50% functional
 
@Downgoat please at least add reflexive functions
 
Anonymous
The MATL answer came after mine
 
6:47 PM
Like, 3 /~ 5 = 5 / 3
 
@CᴏɴᴏʀO'Bʀɪᴇɴ why?
 
@QPaysTaxes So that operator overloading could be determined by the second variable
And it's fun :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you can do that with extension methods
 
@NathanMerrill I don't know what those are. I know what reflexive is.
 
Anonymous
3 /~ 5 == 5 / 3 == 1/3 / 1/5
 
6:49 PM
@QPaysTaxes I love obsfucation. It's another hobby
 
you can add methods to classes at runtime
 
Anonymous
Basically what JS tries to do with prototypes
 
@QPaysTaxes You've obviously hadn't had enough experience with J.
 
B.__add__ := (a) => value+a
 
@QPaysTaxes oi functional programming is fun
   3 % 5
0.6

   3 %~ 5
1.66667
 
6:50 PM
by the way, does anyone want to help edge-cast test Cheddar?
 
YES
but at home
 
ok
 
you mean edge-case?
 
yes
 
I'll help you edge-case your language design
 
6:50 PM
@QPaysTaxes Division is %. Modulus is |
 
but actual code? gross
 
/ is insert.
 
^^
 
+/1 2 3 = 1+2+3
 
^^
 
6:51 PM
@QPaysTaxes alright wtf you don't like js you don't like J... you must be a C/Java programmer.
@_@
 
I'm a C#/JavaScript/Html/SQL programmer. Doesn't mean I like all of those languages.
 
@QPaysTaxes JS is very smart language
 
@Rainbolt C# and SQL?
 
6:53 PM
actually, I like Html5 too
 
obvious solution is to use unicode division ÷
 
@NathanMerrill Yes. Is that unusual?
 
making everything semantically correct is so fun
 
The % looks like an obelus
 
@Rainbolt I was asking if those were the ones you like.
 
6:53 PM
Right now I'm looking for feature suggestions for Phigs.
 
@PhiNotPi It should beat Jelly
 
@PhiNotPi static or dynamic or golfy?
 
@PhiNotPi when the source code is goat emoji, output an ascii art goat
trust me, add this, it is a good idea, I will make a challenge regarding it soon...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ noted
 
6:54 PM
@NathanMerrill Oh. I love SQL (minus the part about how everyone has their own convention for naming and capitalization). Love C#. Hate HTML. Hate JavaScript. I should point out that I have done nothing to alleviate my own hatred - there are a billion JavaScript frameworks out there that I could be using that I have not even tried.
 
huh, I found an ASCII downgoat:
        ___
        \_/_         ___..._____....__\|/_
       / /_/__..---""___   ___ .    .  .  """---...___
__..--/ ( (       .  \_/   \_/            \|/    .   .
     /  | |   \|/     \ \  \ \     \|/
\|/ |  <  <  .     .   \ \  \ \   .        .        .
    \   \_ \            \ \ |  \
 .   \    `-.___    _.../__/   |   .   .      \|/  .
     /          `~~~      /   /
    |                   (    /
    |                  /     \   .     .   \|/
   /                          \
 .'                            \  .-"""-.
 
@Rainbolt you hate HTML? why?
 
Anonymous
@Rainbolt A framework can only do so much when the core is broken
 
@Downgoat that's an ascii deadgoat
 
This is why you shouldn't code late at night:
  function _Operator(monad, dyad){
  	this.monad = monad;
    this.dyad = dyad;
  }

  // TODO:help me God
  function Operator(verbToken){
  	push = typeof push === "undefined" ? true : push;
 
6:55 PM
@NathanMerrill golfy
 
ew gross
 
@CᴏɴᴏʀO'Bʀɪᴇɴ why are you using typeof ಠ_ಠ
 
I found that in my source code and I'm like wtf
 
@Downgoat Looks like a down sheep.
 
@NathanMerrill ;-;
 
6:56 PM
@Downgoat typeof is the proper way. What else would you use?
 
write in ES6 pls
 
@PhiNotPi You should have a ModifyWith function. Take array A, functions F and G. Zip together F(indices of A) and G(A), and for each pair (i,a), do A[i]=a.
 
@Downgoat there is 4 :/
 
@Downgoat I'm coding at school and want to be able to test it there as well.
 
the others are retired
 
6:56 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ does | work?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you can use C9
 
@Maltysen Nope. Neither does ||.
 
why not?
 
@Downgoat Doesn't that cost money?
 
can push ever be falsey?
 
6:57 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ no
 
@Maltysen Because push is true or false.
 
oh
 
@NathanMerrill It's tedious to write, and I never had any formal learning with HTML, so I picked up some bad practices. Having to write every tag twice (<label></label>) annoys me even more than surrounding a code block with braces in C#.
 
lol
fair point
 
@Downgoat Oh well. I already have it set up.
 
6:58 PM
@Rainbolt you need a good ide then which automcompletes
 
Even jsfiddle does that >_>
 
for frontend stuff I recommend adobe brackets
 
Mine does auto complete. Every time. So if I want to surround a block of existing code with braces, I have to start the brace {, then delete the brace that it creates }, then add a new one after the block.
It fixes the indentation for me, but it's still mildly annoying
 
^^ I think it's that way for 'em all
 
@Rainbolt a good ide will let you highlight the codeblock and you press { and it adds the braces
 
6:59 PM
@Rainbolt I learned to love HTML with XSLT. Basically, if you code isn't inline with HTML (like html templates, or xslt), then its annoying
 

« first day (1896 days earlier)      last day (2947 days later) »