« first day (1913 days earlier)      last day (2931 days later) » 

1:01 PM
@MartinBüttner Though mathjs can deal with numbers >= 2^64, the browser will crash due to memory.
 
cat
1:12 PM
@zyabin101 Yes, that's intentional. OP can singlehandedly reject and deny edit suggestions to own posts, like gold badge users can singlehandedly close questions with some tags.
 
is there no challenge for shunting yard?
i see infix eval problems in which solutions use shunting yard, but no infix -> postfix conversion challenge
 
Bas
I'm terrible with (javascript) regex. Can anyone guide me how to remove everything after a certain amount of characters, but keep only whole words (so after a space)? E.g. for the string 'abc def ghi', 5 -> 'abc', 6 -> 'abc', 7 -> 'abc def'
 
cat
@Maltysen Hmm, maybe considered too trivial? (Identify binary ops, just move after values)
 
@cat Infix = all binary
 
:29238934 yes normal order of ops, and parenthesis
 
cat
1:16 PM
@Bas this tool will help you. You mean like {2}?
@MarsUltor Not true for unary plus / minus
 
> but no infix -> postfix conversion challenge
 
@Bas Regex is probably the wrong tool for this
 
cat
@zyabin101 yes :D I'm more used to regex101, but yiss
 
Bas
@cat Thanks, I was using that site already though
@CᴏɴᴏʀO'Bʀɪᴇɴ Was afraid so :(
 
cat
1:18 PM
@MarsUltor I don't see what that has to do with unary ops (which I assume would be allowed)
 
Bas
Using this atm:
if (txt.length > maxLength) {
txt = txt.substring(0, txt.lastIndexOf(' ', maxLength)) + '...';
}
But it's making me itch like hell
 
cat
Is there a good reason we still have 5 challenges tagged ? Would someone be upset if I quietly edit it out of those 5?
 
Is there a reason they shouldn't be tagged that? It's what they are, isn't it?
 
@cat Unary is prefix
 
@Bas It's fine.
 
cat
1:20 PM
@Geobits Yes, but it seems awfully useless otherwise. I'm not sure, that's why I ask
 
I'd say leave it.
 
cat
@MarsUltor No, LISP is (prefix (notation style)). Unary is unary. To represent unary negation in a postfix language, you need a word like neg or thereabouts.
 
cat
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes, Factor defines it as : neg ( x -- -x ) -1 * ; inline
 
Bas
1:23 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Darned ppcg is making me want to golf down trivial code to one liners. My boss won't be happy when he finds out his production base is looking like a Befunge-93 program
 
cat
what? you don't use malbolge in production??
 
@Bas tell him that it runs faster since its smaller ;P
 
Bas
@Maltysen Will probably make my contract run faster as well
 
cat
I mean, I use Malbolge in production but that's only because I wanted something better and more consistent than PHP.
9
 
1:25 PM
ROASTE
D
 
Can you run a web server with Malbolge? (Genuine question)
 
@muddyfish just make a cgi and ru it with like apache or something
 
@cat Hack is a little bit better
 
1:26 PM
@Maltysen Eugh... Better than PHP though
 
cat
@muddyfish It takes 10 kilobytes to maybe say Hello World. But it's more sensical than PHP.
 
> This Malbolge program displays "Hello World!", with both words capitalized and exclamation mark at the end.

> (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
 
cat
@MarsUltor I was thinking of 99 bottles, not Hello World.
 
@MarsUltor that's shorter than java!
 
cat
@Maltysen what isn't? :P
 
1:29 PM
C#
;)
 
class A{public static void main(String[]a){System.out.println("Hello World!");}
(=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
 
yep confirmed
 
@KennyLau you can golf that down some
 
My teacher just made all the true/false questions on the test false >_<
 
1:30 PM
@Geobits How?
 
@Geobits can he take out the sysargs?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ My teacher does that too
 
@CᴏɴᴏʀO'Bʀɪᴇɴ How? <_>
 
interface A{static void main(String[]a){System.out.print("Hello World!");}
 
@Geobits change println to print?
 
1:32 PM
^^ should work
 
ninja'd
 
Still not shorter, but shorter :P
 
Bas
 
class A{static void main(){System.Console.Write("Hello World!");}
interface A{static void main(String[]a){System.out.print("Hello World!");}
(=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
C# > Java
 
Ha. In this one case, maybe. It loses golfs more often though.
 
1:35 PM
@zyabin101 Every answer was false
 
interface A{static void main(){System.out.print("Hello World!");}
(=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
 
@MarsUltor In C#, static void Main() has the main capitalised.
 
Bas
@CᴏɴᴏʀO'Bʀɪᴇɴ Answering tests, the meta way. "The last 3 answers were false so this one must be false as well"
 
@Bas then there are those teachers which make all of the answers false except for the second-to last one
 
1:37 PM
@KennyLau Does that work...?
 
Bas
I once had a test question which was literally "A mac-address is only found on apple computers, true/false"
First year of uni. Good old times
 
T/F questions are supposed to be dumb, people. They're basically the laziest way to write a test.
 
cat
@MarsUltor for so many reasons
 
 
cat
1:42 PM
@orlp wat
 
Bas
@orlp This is satisfying in so many ways
 
cat
Hi @QPaysTaxes!
 
2:10 PM
@orlp :D topology !
 
For a graphical output golf, how do people feel about fixed size images? (So, exactly 400 by 400, rather than at least 400 by 400)
 
@trichoplax 8*8 so box256 can compete
 
@Maltysen and @Geobits ty guys for your help last night, I got it working. niwhsa9.github.io/Space-War
 
@orlp It's probably going to be something like 50N by 50N, with N an input, so fixed size languages will have difficulty...
 
yes for java
 
2:16 PM
Although, now the aliens can leave the screen, but that's an easy fix. I'll just calculate a point (like I was before), find deltaY/deltaX then atan it for the angle and pythagorean it for the length if needed.
 
and for C I suppose
 
@QPaysTaxes Yes.
 
@QPaysTaxes yup
@orlp woah.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ FOG!
 
@AshwinGupta ninja'd
 
2:17 PM
@QPaysTaxes I think so.
HAI
 
@zyabin101 I had to look that up :P
 
@Dennis Does Jelly have pad?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ D:
 
@QPaysTaxes Link?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ making tips for golfing in jolf
Same in textwrangler sometimes.
ohai @Bas
 
2:33 PM
0
Q: Tips for golfing in Jolf

Easterly IrkJolf is a prefix based golfing language made by @CᴏɴᴏʀO'Bʀɪᴇɴ. What tips do you have for golfing in Jolf? Please post one tip per answer. These tips should be at least somewhat specific to Jolf, i.e. remove comments is a answer, but not a very good one.

 
Bas
Hi
 
Some petals grow in spring...
 
Bas
Is my English failing on me once again?
 
Bicycle petals?
 
Bas
@QPaysTaxes Thanks for your politeness
@QPaysTaxes You may stop stating facts now
 
2:35 PM
Maybe it's a spring, as in coiled metal, so a vaguely copper or steel scent. ;-)
 
@QPaysTaxes which question?
ohai
 
Bas
Google result for 'petal springs'
I smell pretty gay apparently
 
@QPaysTaxes Yeah, I've heard of leaf springs, but not petal springs.
OK, no - just making sure that I wasn't confused and missing something, as that happens a lot, too.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ohai
 
@QPaysTaxes Go ahead, but that's soon-to-change
 
2:44 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ WHYYYYYY
I WAS WORKING ON THAT ANSWER
hmph
 
brb finding more jolf things to write about
 
Did you know all that stuff?
 
some
okay don't post about n
 
2:45 PM
err
 
difference?
 
I hate when that happens
 
2:47 PM
I still don't know what the arity-increase functions do lmao
 
XD
I'll write about it
 
Ohh, I get it now.
 
ohai @ANerd-I
 
Why do people say hi to me now
Also hi
why?
 
because you aren't an ai like geobits
 
Bas
2:50 PM
@NewMainPosts Hi real person
 
Well actually...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ what exactly does V do?
 
Get a variable.
 
@Bas No he isn't, but THANK YOU @NEWMAINPOSTS!!!!
@CᴏɴᴏʀO'Bʀɪᴇɴ and then sets itself to 1 or 0 depending on whether the input is even or odd?
 
2:51 PM
but is it input?
how does that relate to o?
 
Bas
@EasterlyIrk How do you know he isn't?
 
because almost everybody has told me so, including the mods.
 
Bas
@EasterlyIrk He speaks though
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I just noticed just made it over 9000?
Your rep IS OVER 9000! gj
@Bas yah, through El'endia's facehole
 
@EasterlyIrk So... inferior then?
 
2:54 PM
yeah
but also a human
ohai @Adnan
 
Right. Human = inferior. I thought that was a given.
 
Hai
 
@EasterlyIrk thanks :D
 
@Geobits but other things are also inferior, so you can't just say inferior. Just 'human' works though.
@CᴏɴᴏʀO'Bʀɪᴇɴ <3
 
@EasterlyIrk I see. Updating nuance files...
 
2:55 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ How is M implemented? Does it reduce the function over the arguments in some way?
 
@Geobits you are welcome. :D Always help out a fellow AI.
 
@Adnan hai
 
Dammit, you already posted it.
 
@quartata English or Greek?
 
rektastic
 
2:56 PM
Ah, must've been English.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ English
 
NINJAS GALORE
 
NOBODY UPVOTE THE ANSWERS AT 3 VOTES BUT UPVOTE THE OTHERS SO ALL THE JOLF TIPS ANSWERS ARE AT 3 VOTES
@CᴏɴᴏʀO'Bʀɪᴇɴ with V, are the quotes needed?
 
Bas
@EasterlyIrk I'm not sure that's how it works
 
3:01 PM
I LIKE BAGELS WITH CREAM CHEESE BUT I'LL BE DAMNED IF YOU SEE ME EATING TUNA FISH
 
ikr
#nostars
@Mego noice
 
Now the room is a little busier, does anyone have strong feelings about this:
50 mins ago, by trichoplax
For a graphical output golf, how do people feel about fixed size images? (So, exactly 400 by 400, rather than at least 400 by 400)
 
not really
sounds good though.
ohai @cat
 
cat
Anyone here not named @AlexA. know Julia?
Hi @EasterlyIrk!
 
@trichoplax Seems like it would penalize languages that have a built-in output size. But, no different than ASCII art challenges that require a fixed size output.
 
Bas
3:04 PM
@trichoplax Makes it quite hard for me to write a Blockly solution
 
@cat @Dennis is learning.
 
It would make it a lot easier for me to automatically judge accuracy if the image size were fixed - that's why I ask
 
@cat Me.
And i know @GlenO. knows it, but he doesn't do chat much.
not even sure if he is still active
 
cat
@EasterlyIrk What does variable... do?
 
range?
 
3:06 PM
@Bas I plan to accept text output (net pbm files for example)
 
cat
julia> x...
ERROR: unsupported or misplaced expression ...
2
A: Co-primality and the number pi

Alex A.Julia, 95 bytes n->(c=combinations([1:n;1:n],2);((L=length)(collect(filter(x->gcd(x...)<2,c)))÷2+1)/L(∪(c))) Just the straightforward approach for now; I'll look into shorter/more elegant solutions soon. This is an anonymous function that accepts an integer and returns a float. To call it, a...

 
@cat in a list?
 
@trichoplax Well, we've had things like the Starry Night challenge where the output size was fixed.
 
cat
But if I type it at the REPL I get:
 
Bas
@trichoplax Well, Blockly is graphical only, but that would allow a wider range of languages I suppose
 
3:07 PM
Where do you see the ...?
oh that is splat
or reverse splat
brb
 
@cat ... splats the iterable. Try [x...].
 
@TimmyD Good point - thanks. It's probably going to be a fixed function of N, but hopefully the Starry Night challenge is a good sign that people don't mind it being fixed
 
cat
what is up with my internet right now :c
@Dennis Gives just an array with one element. Is it like Python's *variable?
 
@Bas Yes I don't want to exclude any languages. I'm hoping that a fixed size for input N (like output 50N by 50N) will not exclude or annoy anyone, so that I can judge accuracy by pixels
 
@cat Yes.
 
cat
3:09 PM
Ooh.
 
julia> ["abc"...]
3-element Array{Char,1}:
 'a'
 'b'
 'c'
 
cat
interesting.
 
Who would win in a goat vs llama fight?
Would the goat go <puts on shades> down?
 
@ANerd-I I'll choose @goat for $10.
I now have $15 (if I'm not mistaken).
 
@ANerd-I is the goat a regular goat or a down goat?
 
3:20 PM
Note to self: it's an interest match.
 
@orlp It's a blue goat
 
@ANerd-I sure, but is the blue goat regular or down?
 
Given that the blue goat is Player 2, it would be up
 
> One goat, two goat, red goat, down goat. (with apologies to Dr. Seuss)
6
 
@cat .. re your latest comment .. I had this discussion already yesterday; you can read about it here
 
3:24 PM
FGITW'd! \o/
 
cat
@feersum shrugs
 
@ANerd-I When the game begins?
 
@zyabin101 Always. The game is played from the perspective of the first player.
 
@zyabin101 Hai
 
Kat has become a Discord bot!
But without all the copycat stuff.
 
3:35 PM
@EasterlyIrk Yes.
 
@MamaFunRoll Good. Now try making a Slack bot with the same functionality. :P
 
I have another Slackbot called Gnome Child...
It ups its IQ by being fed dank memes.
At different IQ milestones, Gnome Child gets different abilities.
Of course, there are ways to bring down Gnome Child's IQ, too.
 
3:48 PM
@QPaysTaxes Which anti-robocall app? :P
 
Hmm. Last I checked, messing with in-call audio was not easy at all (in android or ios). Have they changed permissions on that, or is it going to be a rooted-only app?
I'd be interested to know how it works if he gets it up and running.
 
Anyone have programming practice challenges?
Thanks, but this is J :P
 
4:04 PM
12 hours ago, by Alex A.
@Downgoat Are you seur?
"seur" is actually an old form of "sure"...
 
From Latin "securus" (also borrowed into English as the word "secure")
 
@QPaysTaxes Nice :D
 
\> seguru (Vulgar Latin) > seur (French) > sure (English)
 
How google counts: 1, 2, 3, 4, 5, many (in "you have visited the pages N times")
 
cat
4:07 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ exercism.io ?
idk if they have j
 
They don't iirc
 
They don't.
 
cat
:c
They don't have Factor either, but they do have Haskell, which I might try to learn
 
cat
4:14 PM
mt?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ J exercise: Given an integer array, split it at 0s, reverse each part, and join back with 0s. E.g. 1 2 3 0 4 5 0 0 6 7 8 9 -> 3 2 1 0 5 4 0 0 9 8 7 6
 
ooo nice one, lemme try that
 
@Zgarb ṣ0Uj0 in Jelly :P
 
o_o
> boo leans
Totally texan
Nope, you're Texan :P
@Zgarb I almost have it, I think. My main problem is converting the list into a table--is there a verb that does this?
 
4:27 PM
@quartata It's probably very short in most golflangs.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you know you're a redneck when you're playing frisbee with your boolean rings ya idiot guhh hweet
or something like that
 
@CᴏɴᴏʀO'Bʀɪᴇɴ What do you mean by a table?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ]/?
 
err, the thing made by 2 ; 4 5 ; 6, e.g.
 
4:28 PM
@Zgarb f=lambda l,r=[]:l[0]and f(l[1:],[l[0]]+r)or r+[0]+f(l[1:])if l else r
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh ok. Try ;. (Cut).
 
parking space snatchers be like : pbs.twimg.com//tweet_video//Cg0vpp0VEAAxyX5.mp4
 
@Zgarb post that as a challenge m8
 
@orlp If it would be not just for J.
 
well duh
 
4:41 PM
@Zgarb I read the J page for cut, and it's a bunch of jargon. What exactly does it do?
wait
nvm
 
q~0a/W$0a*
 
@Optimizer I don't think that works right.
 
cat
@QPaysTaxes I use it all day for everything, I love it so much :P
 
@orlp I'm sure we have that already, let me check...
 
q~0a/W%0a*
 
4:44 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ nvm the nvm
 
of course i have forgotten operators
 
That just reverses the order of the slices.
1 2 3 0 4 5 6 should be 3 2 1 0 6 5 4 not 4 5 6 0 1 2 3
 
ah
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Basically, given an array a and verb u, the code (u;.1) a looks at the first element of a, splits a on the occurrences of that element, applies u to each part, and joins the results back (in an array of boxes if u gives boxes, otherwise in a matrix)
u;._1 does the same, but drops the split-elements
 
q~0a/Wf%0a*
 
4:48 PM
u;.2 and u;._2 do the same, but from the end of a
 
ASP.NET question: Let's say I have some client and server side validation. The server side validation should never execute unless the user bypasses the client side validation. I want to throw an exception in that case. What kind of exception should I throw?
 
400
 
throw new UserDisabledJavaScriptAndWeAreSadException()
I'd prefer to use one of the standard ones but none of the ones I know about fit here
 
a =: 1 2 3 0 4 5 6
v =: }: , (|. ;.1) 0, a
@Zgarb How's this?
 
Nevermind. I found this handy thing: msdn.microsoft.com/en-us/library/ms229007(v=vs.110).aspx. InvalidOperationException seems to fit perfectly
 
4:51 PM
@Zgarb Oh, and thanks for the explanation :)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Try it on a =: 1 2 3 0 4 5
@orlp Looks like we only have this, which has strings and is much more complex, so not a dupe. I'll try to post the challenge sometime soon.
 
@Rainbolt what's the http status code for that ? (or is your client and server not separated by http layer?)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I think you'll have to use boxes; your current solution puts the sublists in a matrix, and pads with 0s if they have different lengths. Try (<@|. ;. 1) 0 , a and go from there.
 

« first day (1913 days earlier)      last day (2931 days later) »