« first day (2238 days earlier)      last day (2616 days later) » 

4:00 AM
###-nl%l>>>>>14
#  2  #
# 0   #
# p   #
##?@  #
  p   %i
  1   #
    3 %i2
  i i v
2i*+-#?/
      i
Primacy Tester.
 
I don't get it but cool
this looks like flobnar
 
^^ pretty much sums up all the code you've posted thus far
and yes, also reminds me of Flobnar
Which is a very good thing in my mind
 
does it have a name yet?
 
It's been called TacO
 
TacO(nlog(n))
 
4:05 AM
Wasn't it TacIt?
 
TaciT <- Tac ciT <- Tac Tic
I knoe that's probably not what it's from, but it reminds me of that kind of thing
 
@MistahFiggins It's Taco + Tacit
 
Tac-It is the type of Language it is.
Tacit programming, also called point-free style, is a programming paradigm in which function definitions do not identify the arguments (or "points") on which they operate. Instead the definitions merely compose other functions, among which are combinators that manipulate the arguments. Tacit programming is of theoretical interest, because the strict use of composition results in programs that are well adapted for equational reasoning. It is also the natural style of certain programming languages, including APL and its derivatives, and concatenative languages such as Forth. Despite this base, the...
 
When a newbie comes to the site and gets all defensive about losing with java
 
4:08 AM
@WheatWizard My antichess is quite rusty, but I'd be up for it
 
@Doorknob Ok thanks!
 
Cool I can watch
 
@Doorknob Oh I have to capture If I can, I didn't know that
 
Right, otherwise the game would just go on forever.
 
would it?
 
4:11 AM
I'd imagine so.
 
You can move into check?
 
There is no check. The king isn't special anymore, it's just a regular piece.
 
Oh, and you should probably note that if one side has no moves left, they automatically win rather than it being stalemate.
 
ok
That was good fun
A good deal different than what I expected
 
4:17 AM
Yeah, variants are super fun
 
multiplayer variants are cool
 
would you mind another? now that I have the rules down
 
I could play anti-chess rn if you want
 
@DestructibleLemon Isn't all chess multiplayer?
@WheatWizard Sure! (Once this game ends, there'll be a rematch button.)
 
@MistahFiggins Ok
 
4:18 AM
we could totally do that
 
multi can also mean >2 in some contexts
 
@Doorknob You won
 
@WheatWizard Not yet, technically. :P
 
I thought I forfit
 
4:19 AM
My favourite chessesque game is martian chess
 
@DestructibleLemon wazzat?
 
See Jetan for Edgar Rice Burroughs' Martian chess. Martian Chess is an abstract strategy game for two to six players invented by Andrew Looney. It is played with Icehouse pieces on a chessboard. To play with a number of players other than two or four, a non-Euclidean surface can be tiled to produce a board of the required size, allowing up to six players. == Rules == === Initial setup === Each player starts with nine pieces: three small (pawns), three medium (drones), and three large (queens). The color of the pieces is irrelevant to the gameplay. A mix of colors is recommended. Players initially...
also someone made an ai
 
anyone here want to chess?
 
actual chess? Maybe.
 
sure
@Mendeleev I'm in
 
4:22 AM
 
Oops, I clicked a thing
 
@Mendeleev it's fine I forgot my lichess account
gotta reauth it :)
 
Sorry, I stole your invite
ok then
 
no problem :) I will lurk
 
4:40 AM
wait... I just forgot how the maze is oriented for a bot...
 
@ThomasWard Want to play chess?
 
sure
don't expect fast reply though
i'm working on fixing some things in SmokeDetector at the same time
 
OK
SmokeDetector is the spam detection AI?
 
@ThomasWard Sorry :/
 
so here is a really off topic question: has anyone ever programmed a texas instruments microprocessor? Perhaps one in the MSP430 or MSP432 line?
 
4:49 AM
@Mendeleev yep.
@MistahFiggins no problem :)
took a while to get the 'reset password' link from lichess :)
 
Yeah, Still need to Write up Strings List and Flow, but yes, Documentation.
 
@Mendeleev And i'm there
 
It's "Almost" turing complete.
 
4:51 AM
I wonder if Chess against an AI is turing complete
 
It can theoretically run any Halting program.
Also, Chess has finite memory, so it is not Turing Complete
 
Is there a term for "restricted Turing complete"?
 
Generally things aren't "Almost" turing complete.
 
anybody in here used C# a fair amount?
 
4:54 AM
wow lag
 
@NathanMerrill sigh whats a fair amount. I've been using it for a few weeks now.
 
@ГригорийПерельман pretty much.
Except garbage collection
 
I did fix that!
Just don't run your main loop on the main thread.
 
If you don't like the GC you can use another one.
There's 4 options
 
4:55 AM
@ГригорийПерельман 'scuse me? What 4 are these.
 
C# has better method dispatch when dealing with generics
which is why I'm asking
lets say you have three functions
foo<T>(T value){}
foo(IBar bar){}
 
foo(IBar2 bar){}
if you pass the function an object that implements both IBar and IBar2, what happens?
 
@ATaco This language is awesome!
 
Also, @ГригорийПерельман I'm still writing in Java 7..
And I am very thankful, I do try.
I made a language that can't implement a truth machine but can detect primes with only + - and repeat n times
 
4:57 AM
@NathanMerrill wait ur saying that IBar and IBar2 are parent classes
 
they are both interfaces
 
###-nl%l>>>>>14
#  2  #
# 0   #
# p   #
##?@  #
  p   %i
  1   #
    3 %i2
  i i v
2i*+-#?/
      i
 
and a class can implement both of them
 
@NathanMerrill oh
 
Look at that beautiful monstrosity.
 
4:58 AM
hence, the I :P
 
does this help:
5
Q: Non-strict multiple interface type parameter constraints?

bakasanExcuse me if this is a dupe, but I couldn't seem to get the right combo of keywords to filter down the various type constraint and generics questions out there (as there are a lot). I have two interfaces--let's call them IOnline and IOffline. They're closely related in that they describe near...

@ГригорийПерельман oh wait what is the point of the last one? Doesn't JVM have a max heap size of 4 GB anyway even for 64 bit versions
 
Pretty shure they changed that.
 
@ГригорийПерельман oh alright ill take ur word for it
 
I actually found a pretty good article about all of the nit-picky details:
 
@NathanMerrill yeah that'll answer ur question way beter then I can
 
@AshwinGupta I have! Actually fairly recently. Although it wasn't in that series. I don't remember the exact model but it was a TivaWare something or other
It was very fun! The first large-ish firmware project I've ever done
 
5:22 AM
@Mendeleev FYI I need to get a little bit of sleep, but I'll be happy to continue the game when I wake up.
sleep calls.
 
6:13 AM
I'm getting very confused trying to implement type unification for my ML compiler... I think I'm going to try asking on the CS stack.
I doubt it will go well though... I have very little experience with getting real questions answered on SE.
 
1
Q: Should stdout be ignored when the program is a function?

Brian McCutchonMy understanding is that, when stdout is used for output, stderr is ignored. Similarly, it would seem that, when a function's return value is used for output, stdout and stderr should be ignored. After all, this Racket code prints #<procedure>, and yet no one would complain about it: (lambda ...

 
6:34 AM
Luckily I have found the answer on Wikipedia right before posting the question.
 
Congwatulations!
 
7:44 AM
I just lost weeks of work by typing the wrong git command
(ノ°Д°)ノ︵ ┻━┻
 
8:10 AM
@ГригорийПерельман :^(
So, I have a weird quandary about truthy/falsey:
In Pip, 0 is falsey. [0], however, is truthy. But lists, by default, are output without delimiters, so outputting [0] just prints 0. If my program's output is technically [0], can I claim it's a truthy output even though it looks like 0 when it's actually printed?
 
Umm, what?
So, 0 is both truthy and falsy?
 
... I was afraid that would be the reaction. :^/
 
(ノ°Д°)ノ︵ ┻━┻
 
Hold your horses, I can explain. Similar situation in Python:
The integer 0 is falsey.
The string "0" is truthy.
If you print the integer 0, it shows up as 0.
If you print the string "0", it shows up as 0.
 
btw, I have a april fools idea
 
8:20 AM
See the distinction?
 
hmm
 
Same thing with Scalar 0 vs List [0] in Pip.
I guess the Python example seems clearer (IMO) that "0" should be regarded as truthy, even though its output is indistinguishable from something else that's falsey.
 
Well, idk about that but I think "0" should be regarded as falsy
 
In which language?
 
Some languages like C and Java
(but they suck definitely)
 
8:25 AM
if "0": print("truthy") prints truthy in Python. Pretty conclusive.
 
Do we need stack snippets in profiles
 
What use case are you thinking of?
 
Not much yet, just thought it would be useful for making things like profile utilities
btw, my profile has a close button
 
Generally, I consider Lists as Falsey if their length is 0, That applies to strings aswell. But a Char is falsey if it's 0.
 
hi @fəˈnɛtɪk
 
8:30 AM
@ATaco I mean, that varies by the language. I wasn't asking about what values count as truthy/falsey; I was just expressing some concern about a truthy value that, when printed, looks like a falsey value. But the more I keep talking, the more I'm convincing myself that it's not an issue.
 
All good, Was just sharing my 2 cents.
 
Is there a site for javascript permalinks where when you click the link it runs immediately
jsfiddle doesn't seem to do that
 
@NathanMerrill Yes a lot
 
Oh wait jsfiddle does that
 
0
Q: Simulate a two-body gravitational system in 2d

don brightImagine you have two objects in a two dimensional space. Each has a position determined by coordinates in the space. Their position is changed by their motion, which is caused by the Gravitation between them. Write a computer program to output the positions of the two objects as they change over...

 
8:50 AM
Do you guys use dwitter
This is my first one
It looks awesome for me
 
9:44 AM
I have a challenge idea
its like this
but the left one misses every minute and the right one misses every hour so it forms a clock
 
It's been a week since the last language was added to the polyglot chain challenge. Safe answer incoming?
 
The divisors one?
 
The polyglot one
 
10:30 AM
@MatthewRoh I'd say VTC as too similar
In langs with date libraries it's too easy, in langs without them it isn't very easy if it's at all possible
 
hi all
 
0
Q: This is the sort of challenge that bytes

Qwerp-DerpI need to stop thinking of punny names Your task is to create as many snippets (programs that have input and output built-in), functions or full programs as possible that sorts whatever your language's version of integer arrays is in ascending order, but for each program, you're only allowed to ...

 
 
1 hour later…
11:37 AM
I seem to remember a challenge to underline text. Anyone able to find it?
 
puts"<u>#gets" ?
 
 
2 hours later…
1:14 PM
0
A: Sandbox for Proposed Challenges

Kevin CruijssenQuestions Sandbox: What would be other suitable tags? This challenge sounded better in my head.. >.> Anyone has a different challenge idea, with the same movie vs real-life time bomb theme? It's about to blow!! code-golf Introduction: Ever seen a movie where a time-bomb is about to blow u...

 
Hooray. An answer!
 
?
 
I provided an answer to this question
 
1:32 PM
@fəˈnɛtɪk thank you
out of interest, is javascript just your favorite language?
it's not an obvious choice :)
 
It is one of the languages I am most familiar with. It is also easy to code online.
 
0
Q: Name for Code Golf winner

BlueChippyAppreciate this is subjective, and not really a code question, but it's for a Code Golf competition to raise money on Red Nose Day in the UK, so for "charridy, mate". I'll delete the question once answered :) I'm holding a department Code Golf competition as part of Red Nose Day and I want to c...

 
@NewMainPosts "You are the shortest" would work. And it has funny connotations.
 
Anonymous
@fəˈnɛtɪk A lot of languages are easy to code online thanks to TIO
4
 
I'm using repl.it so that I can save my work and return to it.
 
1:43 PM
@fəˈnɛtɪk You can save your work on TIO...
 
But then I need to save the hyperlink
 
Same with repl.it, unless you have an account.
 
Anonymous
That's not hard with bookmarks
 
Anonymous
It's also worth noting that Dennis is working on accounts
 
I do use TIO too. Mostly for writing things with Cardinal though.
 
1:47 PM
@Mego The hard part is server-side permalinks. With progressively larger storage requirements, I'm not sure TIO can afford it...
 
Anonymous
@Dennis I have some thoughts on that. I'll post them in the TIO room
 
@fəˈnɛtɪk sounds good
 
2:04 PM
@fəˈnɛtɪk does your code just die for n = 5?
I was thinking of a possible method
 
@mbomb007 This one is more about speed, but appreciate the idea. i.e. Fastest way of doing something.
 
@BlueChippy That's not code golf then. Code golf is about the shortest code.
 
It dies for n=5 because it tries to compare element by element 16k 5length arrays
 
@Dennis it is PPCG whose url is codegolf
@fəˈnɛtɪk ah ok.. I think a really simple method that might be interesting is to choose P and T at random and to just try adding the sequences greedily
 
Rod
@BlueChippy Fastest Gun in the West ?
 
2:17 PM
@Lembik Uh, fastest code challenges are... programming puzzles. >_>
 
@Dennis right
 
@BlueChippy gg, 2 bytes
 
but the URL is codegolf :)
not ppcg
I am just explaining the possible conflation of code golf with codegolf with PPCG
 
Point taken.
 
@Lembik The comparison is just to remove all the duplicates in the hamming distances.
 
2:20 PM
@Dennis Shortest steps to solve the problem in this case (fastest, most expedient), rather than pure bytes - but still golf IMHO as there is a "fewest x taken".
 
@fəˈnɛtɪk right.. so my greedy method avoids that problem
but may be terrible :)
 
@Lembik it would probably take a few years or so for 5
 
AS in golf - it's not how, its how many :)
 
By steps do you mean processor instructions or do you mean number of functions calls made.
 
Loosely no. of calls made - if not code golf, then code sports of some kind! :)
...but name of the winner is the important part - so they can have a trophy and lord it over their minions
...until the next one :)
 
2:28 PM
@Lembik Brute forcing your question for 5 would work if you felt like going through all 3.459*10^5067 possible subsets.
 
So, it'll just take a while.
 
Which makes it a kinda odd choice for a fastest code challenge. My code is already O(n^3n)
 
2:46 PM
4
Q: Pascal's Column Sums

AdmBorkBorkMost everyone here is familiar with Pascal's Triangle. It's formed by successive rows, where each element is the sum of its two upper-left and upper-right neighbors. Here are the first 5 rows (borrowed from Generate Pascal's triangle): 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 We're going to tak...

 
0
A: Sandbox for Proposed Challenges

Mr. XcoderCounter-Fibonacci Sequences code-golf fibonacci math sequence Given three numbers m,n and p, your task is to print a list/array of length p starting with m and n and each element after p represents the difference of the 2 numbers before it (Counter-Fibonacci Sequence) For this challenge you ca...

 
> Windows on the target machine was shut down. This may prevent event log collection.
Warning message from a monitoring system we have here.
Like, no duh?
 
lol
user image
3
 
3:02 PM
^ Pinned message "Chat messages are deleted […] to keep the room on topic."
 
yes
I'm fine if the message is deleted/moved
however, that's up to the ROs and mods, and I'm fairly certain my single picture isn't what the pinned message is referring to
 
You post pictures like this pretty much every single day
 
yea
and almost nobody but you complains, and they often get stars because people like them
 
That's because there is no objectivity here, not because you are on topic
 
"no objectivity"?
 
3:06 PM
this is a chatroom. there isn't a big conversation that's being interrupted. chill
10
 
@Fatalize The pinned message was because people were asking "Why was I kicked" after a bunch of mods came in and kicked people due to flags
 
This message reminds people of what the rules are here, it's not only addressed to those people
 
@fəˈnɛtɪk there was actually only 1 or 2 flags (mod flags), it was mostly the trashing
@Fatalize it's a notice for people after they have been kicked/had their messages trashed, it's not laying down rules
 
It's not laying them because they already exist
 
Okay can we stop having this conversations. A little noise is just fine as long as no real conversations are going on
 
3:10 PM
I don't really want to argue about the wording of the pinned message though, my point is: 1 picture doesn't really matter.
@DownChristopher pretty much yeah. (assuming the noise isn't offensive or whatnot, but that's not 'noise' anymore)
 
@Fatalize Yes that is the nice thing. I enjoy them
That moment when you realize you tried to .push text to a string... and it took 2 days to notice..
 
@DownChristopher where is that?
 
updates are not pushed yet
@fəˈnɛtɪk The challenge that you have the only answer to
 
@Fatalize Is your avatar the "Y" and "A" from the Brachylog logo?
 
@AdmBorkBork true.
 
3:20 PM
Neat.
 
@Fatalize hahahaha
 
(which are supposed to be logical and and logical or btw)
 
robot(fatalize).
 
I need codez: CMC: for a integer N>0 return all binary numbers that have the amount of digits <= n (no decimals)
Ex: input 2 return 00 01 10 11
 
lambda n:[bin(x)for x in range(2**n)]
 
3:25 PM
Thanks. I didn't know how to do that :P
I was stuck
 
0
Q: Counter-Fibonacci Sequences

Mr. XcoderGiven three numbers m,n and p, your task is to print a list/array of length p starting with m and n and each element after p represents the difference of the 2 numbers before it (Counter-Fibonacci Sequence) For this challenge you can either use a function to return or print the result or a full ...

 
Wasn't that just in the sandbox like 10 minutes ago?
 
That was fast
 
Been deleted from sandbox already too.
 
3:31 PM
Wow that is fast
var gabln=function(n)
{var a = [];
    for(var i = 0; i < (2^n); i++)
    {
        a.push(binary(i,(2^n)));
    }
    return a;
};
Anyone know why that does not push all binary numbers with a length of n?
 
Why not just use bitshifting and normal decimal numbers to get the hamming distances
 
Do what?
I am not a CS major :P
Sadly my knowledge of very useful thing in cs is about 0. Hence my bad code golf scores
 
Bitshifting. 2>>1=1, 1>>1=0, 1<<1=2... Not sure what it might be in the language you are using though
 
Processing.js
 
Woohoo, Mathematica 11.1 is out. How cool is this:
> Do arithmetic (with *, -, etc.) directly on 2D and 3D images
 
3:38 PM
wait what
 
> Space-filling and fractal region constructors such as HilbertCurve and SierpinskiMesh
 
Yeah you lost me with the arithmetic on images
 
there are built-ins ImageAdd and ImageMultiply for "blending" images together. You can now use the usual arithmetic operators instead.
 
@DownChristopher Another thing of note. You might not want to be trying the fastest code puzzles if you don't really understand CS.
 
@fəˈnɛtɪk Well I enjoy it and don't really care about winning
It also makes me learn a lot
I find the hard way to do things before we had bitshift (a topic I have read about before)
 
3:42 PM
Anyway, bitshifting for integers. 1 is 00000001 or something like that. when you use >> to bitshift right, it becomes 00000000, which is 0. if you bitshift left (<<) it becomes 00000010 which is 2.
 
@MartinEnder So they golfed some operators for you? Neat.
 
yep
Ohhh, there's a ModularInverse built-in now.
 
@fəˈnɛtɪk o
 
hahaha, we can finally save a byte on Reverse@Sort thanks to the built-in.... ReverseSort...
 
Wow one byte golf
 
3:46 PM
@MartinEnder I have a not upgradeable license ;-;
I'm stuck on 10.4
 
that's unfortunate :(
 
@ГригорийПерельман Why would you have mathmatica? You are young :P It is so $$$$
 
@BlueChippy Ah, right. Sorry. I'm so used to code-golf.
 
@DownChristopher It rendered those dollar signs as $\LaTeX$
 
@ГригорийПерельман But still
 
3:48 PM
user image
4
I guess this is a thing now
 
I got a discount, it only cost me ~75 dollars. It also came with Wolfram|Alpha Pro, which is nice.
 
@BlueChippy Maybe "Optimizer Miser"
 
@ГригорийПерельман only 75
 
how many items does tio show in an array?
 
The change from meta.codegolf to codegolf.meta is messing with my rep. I now have 20 more on the main site than on meta
 
3:57 PM
@ГригорийПерельман :O so now you can run goat detector? :D
 
@ETHproductions Wait, when did that happen?
 
About 9m ago, I think
 
Clever way of dealing with certificate issues btw.
 
They give out Mathematica at a lot of places. I have a copy of Mathematica 6 I got for free.
 
@ETHproductions does this mean we have to fix userscript?
OH GOD THE SANDBOX VIEWER
(does anyone still use that?)
 
3:59 PM
@ETHproductions Funny, Community didn't change the link on my challenge. I wonder if that's because I'm using the shortened user-tagged link, while Mr. Xcoder used the full link.
 

« first day (2238 days earlier)      last day (2616 days later) »