« first day (1908 days earlier)      last day (3232 days later) » 

11:00
@feersum I'm 100% certain that this will always converge on the correct value if you start of with a really big radius (e.g. the sum of all segments)
only thing I'm not certain of is if it has other roots at wrong values for small radii
so I'm not certain if my binary search is broken :(
11:15
Morning
@Xanderhall o/
@zyabin101 owo
@Xanderhall ^w^
@Askirkela o/
Hello, golfers o/
@Askirkela eww wtf man
hands above the table
11:20
Like this? (╯°□°)╯︵ ┻━┻
Correct
Let's put that poor table back on feet (ヘ・_・)ヘ┳━┳
@Askirkela NEVER! (╯°□°)╯︵ ┻━┻
@Katenkyo ಠ_ಠ
11:50
1
A: Josephus problem with three inputs

Sherlock9Haskell, 48 47 43 bytes (n!k)q=1+foldl(mod.(k+))(mod(k-1)q)[q+1..n] Based on a Haskell algorithm on the Rosetta Code page of the Josephus function with two inputs. Golfing suggestions are welcome. Edit: My thanks to nimi for help with golfing via suggesting a pointfree version. (n?k)q=1+n*...

Got any golfing tips for either algorithm in this Haskell answer?
@QPaysTaxes I don't know Scala, but you should mention that traits that extend classes merely force anything using the trait to eqtend that class as well
@QPaysTaxes Dog has to extend Spaceship
12:10
@Sherlock9 Morning
@QPaysTaxes a concept is basically just an interface :)
You must mean C++1z ... x was solved for and has the value of B.
@Xanderhall Evening
If it's not in C++11 then how is it C++11?
@QPaysTaxes many languages make it so that interfaces don't have to be declared (like Go)
12:20
> I accidentally a word
2
Woo hoo, got the Necromancer badge overnight (for codegolf.stackexchange.com/a/78086/668) — I didn’t realize the challenge was that old
12:39
D:
Why use C++?
@QPaysTaxes How hard is it to use C++ to create an interpreted language?
Also, is it dynamic?
@QPaysTaxes Exactly.
If it's dynamic, your biggest issue may be memory allocation for types
This sounds unpleasant. Is it supposed to be fun?
@QPaysTaxes Yes, but it's developed my a multi-person team.
And it took a very long time.
Basically, memory allocation is a big problem
You're better off using JS/Java/.NET/Python
*PyPy
It's correct that you can't use templates for types that are unknown at compile time.
If you want it to be fast and easy to write, use PyPy as your backend
@QPaysTaxes Java isn't completely dynamic though. It will certainly be easier to implement a dynamic language than C++ as it runs in a VM already.
Cheddar uses JS and Pytek uses Python, and .NET has good dynamic language support as well
Because Ruby is super dynamic or something
@QPaysTaxes I should start doing stuff in Ruby, just I'm not sure what to do
@QPaysTaxes Why not use Ruby then?
@Everyone halp what do i do in ruby
@QPaysTaxes wat
@QPaysTaxes Also, don't you need to get to class?
@QPaysTaxes Oh, a server?
@QPaysTaxes docs.SE?
13:00
Say I have an infinite list, and I want to take the nth item of the list, then if it fits a condition, return it, else n=(nth item) and take that nth item from the list and repeat
Is there a function like reduce or something that can do that? I'm having trouble formulating the idea to ask SE
Haskell
Alright, I'll try it, I don't expect it to be very golfy though
Ah, that's okay. Half of this is just messing around with Haskell to learn it, anyway
Thanks Q
@QPaysTaxes Is rails really the best idea?
@QPaysTaxes Using GH pages for that would be a lot easier IMO
@QPaysTaxes Otherwise waiting for docs.codegolf.stackexchange.com
@QPaysTaxes But I don't do stuff unless I have motivation, and TIO already handles interpreting.
13:18
@quartata I'M SO MUCH SORRY ಥ_ಥ
I finally merged your UGL pull request
@NathanMerrill Is it just for elegance? Or is it a new lang?
@NathanMerrill I think you should have assertion Positive(Int i) { i > 0 } then Int{Positive}
Or Positive:Int
also, your adaptations are the wrong way around IMO
@QPaysTaxes Yeah, but I never manage to learn anything when I'm not serious
@MarsUltor no, because the right side needs to use stuff from the left side
a(param) -> b(param.a, param.b)
@NathanMerrill I mean the declatations
put(item, count) -> addItem(item, quantity=count) <- why quantity=count?
@MarsUltor Positive is actually declared with Integer (or can be declared elsewhere). I'll include it next time
@MarsUltor because if I didn't include the count, it would choose the default option, which is 1
the quantity= is required because its an option
@NathanMerrill Why not just count?
oh
options are unordered
The thing is, if Rails is sufficiently different to Ruby, I'm probably better off learning Ruby directly anyway
@QPaysTaxes Yeah, but that's like node vs JS
or, say Qt/GTK to C++
13:33
@QPaysTaxes whitespace will either be required or disallowed.
I haven't decided which yet
@NathanMerrill D:
@NathanMerrill Required
You really don't want an operator chain mess
@MarsUltor oh, no whitespace would simply be for parameters
similar to how python PEP 8 defines
@NathanMerrill ?
func(a=4 + 1)
@NathanMerrill which language is it in?
monking
i have state testing today. i hate state testing. i hate life.
If my nine-year-old can handle it, I'm fairly certain you can. Quit complaining :P
14:32
Should we add the Ackermann function into the catalogue?
18
Q: The Ackermann function

algorithmsharkThe Ackermann function is notable for being the one of the simplest examples of a total, computable function that isn't primitive recursive. We will use the definition of A(m,n) taking in two nonnegative integers where A(0,n) = n+1 A(m,0) = A(m-1,1) A(m,n) = A(m-1,A(m,n-1)) You may implement ...

no. Catalogue really doesn't mean anything
well, i would need the non-competing tag for every answer then
that's fine
14:50
llocal
@Sherlock9 Unsigned?
@Sherlock9 nvm
0
Q: Make a better score than my students!

OltarusFor the last day of the semester, I decided to have some fun with my students and I showed them Code Golf... poor guys, they're addicted now. The goal was to compete against the other students to solve those problems with what would be very usual rules for you. They had to use C# (because it's t...

@Sherlock9 You left out the definition for Negative
\o/ SSS works!
@Downgoat :D
14:55
@Downgoat \o/ Link?
@MarsUltor Which message are you replying to?
Now I need to add moons, collisions and some other stuff...
@Sherlock9 plus, you have Int.get() = 0 (equality) and items[item] = quantity (assignment) using =
@Sherlock9 take 2
@Downgoat BTW, operators done :D Now just scopes left until I catch up
@MarsUltor are you talking to me?
14:57
\o/
plus catching argument parsing bugs
@MarsUltor they are argument parsing bugs??
@NathanMerrill wait what whoops
@Downgoat for me, yes
Last time I checked, Cheddar still had them too
@MarsUltor you're right, I need to figure out if I want to do assignment differently or equality differently
@NathanMerrill either equal is == or assignment is := probably?
14:58
@MarsUltor Sorry, I may just be tired, but I presume you're talking about my Haskell posts?
right, that's the standard
@Sherlock9 Sorry, wrong person
Oh, alright
That was confusing
@NathanMerrill Maybe quantity -> items[item]
@Downgoat wat you messed up Expression grammars
@MarsUltor no, I fixed them
15:02
@Downgoat the c9 one looks kinda broken?
@MarsUltor what makes you say that?
or maybe just overly complicated
oh, I had to make it like that because the previous one was broken
I wrote a comment explaining the changes I think
@AlexA. You can now get sandals for your avocados btw
@HelkaHomba wat.
15:07
@MartinBüttner No one complained about my Cramming The Gramming (re codegolf.stackexchange.com/questions/78109/…)
I think I forgot to go back through existing challenges and close them after the consensus was reached.
I did complain about it in the meta post. ;)
> I'd also put Calvin's Hobbies' Cramming The Gramming - Twelve Task Tweet in this category since the optimal solution is still to golf each subtasks individually and then simply count how many of them fit into the byte limit 140.
Would the new question be on topic if it were rewritten as a ?
even then, one question per question please
10
@HelkaHomba you didn't by any chance downvote the meta post without even reading it, did you? ;)
anyway, to the reopen voter on the new challenge, please make a competing answer to the meta post, instead of just voting against community consensus
15:12
I read some :P
It's just too bad for Oltarus. How was he supposed to know - read every single meta post?
of course not
we need like a [close-reason] tag on meta
but not knowing that a certain type of content is deemed off-topic doesn't make it on-topic
@HelkaHomba that exists, but I think it's specifically for the fixed close reason slots
Well a [challenge-writer-warning] tag then. We always link people to the sandbox and forbidden loopholes but not everyone will use or benefit from the sandbox and loopholes are just for answers. A list of meta questions for new challenge writers to bear in mind would be handy
I think that's what the faq should theoretically be?
15:26
yeah we could definitely make more use of the FAQ
16:00
Welp, work got shut down
sweet
@QPaysTaxes Calvin never left
@QPaysTaxes Who?
0
A: Should multi-part challenges be allowed?

Helka HombaMulti-part challenges aren't ideal, but shouldn't be forbidden To be fair, "multi-part" is a relative term. A challenge that asks for one program that takes the square root of the cosine of a number is not all that different from a multi-part challenge that asks for one program that takes the co...

(@MartinBüttner double poke ^)
@QPaysTaxes Being confusing is more fun :)
@QPaysTaxes Not so nice, because the bus routes are stopping due to weather. I get the bus home.
16:18
Oh yeah, I was thinking of posting meta.codegolf.stackexchange.com/a/8967/31625
Any last thoughts before I do?
Looks good to me.
cat
cat
Could someone tell me; was my edit here comprehensive enough for this to be reopened? (also, please let me know of any loopholes or things I forgot!) codegolf.stackexchange.com/questions/22/…
@QPaysTaxes :P
seriously though
k
@QPaysTaxes That's no moon!
-0 overall change
must... not... allow... it... to... disappear
It went away, are you happy? :P
anyone who doesn't have a plan for the next 2 hours yet? 101 Hack April starts in 2 minutes: hackerrank.com/101hack36 (maybe I could have posted that earlier...)
its doorknobs post
about not abusing stars
16:30
Nov 12 '15 at 22:26, by Doorknob
okay seriously stop abusing stars
3
cat
cat
@zyabin101 NO
@QPaysTaxes Related.
@QPaysTaxes Also Related.
hey @Winny!
hides in barrel
cat
cat
@zyabin101 BARRELS
@QPaysTaxes actually, they aren't
@QPaysTaxes You can help with Unipants' Golfing Language, a language I designed. Mars Ultor wrote an interpreter, and Kenny Lau golfed things in UGL. But doubt it'll count as writing a programming language.
16:39
llama@llama:...code/rust/babble$ cr -e 'ONEXPSTENXPRBLKXPRPUTSUBENDWHL'; echo
     Running `target/debug/babble -e ONEXPSTENXPRBLKXPRPUTSUBENDWHL`
10987654321
while loops are implemented in babble!
1
Q: Winnable Solitaire Mancala Boards

FryAmTheEggmanMancala is the name of a family of board games that usually involve a series of cups filled with beads that the players manipulate. This challenge will use a specific rule set for a solitaire variant of the game. The board consists of a "basket" at one end, followed by an infinite number of cups...

@Doorknob ONE XPS TEN XPR BLK XPR PUT SUB END WHL
What do XPS and XPR do?
@cat Looks cool, so what exactly are you doing?
17:07
@Doorknob Do you have a repo yet?
cat
cat
17:24
@flawr Helping the other members of my team to compete with robot! (no competitions today) I'll take some pictures for you guys :D
cat
cat
1 hour ago, by cat
Could someone tell me; was my edit here comprehensive enough for this to be reopened? (also, please let me know of any loopholes or things I forgot!) http://codegolf.stackexchange.com/questions/22/the-luhn-algorithm-for-verifying-‌​credit-card-numbers-etc
@flawr I've not seen any of those but I voted for Bolt 'cause that's the one I'd pick. :P
cat
cat
I picked all of them :P
I cant see any results =(
17:28
There's one vote for Bolt and one vote for Elysium.
Though it also says 3 votes total. o.O
@flawr I haven't seen Bolt, but I liked the other two.
@Downgoat what is the purpose of the mass if it doesnt generate a gravity ?
I recommend Elysium. I was very pleasantly surprised by it.
@MartinBüttner I created a Retina program to convert printable ASCII to their code points. It's long, though I did golf it a bit. I included newlines, but not tabs. Here's the Python script I used to generate it.
@Agawa001 He only checks planets against the sun, currently.
17:32
Hopefully a built-in will be added in the next revision, because this is ridiculous! :D
(At least, I'm pretty sure that's the case.)
0
Q: Write a regex to match all the winners of the Academy Award for Best Picture but no unsuccessful nominees

EMBLEMAll the films that have ever won the Academy Award for Best Picture: "wings", "the broadway melody", "all quiet on the western front", "cimarron", "grand hotel", "cavalcade", "it happened one night", "mutiny on the bounty", "the great ziegfeld", "the life of emile zola", "you can't take it with ...

0
A: Winnable Solitaire Mancala Boards

orlpPython, 42 bytes m=lambda n,i=2:n and[n%i]+m(n-n%i,i+1)or[]

pretty small :P
It's a really nice answer :)
17:37
@FryAmTheEggman is it the same as what petertaylor used?
Not quite, he iterated upwards moving the beads into the first empty cup
for some reason petertaylor can't be pinged in chat :(
I guess he hasn't been in for a while? Dunno how that works.
Yeah, Peter hasn't been in here for quite a while.
It's still on my deleted sandbox post, I can get it for you if you want
17:40
guess it's because I post this image too often

« first day (1908 days earlier)      last day (3232 days later) »