« first day (2012 days earlier)      last day (2811 days later) » 

9:04 AM
@LeakyNun I didn't know Cantonese had consonant clusters
@Sherlock9 eh, not really
but the best approximation of that sound is "bork"
the "r" helps to maintain the 'o" vowel
but in real Cantonese there is no "r"
You can also approximate that sound by "bock" but the "o" would be too short
@LuisMendo hola
The golfing-language downvoter strikes again
Q: How Many Rectangles in the Grid?

R. KapWell, we don't really have a challenge like this yet, so here we go. Consider this 3 x 3 grid of rectangles: How many rectangles are there? Well, counting visually, we can see that there are actually 36 rectangles, including the entire plane itself, which are all shown in the animated GIF bel...

@LeakyNun ¡Hola! :-)
@LuisMendo Ven aca y hablamonos
@LeakyNun so like boğk in turkish
@LeakyNun I can't now, sorry
9:07 AM
@betseg yes
@LuisMendo Dang...
@LuisMendo Mi nuevo amor xd
@LeakyNun Fair enough, but remember that, as Cantonese is a pretty good language to swear in, there's not a lot of one-syllable words that aren't Cantonese swear words :P
I could be completely wrong though
@Sherlock9 oh, that one isn't a swear word but is quite familiar
@Sherlock9 of course
we only have five monosyllabic swear words
@LeakyNun Hahah. ¿En serio?
9:08 AM
@LuisMendo si, me encanta esta cancion
@LeakyNun I'm not much into Julio Iglesias. This is one of my favourites
@LeakyNun Well, "bork" is still a fun non-word in English, at any rate. It nicely evokes the thing has failed scenario without meaning much on its own
@LuisMendo me encanta esa tambien
@Sherlock9 sure
Got any other challenges for me to try today?
@LeakyNun Also, songs are a good way to practice a language, A lot of my English and Italian come from that
9:11 AM
Q: Hofstadter H-sequence

Leaky NunDefinition a(0) = 0 a(n) = n-a(a(a(n-1))) for integer n > 0 Task Given non-negative integer n, output a(n). Testcases n a(n) 0 0 1 1 2 1 3 2 4 3 5 4 6 4 7 5 8 5 9 6 10 7 11 7 12 8 13 9 14 10 15 10 16 11 17 12 18 13 19 ...

@LuisMendo eso es la verdad
@LuisMendo que mas?
Sure. Have you taken a look at my VIC cipher Sandbox post yet?
@Sherlock9 eh, it's too complicated
Somewhat :D I think someone could get under 500 bytes though. I have yet to write up a test golf
@Sherlock9 where (too lazy to look up)
A: Sandbox for Proposed Challenges

Sherlock9Write a VIC cipher encoder code-golfcryptography The VIC cipher is one of the most complicated pencil and paper ciphers ever devised. Used in the 1950s by Soviet spy Reino Häyhänen, codenamed "VICTOR", its main principle is security through obfuscation; a lot of obfuscation. Your task is to wr...

Ah yeah, still need to write the decoder post
9:23 AM
I love Turkish. "Sıkıldım." means "I'm bored.". "Sikildim." means "I'm fucked." (literal meaning). "Ananas aldırdım." means "I had someone to buy me a pineapple.". "Anana saldırdım." means "I attacked your mother.".
@betseg how do you type the dotless i?
@LeakyNun I have it on my keyboard.
also, İ
@betseg alright
@LeakyNun glibc has 2 targets for unicode: i18n and tr_TR, because İ is capital i and I is capital ı in Turkish.
9:34 AM
@betseg I see
@Sherlock9 ;_; so complicated
huh god it's hard
@TùxCräftîñg thats greek right?
yep, it's greek
a iota
9:41 AM
@Sherlock9 So is the keyphrase only used for S1 and S2?
@Sherlock9 ^
@MᴀʀsUʟᴛᴏʀ Yeah, I think so
Let me check
I'm going to install apps to my new TC VM.
@betseg Where r u from?
> RecursionError: maximum recursion depth exceeded in comparison
@flawr Turkey, I think...
9:54 AM
I knew I made an error in my example! Brb fixing
@TùxCräftîñg I'm glad there is no such thing as a maximum recursion depth in Haskell.
@zyabin101 ye tru
@flawr turkey
@flawr haskell have tail-call optimization
python dont :/
@betseg Danke schön.
a(p, 1) = p
a(1, q) = q
a(p, q) = a(p - 1, q) - a(p, q - 1)
f(n) = a(n, n)
^ try to plot this function
10:00 AM
@zyabin101 Why...why germans use 3 letters for the sound ⟨ʃ⟩... We have ş in Turkish, some other languages have š etc
after n = 8 this generate a "exponential sinus"
@betseg Simplicity, note that there is also ch.
@flawr we have ç, others have č
french also have ch
German has a letter for two S's in a row.
10:03 AM
@Phrancis hi
@TùxCräftîñg tryin
@betseg There is actually a difference between ß and ss. (Both are used.)
@flawr then my teachers were wrong...normal stuff.
@betseg Luckily in switzerland ß is always written as ss.
@Sherlock9 ?
10:08 AM
Hes on discord
@TùxCräftîñg what is this?
a sequence i have invented
a(p,q){return q?p?a(p-11,q)-a(p,q-1):q:p;}f(n){return a(n,n);}
user image
memoization is cool
10:12 AM
^^ oh this is wrong it returns q if 0,q and vice versa
@MᴀʀsUʟᴛᴏʀ I did the calculations in the example for VIC by hand. I made one or two errors that were (thank goodness) small
Ah wait. I may have messed up more than I thought
@flawr +1 makes people waste time waiting to see what it spells
@Sherlock9 did you factor in the possibility of getting a flush from a different suit of the main one in the calculations (I mean, getting dealt 2 spades, and 1 heart, diamond and club, and getting a club flush)
@DestructibleWatermelon Nope. Not in the slightest
I think it was accounted for though
@Sherlock9 It was harder than thought, I guess >:)
10:17 AM
@LeakyNun ¿En español? Aquí van algunas que me gustan: 1 2 3
plumber is just about done
I think I will just add the values of cards
Ah, no it was not
@LuisMendo quiero decir de julio
Welp, my code broke Python's recursion limit
@LeakyNun Nah. Escucha mejor ésas :-)
10:17 AM
@DerpfacePython try memoization
@LuisMendo de acuerdo
@DestructibleWatermelon Should be similar to the chances of getting a flush in the beginning though. So that may be why the empirical chance seen is >20% but not much more
Should I increase the maximum recursion limit and try again?
Yeah, I memoized to test my H-sequence code
memoization is great like jQuery
10:18 AM
@LeakyNun This one I also like, by Julio. I think it's a cover
@LuisMendo eso jamas lo he escuchado jaja
@LeakyNun ¡Pues es muy buena!
def memoize(f):
        D = {}
        def d(*args):
                if len(args) != f.__code__.co_argcount:
                        raise Exception("Wrong number of arguments")

                if args not in D:
                        D[args] = f(*args)
                return D[args]
        return d
a memoization decorator
:D sequentialize works
plumber is done!
10:20 AM
Question to chat: In your opinion, what is a great programming language to prototype in? I like Python
@Sherlock9 JS is cool
@Sherlock9 I always use JS
@MᴀʀsUʟᴛᴏʀ Yeah, I got that and chain add. Working on the first constants
Python rarely (usually only for golfing)
my chain add is so long ;_;
i use python when i want to do a thing quickly (i am very good at python) and JS for every big project
10:21 AM
@TùxCräftîñg first 15 members: 1, 0, 6, -18, 70, -260, 980, -3710, 14118, -53952, 206932, -796180, 3071692, -11878932, 46034816
@Sherlock9 can i take the keyphrase capitalized and with no spaces?
Well, I need to reduce function calls in my code
@betseg yep
I installed a few apps on my TC VM.
10:23 AM
You know for the "Hello, World" challenge, right?
@zyabin101 for example?
Is it OK if I added a new feature to a new program and then updated my code?
Submitted plumber!
@betseg Dillo graphical web browser, AbiWord word processor (very buggy).
mtPaint painting application, Fluff file manager.
10:28 AM
my program take 0.015sec to process the first 200 terms
@TùxCräftîñg what processor?
@betseg i7 5500 with 8GB of ram
@MᴀʀsUʟᴛᴏʀ I edited the text to say 'you can assume all spaces and punctuation are removed'
I should put in capitalization
Quallcom Snapdragon 801 with 1.7 GB of RAM computes the first 17 terms in about a second...
@TùxCräftîñg I don't know JS well enough or I might try that. Python works for me, at the moment.
10:32 AM
@betseg try memoization or compile with -O3 (tail call optimization)
İ dunno what memoization is, and cppdroid gives an error if i try -O3
In computing, memoization is an optimization technique used primarily to speed up computer programs by storing the results of expensive function calls and returning the cached result when the same inputs occur again. Memoization has also been used in other contexts (and for purposes other than speed gains), such as in simple mutually recursive descent parsing in a general top-down parsing algorithm that accommodates ambiguity and left recursion in polynomial time and space. Although related to caching, memoization refers to a specific case of this optimization, distinguishing it from forms of caching...
@betseg and what's the error?
(btw uppercae I dont need a dot)
@TùxCräftîñg ye i know autocorrect does that
I have made all the three bots for this challenge
10:36 AM
it's funny to see how @Community try to protect and remove the featured tag of the sandbox
A: Leo's Pokerface

Destructible WatermelonPlumber, Python Plumber is all about flushes. Plumber also prioritises higher value cards (meaning he can sometimes get straight flushes, especially royal ones (should they occur).) Plumber is pretty much messed if he doesn't get a flush, except that he might be lucky enough for a straight. Plum...

A: Leo's Pokerface

Destructible WatermelonLuckyBot, Python Pairbot invited his buddy Luckybot, who sprang for the chance. Luckybot had watched a lot of fictional poker, and reckoned he'd figured out the secret to poker: luck. Everyone knows the real pros (James Bond, for example) really rely and getting good hands, not skill. Hence, he ...

A: Leo's Pokerface

Destructible Watermelon(Python), Pairbot, not quite competing (I don't know how to make cmd commands and stuff) Pairbot will compete as soon as someone assists with the bot.jlsc, and zip files etc. Pairbot knows that you don't always get good hands. He knows good hands are rare. Pairbot knows pairs and other duplic...

@TùxCräftîñg the error is Compilation error: attempt to invoke interface method 'boolean java.util.List.addAll(java.util.Collection)' on a null object reference (im tryina compile a C file)
AHHHHHHHH JAVA the compiler is borked visibly
Jul 25 at 16:47, by Martin Ender
Don't use flags as jokes. They're visible to every 10k user on the entire network.
10:41 AM
who has flagged what?
@DestructibleWatermelon this got flagged
@Sherlock9 I use JS for both small and big projects :P
Someone probably considered this as spam.
I use C for small and big projects lel
@Sherlock9 Is M/date used more than once? or only to generate G?
10:44 AM
@betseg i use C for projects where i need performance (Processor/1 simulator, planned Ultimath VM)
11:01 AM
@MartinEnder I do. :P I was too busy to think about challenges in June and most of July, and lately I've been working on Grime. But I now have a challenge in the works, we'll see how that turns out.
@MᴀʀsUʟᴛᴏʀ I think it's only used once to generate G
11:16 AM
@Zgarb looking forward to it :)
how usable is Jellyfish at this point?
> Jellyfish
@MartinEnder Jelly is doing great.
Jellyfish is on a hiatus right now. You can use it, but the library is horribly limited (you can easily convert a number to a given base, but not back again, for example).
Sounds like a cross between Jelly and ><>
11:19 AM
@zyabin101 Why do you always answer for other people.
@zyabin101 I'm glad to hear that.
@Zgarb I guess the main problem might be "Please note: this document is incomplete and possibly not up to date." ;)
That too.
Fish is a veteran now.
I find Grime much more fun to develop, because it's supposed to do one thing well.
11:23 AM
yeah it's definitely the more useful language, but Jellyfish sounds really fun to use actually
I don't know what would Jellyfish do.
I gotta go now, see you all later.
Goodbye @Zgarb!
See you later @Zgarb
Q: Integers, Assemble!

Martin EnderYour task is to assemble the integers from 1 to N (given as input) into a rectangle of width W and height H (also given as input). Individual numbers may be rotated by any multiple of 90 degrees. Here is an example. Say your input is (N, W, H) = (12, 5, 3). One possible solution is: 18627 21901...

11:36 AM
It's interesting how many times the name "Brady Haran" appears in the OEIS because of the Numberphile videos :D
i think my sequence deserve a OEIS.
@TùxCräftîñg Submit it, then!
@Sherlock9 0/10 the first one is just a variation of fibonacci
@Sherlock9 all of his channels are awesome. He even does podcast with CGP Grey
I keep meaning to listen to that podcast, but I haven't made time to do so
11:40 AM
@Sherlock9 same ._.
@mınxomaτ ಠ_ಠ I don't.
Haha my brother and I were just discussing how I do that to him a lot
I may be an ass as I don't remember the instances he mentioned
Hmm. I wonder what it's like to be the brother of Donkey (from Shrek)...
@zyabin101 Yes you do. You just did.
Is that a Turkish ı or greek iota @mınxomaτ
11:45 AM
Jun 5 at 16:16, by Eᴀsᴛᴇʀʟʏ Iʀᴋ
@zʏᴀʙiɴ101 Please don't answer for other people.
26 mins ago, by mınxomaτ
@zyabin101 Why do you always answer for other people.
@mınxomaτ Wat, I never do.
@betseg I would have to look that up.
@mınxomaτ Google says Turkish yay
I was just looking for an i without a dot.
The "T" is a Tau btw.
11:59 AM
@Zgarb maybe you could ask Dennis to put Jellyfish on TIO? at least that way some people could experiment with it in its current state.
@MartinEnder schoen
@LeakyNun I don't think that's the word you are looking for :D
@mınxomaτ why not?
@LeakyNun That would be an appropriate response if something has already happened and you approved. If it has not happened yet, you need the subjunctive ("Das wäre schön").
@mınxomaτ I was trying to say "nice answer" to his Retina answer in my challenge
12:11 PM
@LeakyNun That would probably be "gute Antwort/Lösung" or "tolle Antwort/Lösung". schön is very uncommon in this situation.
@mınxomaτ ah, dankeschoen
this chatroom is 'Foreign Languages & Code Golf'
@TùxCräftîñg j'm'en fous
@LeakyNun We get that you know a lot of languages, but at least where I'm coming from it's generally considered polite to use a language everyone "in the room" understands.
12:14 PM
OMG my question got spammed :D
@MartinEnder eh, alright
What if I'm not speaking to everyone else in the room?
I consider it respectful to use their native language to speak to them
these are not private conversations
and this is an English-speaking community
Well when I'm pinging you then I'm just talking to you
why would everyone else in the room need to know that I praised your answer?
it isn't rude to talk to people in English even if you could address them in their native language. but it's rude to have a conversation in a public room that only a handful can follow.
12:16 PM
you don't see me talking to Dennis, flawr and minxomat in German either
javascript only have 32-bit integers D:
@TùxCräftîñg not really
@TùxCräftîñg *53-bit integers
javascript has up to 53 bits IIRC
12:17 PM
and floats
javascript only has one number type
@LeakyNun Yeah, integers are auto-upgraded to floats, kinda like python
$ node
> 1 << 31
> 1 << 32
@MᴀʀsUʟᴛᴏʀ not in python
python has infinite integer precision
integers are not auto-upgrated to floats
integers are floats
that's why we only have 53 bits
@MᴀʀsUʟᴛᴏʀ ??
@LeakyNun Python has multiple number types
They have infinite precision integers, floats and normal integers IIRC
12:19 PM
@MᴀʀsUʟᴛᴏʀ alright
$ node
> 0xFF


@TùxCräftîñg Try (1<<30)*2
vs (1<<31)
The bitshift operation makes it as if it were 32 bits
> (1 << 30) * 2
> 1 << 31
For node, there's long in npm. But that's kinda inconvenient to use.
12:21 PM
@MᴀʀsUʟᴛᴏʀ yes I know
how to print a character without a newline in nodejs?
@TùxCräftîñg process.stdout.write
@mınxomaτ ?
@flawr I'm impressed. The image URL almost spells Mixalot.
12:31 PM
how i synchronously 'getch' in nodejs?
Halp how get stack length in golfscript
@MartinEnder thanks
@mınxomaτ There's everything in npm
A: Sandbox for Proposed Challenges

Kevin CruijssenThe world is like a Mirror: smile and it'll smile back code-golfstring Input: A string only containing the following characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.?! and two special characters (_ and |) Output: Mirror the text based on the position(s) of the _ a...

12:47 PM
Ah, I forgot how much of a headache disrupted transposition is XD
@MartinEnder Do you think you can golf this?
@MartinEnder I, for one, am interested in the other languages spoken here. However, my policy for foreign languages is the same for answers in programming languages I don't know: explanations please :D
@Sherlock9 Entonces debo traducir cada frase en ingles? / So I should translate every sentence to English?
@LeakyNun not shorter but -1= seems less weird than )\;
Eh, or "explanations when requested". Or just go with English. I'm just amused by the interjection of other languages all over chat for the past few days.
12:52 PM
@LeakyNun Hey BTW, on your python answer, I know you're using tabs instead of spaces, but SE displays it as four spaces, so it looks your byte count is higher. You should probably use spaces instead.
@MartinEnder I never knew -1 gets parsed as one token lol
@Sherlock9 but some people are not like you
some people find it rude
especially the two German speakers here
namely @MartinEnder and @mınxomaτ
@MᴀʀsUʟᴛᴏʀ WTF
@MartinEnder Do you think you can golf this answer?
no ideas (that are working) for the GolfScript answer atm
@LeakyNun Ah, sorry
12:58 PM
C:\Users\XXX>npm install everything
npm ERR! addLocal Could not install C:\Users\XXX\node_modules\everythin
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "everything"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! path C:\Users\XXX\node_modules\everything
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\XXX\n
@MᴀʀsUʟᴛᴏʀ ^
@Sherlock9 Why did you say sorry?
@MartinEnder alright thanks
@LeakyNun You need to npm init first, or npm install everything -g
@LeakyNun It's my go-to response when I might have made a faux pas
Warning: Not recommended, this can easily be a few GB
googles faux pas
@MᴀʀsUʟᴛᴏʀ alright, i ain't doing it then
> an embarrassing or tactless act or remark in a social situation.
> 31 downloads in the last month
they are crazy
                              Tumbolia Public License

    Copyright Joshua Holbrook, 2012

    Copying and distribution of this file, with or without modification, are
    permitted in any medium without royalty provided the copyright notice and
    this notice are preserved.


      0. opan saurce LOL
i want this license
1:04 PM
@LeakyNun I can be quite tactless, so my heuristic is to apologize and work from there
@TùxCräftîñg It's a clone of WTFPL... almost.
> 0. opan saurce LOL
have any of you windows users gotten the windows update today?
help, where's the best place to go to ask about ui design
@MᴀʀsUʟᴛᴏʀ UX.SE
1:10 PM
@LeakyNun ^
@MartinEnder nice, thank you
@TùxCräftîñg too inactive
@MᴀʀsUʟᴛᴏʀ there's also graphic design
Why is this room so quiet
1:14 PM
@LeakyNun there are very few loud chat rooms
@Doorknob The dark theme doesn't work fully on GraphicDesign.SE
@NathanMerrill you'd be surprised...
@MartinEnder do you by chance know of an algorithm that generates an random 2d grid with walls, but (as real estate puts it) with an open floor plan?
I'm not sure what you mean
example output?
there was one yesterday I had hoped was generated...let me find it
1:18 PM
@TùxCräftîñg relevant
@NathanMerrill so you just want the walls to be sparse?
See TimmyD's SO link
@MartinEnder yeah.
hm, interesting problem. I don't know anything off the top of my head.
I think I have a blog in my feed that posted a lot about map generation at some point though, let me check
> 2, the oddest prime
1:22 PM
oooh, I think I know of an algorithm that might work
I wouldn't create the 2x3 block you see
but you could take recursive division
and randomly select a portion of the maze that you actually place
it's this blog: weblog.jamisbuck.org/archives.html ... the guy is definitely into mazes, because he wrote an entire book about generating them. not sure if any of the blog posts covers what you're looking for though (and he blogs about a lot of other stuff as well)
I've read most of his stuff on mazes, but the above isn't really a maze
hm I guess
you could also have some sort of self-avoiding wall-growing algorithm or something
New challenge in 10 minutes.
(Spoiler: it is about sequence again)
@LeakyNun CMC: Guess which sequence exactly :P
1:37 PM
Maybe more minutes...
Sorry, Leaky, you're exempt from this CMC.
@zyabin101 go ahead, it's in OEIS
@LeakyNun Hint? :3
@zyabin101 not really
1:39 PM
So ur postin w/o sandboxin
@Poke Whoa, I was referenced. Neat. :D
@betseg Eh, you're advised to use the sandbox before posting your questions so that other people can comment and suggest before your challenge goes live
@TimmyD :D You helped me out that time and tux was running into a similar scenario. I think we determined that only a handful of langs (like Go) don't exhibit that behavior
1:57 PM
@orlp : Actually, there was a very successful Gypsy fortune-teller woman active some time ago in my area who could predict the gender in the first month of pregnancy very successfully out of Tarot cards or whatever. Her method: saying one thing and writing the opposite into her big book. If she guessed correctly, the parents were satisfied, otherwise if the parents came back to complain, she took her big book, looked up the date and names in front of the parents, at showed them the "correct" entry, claiming that the parents remembered it incorrectly. — vsz 8 hours ago

« first day (2012 days earlier)      last day (2811 days later) »