« first day (2440 days earlier)      last day (2396 days later) » 

8:00 PM
@SEJPM When the Irish rebelled against the potatoes, they starved... Potatoes are the secret overlords!
2
Potatoes are not innocent.
Ok, I'll stop now. :-)
 
CMC: Return/print every positive integer
I have 3 bytes for any Jellyers out there :P
 
for(){(++$i)}
 
[1..]
 
will eventually overflow [double]
 
(Haskell, 5 bytes)
 
8:06 PM
@cairdcoinheringaahing SOGL, 4 bytes: 1[TI
 
Husk, 1 byte, N
 
(Yes, PowerShell promotes from [int] to [double] ... no, I don't know why)
 
@cairdcoinheringaahing Brain-flak classic, 14 bytes: (()){([{}]())}
 
@cairdcoinheringaahing Does Python raise MemoryError count?
It assumes that the computer has no available memory to store further integers.
That's an environmental condition.
 
I'm interested in learning a stack-based language, or something otherwise mind-expanding. I've been learning J for the past year, on and off, and have been pleasantly blown away by just how different it is as a paradigm. Can someone recommend another language that might offer a similar experience? (for context, I already know J, Haskell, ruby, Java, C#, etc). thanks.
 
8:17 PM
-6
Q: Now i want to ask user to enter an array of 6 numbers If number exceeds a value of 6 numbers they should get an error message

C Richinclude"stdafx.h" include include using namespace std; int main() { char choice; do { int data[6], n, temp, i, j; printf("Enter number of terms: "); scanf_s("%d", &n); printf("Enter elements: "); /*for (data > 6, data < 6) { printf("Error: Enter SIX numbers "); }*/ for (i = 0; i<n; ...

 
@Jonah Prolog and/or Brachylog?
(brachylog is a golfing language related to prolog)
 
bracylog, yeah a logic language is definitely something i'd be interested in. any reason you'd vote for that over one of the stack based langs?
 
Ah I just throught because you were looking for languages that use some different approaches.
Also MATL (which is related to MATLAB) very good for matrix based stuff
this is a classical stack based language
with some neat features, but I don't think the stack based languages are exceptionally interesting
 
@Jonah If you know J, try Jelly. It's like a better version of J :P
@flawr I'd say brainflak is interesting
@wizzwizz4 As long as it can provably output all integers, given enough time/memory, it should be fine
 
@cairdcoinheringaahing :)
Although that comes from the nesting-nature of the commands more than the stack-based-ness
 
8:24 PM
@cairdcoinheringaahing Aw...
 
@cairdcoinheringaahing, yeah, jelly looks cool and clearly dominates most of the golf competitions. but "better version of J" means, perhaps, similar enough to J so as to not maximize mind expansion.
 
oh god, this site is hilarious: hammerprinciple.com/therighttool/items/j/haskell
(you can pick any other pair of languages)
 
@flawr TIL that J is a low level and high level language
 
@DJMcMayhem these are just opinions weighted against eachother!
 
@flawr -1 doesn't have PowerShell
 
8:31 PM
out of curiosity, is there a golf-appropriate version of haskell? basically, haskell with short names?
 
@Jonah husk?
I justk now that some haskellers are working on it, but I have no experience with it yet.
 
The githup repo is here: github.com/barbuz/Husk
 
@flawr, thanks
 
@flawr I wanted to troll by comparing Go to Rust, but then I saw it doesn't even list Rust. rekt
 
It seems it is not very up to date. If you look at the browser comparision, they only have firefox 3.x
 
8:35 PM
Isn't Firefox up to like version 50-something?
 
56
 
Husk is actually more than just Haskell with short function names. One of its major strengths is the type inferencer, which tries to find a fitting type among a number of possible types for some of the functions.
 
@Laikoni, i assume this goes far beyond haskell's builtin type inference?
 
lol I just finished meeting Adam
 
Really? Nice.
 
8:42 PM
@Jonah Yes, because one symbol can stand for multiple functions with different types. E.g. stands for drop (with type TNum -> [x] -> [x]), but also a flipped version of drop ([x] -> TNum -> [x]) and a function which drops the longest prefix for which a predicate yields true (type (Concrete y) => (x -> y) -> [x] -> [x], all values of concrete types are either truthy or falsy).
 
@Laikoni Interesting. I should check it out.
 
@LeakyNun irl? Why?
 
@Laikoni What is Concrete?
 
As far as I know a type class for everything which is not a function type.
 
Thanks, it is difficult to google
 
8:48 PM
It's explained in the wiki: github.com/barbuz/Husk/wiki/Types
 
9:09 PM
I needed help wth referencing a position in memory, but nobody gave me any pointers
 
@ATaco I giggled at that one, I'll be honest
 
@ATaco So in total you got null pointer?
 
@LeakyNun Hey you two actually met. Awesome! What was it like meeting a PPCGer IRL?
 
9:42 PM
@cairdcoinheringaahing we found out we pronounce "TIO" and "Pyth" differently
@DJMcMayhem we discovered that we live in the same city and we figured that we'll meet
 
Oh. I thought you live in Hong Kong?
 
@DJMcMayhem I live in London now for Imperial
 
Ah
I've always wanted to meet a PPCG-er IRL
I was in Seattle a few weeks ago, so I thought about trying to meet Alex, but I haven't talked with him in so long I figured that might have been weird. Plus I wasn't sure how to contact him
 
@orlp oh right I forgot the salt and pepper lol
 
@LeakyNun what is "Imperial"?
 
9:48 PM
@flawr Imperial College London
as stated in my bio
 
@DJMcMayhem Stand in front of his house with a boombox.
 
Wonderful idea
 
@LeakyNun I'm intrigued now. How do you pronounce them?
 
I either say Tee Eye Oh, or Try it Online
 
10:00 PM
How about Pyth?
I say Pie-Th
 
Same
 
@cairdcoinheringaahing like python without on?
 
I can't think of an other way to pronounce it.
 
I say tee eye oh but adam says that he asked Dennis and Dennis says tee-oh
I say Pie-th where he says pith
 
10:02 PM
According to issacg, its Pith
 
What about RProgN? :P
 
@ATaco Are-progen
 
@cairdcoinheringaahing with a hard G or with a soft G?
 
I usually put a gap between the prog and en.
 
@DJMcMayhem G As in gun
There were quite a few questions on how ;# is pronounced
 
10:04 PM
G as in Gif
Semicolon-Hash
 
@ATaco That's what I said
:P
 
Someone must be going through old TNB posts and clicking links I shared, because I am getting "Announcer" badges for old posts.
I've gotten one a week for the last few weeks
or something like that
 
Also, if you haven't already, don't forget to celebrate that TIO now supports Mathematica
 
Don't forget to celebrate that in the USA, today is national Taco Day!
 
How did I not know! This is very important!
 
10:06 PM
@ATaco :O
 
It seems as though the wrong users posted those messages
 
No way!
 
I didn't know either, but I had a taco for lunch
Tacos are one of the two things I eat.
 
What exactly are tacos?
 
A Mexican snack food; a small tortilla with some rice, beans, cheese, diced vegetables (usually tomatoes and lettuce, as served in the United States) and salsa.
 
10:07 PM
To me, I eat them with soft taco shells. So they are basically burritos
@ATaco Or they can be ground beef or chicken instead of rice and beans.
 
That's just the Wiktionary definition.
 
ah k
 
And also the definition I use on a-ta.co
 
Any mayonnaise? :P
 
@ATaco Probably because you live in Australia.
@cairdcoinheringaahing No.
 
10:08 PM
Oh god, not this again.
 
@cairdcoinheringaahing mayo? No. Sometimes sour cream or quac tho
 
quac?
 
I can't spell guac. I'll just leave it, lol
 
Sep 21 at 21:32, by Mego
Yes let's not let John get away with just casually admitting his blasphemy of putting mayo in tacos
2
 
quackamolie
 
10:15 PM
2 hours ago, by caird coinheringaahing
CMC: Return/print every positive integer
I challenge people here to do it with 24 bytes in Python 3
because the trivial approach takes 25 bytes
but I discovered a 24-byte approach
 
@LeakyNun I might be misunderstanding, but why can't I i=1;while 1:print i;i+=1
wxcept the first emicolon is a newline
 
that works but that's 25
 
it’s 25 bytes
dem
 
:c I tried recursive but it got me 30 bytes
 
@LeakyNun oh, python3
doih
 
10:24 PM
I tried a generator func but I can't python.
 
:c I got 27 using a method I thought would be shorter :( sadness: i=0 \ while print(i)or 1:i+=1 (where the backslash is a newline)
 
someone is getting there
 
(I tried)
 
@LeakyNun I challenge you to do it in Jelly :P
 
you need another way to make it truthy
@cairdcoinheringaahing what, in 24 bytes?
 
10:26 PM
(oh also we all fail because i=0 will print a non-positive integer)
 
@LeakyNun Yep. Exactly 24 bytes, but it must not work any subset of characters are removed :P
 
@cairdcoinheringaahing 5 bytes: ‘Ṅ$1¿
 
If anyone can improve the generative approch
 
wait has to be exactly 24?
:c
 
10:27 PM
@HyperNeutrino 3
 
3 bytes (if doing shortest)
 
oh :c
I think you can do ‘ÐĿ
 
you cant
 
oh :(
 
it will never print
 
10:29 PM
@LeakyNun No, but it will return
 
‘Ṅß?
 
good
 
@HyperNeutrino Yeah, that's what I was thinking of
 
RProgN 2, 3 bytes #pé
 
Also, the ? shouldn't be there
Anyway, my internet is cutting out so I'm going to have to say o/
 
10:31 PM
@LeakyNun Assuming it's not recursion since it would hit the 1000 recursion limit quick
 
@cairdcoinheringaahing that's a question mark not a ternary
and o/
 
@HelkaHomba it isnt and it doesnt matter
 
I'm rather proud there's a 3 byte solution to this in RProgN2
 
29 bytes: i=1 \ while~bool(print(i)):i+=1
 
Is 0 not a positive integer?
 
10:33 PM
@ATaco is 0 greater than 0?
 
Drinking game CMC: you are in a round table of n people. you start by saying 1, and the next person says 2, etc. If you say a multiple of 7 (e.g. 28) or a number containing 7 (e.g. 27), you drink print the number out. Until eternity.
 
@HyperNeutrino That's a bit condesending.
 
@ATaco Sorry. I didn't mean any offense :P
 
@ATaco it certainly isn't descending
ba-dum-tss
 
ಠ_ಠ bad puns are bad
 
10:35 PM
:'(
 
:P
puns are bad by default so one can't really be bad at making puns xD
 
I'll announce my answer when my clock hits midnight
23:35
 
Why doesn't python have ++ :(
 
@ATaco because life's a challenge and that's the point
 
Point of this challenge, yes.
But not necessarily a good idea overall.
 
10:38 PM
life would be boring if there were no challenge
 
life is boring anyway
 
@HyperNeutrino then challenge urself :P
 
:P
back to 27 byter: i=1 \ while not print(i):i+=1
 
you're almost there
 
i=1
while[print(i)]:i+=1
@LeakyNun ^
 
10:40 PM
bingo
 
oh snap
nice +1
 
Oh snap indeed.
 
@Maltysen Neat. {} would work too
 
@ATaco Is ARBLE your latest language?
 
@HelkaHomba o yeah
 
10:42 PM
Unfortunately print(i),: doesn't work :P
 
That's because print is, intentionally so, not proto-expression capable.
 
ASCII's inventors should have included more types of brackets.
 
9 mins ago, by Leaky Nun
Drinking game CMC: you are in a round table of n people. you start by saying 1, and the next person says 2, etc. If you say a multiple of 7 (e.g. 28) or a number containing 7 (e.g. 27), you drink print the number out. Until eternity.
no love for my cmc :c
 
@LeakyNun Sorry, I'm legally not allowed to participate
 
@cairdcoinheringaahing lol
 
10:44 PM
Also, I can get the Python answer to 23 bytes, without using any types of bracket
 
@HyperNeutrino Tuples and function calls are a pain for new Python learners I imagine.
 
@cairdcoinheringaahing woah
 
@cairdcoinheringaahing In Python 3? (Parens are a type of bracket!)
 
@ATaco print?
 
@HelkaHomba Who said anything about Python 3? :P
 
10:46 PM
3 mins ago, by ATaco
That's because print is, intentionally so, not proto-expression capable.
 
@HelkaHomba indeed :P
 
@cairdcoinheringaahing Leaky did
 
@ATaco floop?
recursive functions?
 
floop needs all it's arguments, meaning it's just a few bytes more.
And I've not tried recursion.
 
Wonder if Python 1 has golf improvements
 
10:48 PM
no list slicing in Python 1 lol
 
eww
 
Python 1 is an abomination. Even GoL is easier to code in
Also, how do you pronounce GoL?
 
game-of-life
 
@HelkaHomba <insert look of disapproval> As in the acronym
 
"game-of-life" is how I said it in my head as I read the acronym
 
10:57 PM
I pronounce it "goal" although "g o l" is probably more correct
 
I pronounce it similarly to "goal" though the "oa" is actually closer to "o" than normal "oa"
(maybe "gaul"?)
 
"goll"? rhymes with "holl" in holler (now that I think about it this is how I pronounce it)
 
yeah
BORK ALERT 🚨 BORK ALERT 🚨 BORK ALERT huge bug detected in Proton
 
D:
What happened
 
ERMAHGERD I fixed the bug with a +1
Essentially any expression in {...} with less than 4 individual parsed components would be automatically assumed to be a dict.
so I needed to repeat the list of the required type pattern one more time D:
 
11:03 PM
@HyperNeutrino Would have been more dramatic if you discovered a bug in actual protons.
 
Did you fix 4/3/2 being parsed as having a regex in the middle
 
nice
 
actually the issue was (4)/3/(2) which I fixed yesterday
 
11:04 PM
Is /foo/ just re.compile('foo')
 
0
Q: Optimize Jotto Start

WebsterJotto is a word guessing game similar to mastermind. Each person chooses a secret word and the other person tries to guess their secret word. The game is fun and I recommend you try it. This challenge is to come up with an optimum starting set of guessing words. Jotto Words: 5 letters each no ...

 
@HyperNeutrino You should implement gsub
 
Yes very exciting
 
11:06 PM
@Pavel what is that ._. I have limited regex everything knowledge
 
@HyperNeutrino I was literally just about to ask @Dennis how that happened
 
Thanks to the kind people at Wolfram, there now https://tio.run/#mathematica.
 
@HyperNeutrino 'abcd'.gsub(/b/, 'e') yields aecd
 
yup that's how I found out :P
 
11:07 PM
Basically regex replace all
 
I feel like I should share this with my CS club because they were just talking about Mathematica/MAPLE licenses today but at the same time I feel like spreading the word to too many people :P
@Pavel I swear I implemented that but lemme check
 
I just tried and it didn't work
 
markdown derp :P
 
11:09 PM
@HyperNeutrino Should be able to take a lambda taking a match as a paramter instead of a constant replacement string.
 
Wonder if there's a way to outsource Mathematica on RasPi to a more powerful PC
 
@HelkaHomba VM :P
 
@HyperNeutrino 0/10 the argument to the lambda should already be the match after the .group() call
 
oh hm
well there are cases where that would be desirable but other cases where it's better to have the match object
let me implement both
what should I name the one with the .group() pre-called? gsub?
 
11:16 PM
CMC: Can your language output a 2 digit prime using exactly 1 lowercase a-z, 1 uppercase A-Z, 1 digit 0-9, 1 symbol (non alphanumeric printable ASCII). e.g. if 9&aW prints 31 that's valid.
Actually any 2+ digit primes are fine
 
@HyperNeutrino Yeah, although the way that gsub is normally called is "string".gsub(/regex/, 'replacement')
 
@Pavel what is sub
 
I think it's built into python?
 
@Pavel what is
 
re.compile('foo').sub
 
11:19 PM
Then what is gsub????
 
A proton language feature
 
global sub?
 
Well technically the built-in sub is also a gsub. But it's called differently.
 
gsub isn't a thing yet but the way I have it is /regex/.(g)sub(replacement/lambda, string)
 
but how is it different from sub
 
11:20 PM
What is this (g)sub
 
(sub=substitute, not submarine btw)
 
it means it's either sub or gsub
essentially common (English) way of writing optional things (like this)
 
Lua has gsub :D
 
@HelkaHomba :O gsub is not global submarine?
@HyperNeutrino are they the same thing...
 
Actually I might make fsub do first substitution, sub be regular Python, and gsub be grouped substitution (that is, the lambda receives the .group() called value)
@ASCII-only yeah but ^
 
11:21 PM
Makes sense.
 
in talk.tryitonline.net, 2 mins ago, by Dennis
@quartata They (specifically, Jesús Hernández from Wolfram Research) reached out via email.
 
(Please make them operate on string in the form "string".gsub(/regex/, 'replacement'))
 
@Dennis Nifty. Now what other proprietary languages is TIO missing...
 
@Dennis I wonder if Jesus is a code golfer.
5
 
If TIO ever manages LabView I'll be impressed
 
11:24 PM
@Pavel I'll support both ways
 
CMC: Estimate what percentage of CMC's go unanswered. ;)
 
so what's the difference between TIO mathematica and real mathematica?
 
There isn't really one?
 
Nothing.
 
They way it's called, I guess.
 
11:27 PM
You've got full access to the Wolfram Language there.
 
@HelkaHomba print$0xD is probably the closest Haskell can get, but $0xD is not a valid expression on its own.
 
wolframscript isn't the usual way to call mathematica code
 
but how come mathematica just made their product free
 
They didn't
 
@Laikoni I had the same :)
 
11:28 PM
Wolfram Language is already free :P
 
They gave Dennis a key
 
@Pavel and allowed him to publish the key online essentially essentially making the language free
 
If you download wolframscript it tries to find an existing Mathematica installation.
 
Can TIO make graphs and animations and everything?
 
Also you can't export the notebook, scripts can only run for a minute
No W|A integration
Wolfram Cloud was already free a while back
@LeakyNun It's the same reason tryapl.org is free even though Dyalog requires a license.
 
11:30 PM
limited functionality?
is that why it's not really free
 
As Helka mentioned, no graphs or animations.
 
Like, python is on TIO, but you still use the offline python you have installed if you're actually making a project, right? Same thing.
 
Either way, Martin is the only human capable of getting everything out of Mathematica.
So normal installers are still missing a lot.
 
Regardless, Wolfram explicitly reached out to Dennis to put it on TIO, so they clearly want it out there.
 
11:34 PM
Or Martin = Steve Wolfram ;)
 
@H.PWiz I found a valid Haskell solution.
 
Really
 
@HelkaHomba I know Steve is short for Steven, but can you also abbreviate Stephen to Steven?
 
@Laikoni What is it?
 
11:35 PM
@Pavel Probably some do. But I guess not Wolfy
 
@H.PWiz 0xD;
 
Nice, I wouldn't have thought of that.
 
And it should even count as a function submission, after this slowly emerging meta consensus: codegolf.meta.stackexchange.com/questions/12924/…
 
Darn it, just when I thought I had an idea how to do the Exp->Mul->Sum challenge in Proton...
 
One of my intentions with ARBLE is to make as many people as possible assume I'm trying to take input as variables.
4
 
11:41 PM
what does the name mean?
 
A Rather Brief Lua Extension.
 
@alephalpha Hey, your Twitter background image (cat) is much better than your avatar. Just so you know :-P
 
@ATaco You succeeded in trolling me like that yesterday :P
 
@ATaco I was thinking of doing the same thing today after seeing a snippet. Can't wait to see how it turns out!
 
I have two different challenge ideas, and can't decide on which one to write up. Can you guys help?
 
11:50 PM
Haskell is a really weird language, code can be made super succinct if done correctly
 
@cairdcoinheringaahing Sure, give us what you've got.
 
@Qwerp-Derp I definitely find Haskell super rewarding when It comes to codegolf
 
1) Count the degrees of separation between you outgolfing Dennis. For example, if Hyper outgolfed Dennis on one challenge in Jelly, then I outgolfed Hyper on a different challenge in Jelly, I would be separated by a score of 2 (Idea #2 on its way)
 
@HelkaHomba Husk, Ic'5, yields 53
 
nice
 
11:53 PM
@FunkyComputerMan In case you haven't seen it yet: chat.stackexchange.com/rooms/66515/of-monads-and-men
 
Like this for example (Haskell's program for solving the 8 queens problem, taken from their official site):
queens :: Int -> [[Int]]
queens n = filter test (generate n)
    where generate 0      = [[]]
          generate k      = [q : qs | q <- [1..n], qs <- generate (k-1)]
          test []         = True
          test (q:qs)     = isSafe q qs && test qs
          isSafe   try qs = not (try `elem` qs || sameDiag try qs)
          sameDiag try qs = any (\(colDist,q) -> abs (try - q) == colDist) $ zip [1..] qs
Like what the heck is that
 
@Laikoni Thanks! I will be there
 
Anyone here up for a game of spyfall?
 
It would probably take something like 50-60 lines to implement properly in something like Python, this is just ridiculous
@micsthepick What's spyfall?
 
@Qwerp-Derp And it is yet far from being golfed.
 
@Laikoni That's true
 
@micsthepick I'd do codenames
 
@micsthepick Looks fun, I'm guessing there's an online version somewhere?
 
I need to add much better list support to ARBLE.
 
11:56 PM
There is, just right here in chat.stackexchange.com/rooms/59652/spyfall
 
That took me way to long to write
 
@cairdcoinheringaahing I'm definitely -1 on any question. I think they are super boring at this point
 
@FunkyComputerMan do you know what Erdos numbers are? The challenge would be basically a PPCG version of that
 
Yeah I do
 
Coconut looks pretty cool for functional programming :D
 
11:59 PM
Damn, now I really could go for a taco.
 
@FunkyComputerMan Just out of curiosity, do you have an Erdos number?
 
I'm pretty sure that has already been asked as a question and I don't think it would be better with stack exchange api
@cairdcoinheringaahing I'm not published so no
 

« first day (2440 days earlier)      last day (2396 days later) »