« first day (2852 days earlier)      last day (2288 days later) » 

00:00
also. i feel kinda bad from basically stealing Charcoal from DLosc >_>
hmm. what about Tribute to Stan Lee
Maybe examples of what Charcoal's really strong in and 'odder' challenges that it does pretty well
Strong in relating to challenge types, e.g. ASCII art or complex math, for clarification
Tribute would be good because it's one of the harder patterns to optimize
@Veskah but it may be too complex for a beginner
Definitely have it towards the bottom with a "Yo, hope you like zipping strings, aspiring padawan" note
@Veskah zipping strings?
Thought all the best answers used a zipped string to map it from what I remember
00:11
@Veskah example?
3
A: Tribute to Stan Lee

ScootsPHP, 286 212 209 bytes <?php foreach(str_split('000680018y4g04uj1s0iql6k0yz98u1xxu2v1xyhs71xyhs71xzt6v1xzt6v1y2ruv1y2ruv1y7pmv1y70cn121jq60jwdto018y5s013bwg',6)as $i)echo str_replace(0,' ',str_pad(base_convert($i,36,2),27,0,0))." "; Try it online!

Uses a base large string, technically not zipped
not charcoal though
11
A: Tribute to Stan Lee

NeilCharcoal, 71 68 67 bytes ←⁸↙P⁵↘←⁴↓P³↙F⁹⟦³⟧→P⁴↘P⁶↘‖OM←←¹⁷↘F⁹«P⁺³›ι³↑P⁴↗¿⁼ι²B⁸±²»↘→UO³¦¹⁴UMKA# Try it online! Link is to verbose version of code. Explanation: ←⁸↙P⁵↘←⁴↓P³↙F⁹⟦³⟧→P⁴↘P⁶ Output half of the circle. ↘‖OM←←¹⁷↘ Reflect it and draw in the bottom. F⁹«P⁺³›ι³↑P⁴↗¿⁼ι²B⁸±²» Draw the ...

@Downgoat hmm. actually idk what challenge would be not too easy and not too hard
Oh, guess I skimmed right over that one. Disregard me
codegolf.stackexchange.com/a/146505/78849 Might be in the sweet spot? Probably stuff that can be golfed to ~20-30
00:50
@Downgoat oh yeah. semistandard or standard js style
@ASCII-only semisyandadd
@Downgoat hmm. what should web interface to charcoal interpreter look like
i think it should have at least:
- input
- output
- flags
- togglable:
-- AST
-- help menu
-- on-screen keyboard
-- auto-replace
@ASCII-only why not just use TIO?
@Downgoat TIO doesn't have some of the features by default. ofc, TIO will still be the main method of running Charcoal
01:07
@ASCII-only do you have charcoal syntax highlight
@Downgoat super outdated sublime syntax, yes
@Downgoat pls update downgoatio :P
@ASCII-only nah will just merge into Axtell
speaking of Axtell there is been very little activity recently..
:(
i would try to help... if i could get it to work that is >_>
@ASCII-only we can try to get working on C9
since I have made easier to deploy
didn't someone say c9 was too small
01:19
too small?
free container too small
in languages with custom code pages, how do you go about actually typing the strange characters? i use vim, would i set up custom keymaps so i can type in normal ascii and have certain sequences converted to the custom unicode chars?
@Jonah yeah really it's up to you. generally though, different languages have different workarounds
do you guys know what the python thing is called that does project-local dependencies
01:26
@Downgoat project-local?
@ASCII-only how do you make a C9 run script
@Downgoat yeah
also should we go to axtell room?
@Downgoat pip?
@ASCII-only venv
not sure how to set that up
01:27
@ASCII-only, Just trying to get an idea of what the experienced people are doing? fwiw, i want to learn Jelly, Brachylog, and Husk, if that matters...
Canvas has the help menu you can add characters from, Charcoal and Actually have verbose mode, Charcoal also has an unfinished keyboard, Jelly's codepage can be entirely typed from US international keyboard (and I think from compose sequences too?) @Jonah
husk also has verbose mode, and brachylog is one of the languages in the language bar
@ASCII-only thanks. didn't know about the language bar, that's useful. are compose sequences an OS/keyboard level thing, or and editor level thing?
@Jonah OS level. for windows there's WinCompose, for other OSes it's built in (but may be disabled by default)
Ideally, I'm imagining something like a little HUD bar the appears, and i can search by keywords associated with each symbol, then select the one i mean, and it goes into my editor. it probably wouldn't be too hard to create a general version of that with vim and denite, but i don't want to reinvent the wheel. having keyword lookup while learning would be really helpful though.
oh, for vim specifically?
01:37
yeah.
hmmmmmmm. i don't think anything exists for vim rn
if i get into one of those langs i'll probably write one, then
the language bar is really helpful, checking that out now. would be nice to have the hints triggered by js so there's no pause before they appear.
@ASCII-only in what way was reflect mirror broken?
01:52
@Neil I copied the diagonal reflectmirror for the other diagonals but forgot to change them (especially the name of one variable, which was different for the three diagonals i copied to)
ah right, I didn't use diagonal reflections much
02:08
@Downgoat hmm. how to capitalize js files (what case to use)
@ASCII-only I name the JS file the same as the default export
so if export default class TransformationContext then file is TransformationContext.js
@Downgoat what if there is no default export
the way I structure projects is to always have default export
02:24
0
Q: Is it an arithmetico-geometric sequence?

lirtosiastAn arithmetico-geometric sequence is the elementwise product of an arithmetic sequence and a geometric sequence. For example, 1 -4 6 -32 is the product of the arithmetic sequence 1 2 3 4 and the geometric sequence 1 -2 4 -8. The nth term of an arithmetico-geometric sequence can be expressed as $...

@Downgoat halp i need help changing python docs-that-isn't-really-docs into js docs
03:02
@Downgoat :( glitch doesn't support bigint literals
@flawr "It’s up there for sure"
anyone know how to make jshint support bigint literals?
03:24
@FrownyFrog yes, it's hardcoded
thanks
03:43
anyone good with entering unprintable chars in code-golf.io?
more specifically, \r, which gets converted to \n on paste
03:57
@ASCII-only That's a browser limitation of textareas. Nothing you can do about it.
@Dennis It's CodeMirror though
The input field is still a textarea, and textareas cannot contain carriage returns, at least in the browsers I use.
anyway, :D
@Dennis true, but i was thinking CodeMirror might have handled it differently, especially since the display is not a textarea at all
But to display it, you would have to be able to read it. Even if you modify the contents of a textarea with JavaScript (which, in Chrome, allows you to insert null bytes), your CR and CR+LF linebreaks will become LF linebreaks.
04:25
Question: do you prefer to have the super() call be at beginning of initializer or at end
beginning
04:45
woohoo! I think I just got basic generics working in VSL
04:57
@Downgoat :D
05:30
@FrownyFrog btw, nice job on FizzBuzz
thanks :D
i have about 5 solutions all between 54 and 58 long
40 seems nigh impossible :p
 
2 hours later…
07:40
0
A: Sandbox for Proposed Challenges

Chas BrownLeast Weighted Path Let A be an m by n rectangular matrix of positive integers. We are interested in paths from the upper-left cell of A to the lower right cell; where each successive cell of the path is horizontally or vertically adjacent to the previous cell. Given any such path, we can take ...

07:53
I'm not familiar with code-golf.io, but I've had success on other sites using the browser console to set the program text to something containing a null byte.
08:10
@ASCII-only i've had success with the following approach:
capture the network traffic (for example with Fiddler)
modify it as necessary
resend the request
I have now been on PPCG for a whole year. Yay!
3
08:31
I saw this question in the sandbox, and I had an idea. Would it be preferable to standardize the test setup for fastest-code? Since the tag requires a specific machine to be defined, which is usually whatever computer the author of the question has, could we instead move this to AWS or something similar?
This would make it possible to test your solutions on your own if desired, on near identical hardware, and it would enable a wider range of challenges to be possible (not everyone has a 36-core rig, but for a few bucks it can be rented for a day). I understand that the main disadvantage of this is the cost aspect, but does it sound like a good idea otherwise, or at least an alternative to the current usage of the fastest-code tag?
@JoKing Congratulations! I'm at seven months now, although I've been swamped with work the last month.
@maxb I know there's been talk of a "TimeItOnline", but I don"t know if it's gone anywhere
Thanks!
08:48
@JoKing something like that could be a good idea, I just think it's important that challenges don't get restricted. for the challenge I linked, the computer specified was a Razer Blade, so in the challenge it says "in case you want to abuse the GPU". Some challenges benefit greatly from GPU processing, while other challenges are more suited for CPU. So a variable test rig could be needed to suit more challenges.
@JoKing seems like longer ;)
gratz though~
09:12
I imagine getting a consistent machine for timing will be somewhat expensive.
Most cloud services have you running in containers on machines with a bunch of other crap on them.
09:43
@Riker "not very down to earth"
09:53
@ASCII-only Try sending direct GET/POST request?
0
Q: Post other people's code?

AdámSome people are very good code golfers but for their own reasons do not want to join PPCG. Is it acceptable to post their solutions as answers to challenges? If at all acceptable, I would personally do so only as Community Wiki and only with full reference to the original author and their code. ...

 
2 hours later…
12:12
0
A: Sandbox for Proposed Challenges

nwellnhofASCII art H trees An H tree is a fractal tree structure that starts with a line. In each iteration, T branches are added to all endpoints. In this challenge, you have to create an ASCII representation of every second H tree level. The first level simply contains three hyphen-minus characters: ...

12:55
@ASCII-only the one who made the most languages, Conor O' Brien
 
1 hour later…
13:56
Oh by the way @EriktheOutgolfer, thought you might like to know that your "Range" lang design competition back in August got me fired and led to me moving to canada, which is the best thing I ever did.
So uh.. I guess thanks for that
uh... sorry I guess? definitely didn't intend to do that
nono it was a good thing, it was a terrible company
plus let's face it it was actually my fault for deciding to work on my entry for the competition in the office during work hours :P
do you have a better job now?
I have a much better job now
plus turns out programmers get paid like 50% more in Canada than the UK, despite this city's cost of living being roughly the same as the city I was in back in England, so that's awesome too
SO yeah, unfortunate and stressful chain of events that led to the best life change I've ever made :D
Also I will still get around to making my Range language some day, even though the competition ended
actually, that's a challenge by itself
14:01
what is?
the range LDC
oh it got posted as a challenge?
no, it's a challenge in the literal meaning of the word
oh right, gotcha
don't feel like you need to "beat" Conor's Tidy, for example :P
14:02
Oh of course, my language wasn't good by any means
it was just a comical interpretation of "Range" given the context
the language was based around constructing ascii art mountains using slashes, and the amount of whitespace under the mountain determined the operation
ah, mountain ranges? :-)
yep!
interesting...
can the mountains overlap too?
Sort of, the mountain on the right takes precidence, which allows you to use "overlapping" to more finely control the size of mountains
assuming completely hidden mountains don't exist, and the peaks are the highest visible point if they can't be derived otherwise
ah, you mean like
14:07
Like this for example. That's the only supported overlapping of mountains, and in that case, the left mountain is considered to have a size of 3, whilst the right has a size of 12
or no sorry the left one has a size of 2
and provided it lines up, the internal slashes aren't required. So this works too, for the same result
the spaces inside the mountains are the size?
Yep
I need to read through the chat archives around august 14th-16th to find where I was talking about the language, so I can remember all the opcodes I had :P
so one can imagine the right mountain being in front
yes
haha, you can easily see the moment I lost my job in chat. I was talking about my lexer being wrong, then there's a gap then I asked adam if dyalog is hiring
14:32
oh speaking of which
@Adám Sorry I disappeared for a couple months, but I'm absolutely still interested in learning APL, just had to put it on the backburner for a while while I settled in over the pond
14:46
0
Q: Arbitrary Randomness

SkidsdevRandomness is fun. Challenges with no point are fun. Write a function that, given integer input n, will output a set (unordered, unique) of exactly n random integers between 1 and n^2 (inclusive) such that the sum of all integers is equal to n^2 Randomness does not have to be uniform, provided ...

@KevinCruijssen ^ :)
15:02
@Skidsdev Posted an answer ;)
Thanks for the heads up, appriciated
@KevinCruijssen I also updated the post to allow outputting all valid sets, in case that helps your bytecount at all
Hmm actually.. outputting all valid sets kind of defeats the "random" element of the challenge
so on second thought I think I'll keep it to a set
sorry for the back and forth there :P
15:18
@BetaDecay when're we getting more awesome KotHs? :D
@Skidsdev beta hasn't been around for a while, as seen by no ability to ping them
aww :(
hope they're doing okay and come back soon, they posted a couple of awesome KotHs back to back in august
15:32
ooh I'm close to 6k rep :D
 
1 hour later…
16:43
I'm an idiot, I'm working on a nodejs answer for my arbitrary randomness challenge and I did n**n instead of n*n, then didn't understand why n=3 was getting 27 as the limit
@Skidsdev I have half an hour now.
@Adám now doesn't work for me unfortunately. On weekdays I'm at work until 9:30 GMT
@Skidsdev 9:30 PM GMT?
correct
@Skidsdev OK, I may very well have time tonight after that. Do your work — you don't want to loose it… Ping you later!
16:57
haha, don't worry I won't be losing this job. I've learned my lesson about PPCG at work (Still do it, but don't let it affect actual work) :P
Unfortunately compiling isn't an excuse for me, since APL is usually interpreted. Fortunately, I get paid to golf!
haha exactly, compiling isn't an excuse for me, since I use PHP, but docker containers and composer can take a while sometimes
17:44
Today in shitty machine learning startups, this company claims to predict IQ, personality, and violent tendencies by applying deep learning to facial features and bone structure. That's phrenology. You just made the ML equivalent of a racist uncle.
great
18:01
@quartata really? xD
0
Q: Finding the period of a recurring element in an array

garageàtroisGiven an array A of integers, there exists at least one positive integer p such that A[i] == A[j] for all i and j for which i % p == j % p == 0. Find the smallest p. Examples: Input array: [1, _, 1_, 1, _, 1, _, 1]. Output: 2 Input array: [1, _, _, 1, _, _, 1, _, _]. Output: 3. Input array: [1...

18:30
Faception ... I get that they're going for an Inception-style name, but the way they have their logo it looks like Face-ption, and I don't know how to pronounce "ption"
0
Q: Arbitrary Randomness (Speed edition)

SkidsdevGiven integer n, calculate a set of n random unique integers in range 1..n^2 (inclusive) such that the sum of the set is equal to n^2 Random, in this case, means uniformly random between valid outputs. Each valid output for a given n must have a uniform chance of being generated. For example, n...

@KevinCruijssen ^ :)
19:31
@LuisfelipeDejesusMunoz people do really dumb horrid things with ML
there was a similarly stupid thing for gender a while back, except the input features were like name and birthday and country and stuff like that (not photos)
@Skidsdev Will see if I have some time tomorrow :) Have a nice evening (or morning/afternoon/night depending on where you live)!
@AdmBorkBork as "Fassityon"?
@AdmBorkBork yeah I cant pronounce it either lol
@lirtosiast this is the best i can manage
@quartata uh isn't predicting gender from that trivial?
@lirtosiast from someones name?
not really...
19:34
Or at least name and country
@lirtosiast I read it as "Face - sep - shun"
@AdmBorkBork but then thatd be faceception
with two "ce"s
Right
I think that's what they're going for, though
What % of names are gender-neutral? Like 4%?
Just like a tech company I encountered a while ago -- Qubole (pronounced "cue ball"), and I was like "No, that is not how that's pronounced."
19:35
So you get 98%, and gender gets fuzzy after that anyway
@lirtosiast of just european names, id estimate a little bit higher than that
of names from other regions, way more
and its an inherently flawed concept anyways but
Looks like they get 94%. Probably misestimated because I'm from America and know people who wish their birth names were gender neutral
even if you discount the erasure inherent to the concept, 6% inaccuracy is unacceptable for something where you could get 100% accuracy by adding a line to your form
and not spend money on this thing
Indeed
i would say of the two the racist skull-measuring one is worse though
19:48
...can you move (not copy) a folder inside itself?
In essence, make it so you have a recursive folder structure that isn't addressable from root?
This sounds like a thing that shouldn't be possible
I feel like it could be possible though. Like, if you create a symlink or something
You want a hard link
Not a symlink
that could do it i think
sorry, yeah, a hard link
19:54
in fact wasnt there an xkcd
oh hmmm...it appears hard links to folders aren't allowed
lame
i think theres a way to use mount to do it
oooh, so you mount /one/two to /three
With a bind mount yeah
then you can mv /one/two /three
19:59
i dunno what thatll do but it will certainly be funny
inb4 black hole erupts consuming the Earth
it will at minimum be impossible to delete
so
at least if it does what i expect
Two unrelated conversations that have their stars line up in a funny manner.
interesting, those are the exact colors of the stars I'm seeing too...
Online Encylopedia of Natural Number Sequences
20:06
@EriktheOutgolfer there are only 3 of you.
maybe only 2
maybe only 1
...? you saying that AdmBorkBork photoshopped his?
nope, I'm seeing those numbers rn :P
/r/SuddenlySolipsism
r/subsifellfor
20:13
ok i know i posted some of these already but theyre just way too good
its just a perfect fit every time
0
Q: Is it permitted for a submission to terminate merely with probability 1?

ngmThe question is in the title. I'm interested in submissions that terminate with probability 1 but have unbounded worst case running times. This is related to the question Do programs have to terminate?, but that question is specifically about submissions that definitely do not terminate. For ...

"ngm"
:thinking:
20:34
I'd say yes, that's allowed. Given that we allow answers that have running times longer than heat death of the universe, I don't see a problem.
we already have rule that says it must output the correct answer with probability 1 basically
so no different
it's a subtle difference (like the "b") but I think it's needlessly nit-picky
21:30
@Skidsdev Finished work?
22:04
0
A: Sandbox for Proposed Challenges

lirtosiastThe Hungry Moose code-golf Inspiration. Moose face harsh conditions during the winter. According to one source: Their winter foods are lower quality than what they eat in summer and provides less energy, consequently, they need to eat more of it. During harsh winters, having both extreme c...

22:19
0
A: Sandbox for Proposed Challenges

ngmFind the best K year period to have invested A stock index is a way of measuring the overall performance of the stock prices of a group of companies (which may change from time to time). An example from the US is called the S&P 500. An index fund is an investment that grow at the same rate as th...

22:34
Vim golf CMC: Change the line <VirtualHost 172.16.1.22:80> to <VirtualHost 192.168.10.33:80> in as few keystrokes as possible. The cursor starts at the beginning of the line.
I've got two solutions in 19 strokes, but they both seem clunky and long.
22:49
@DLosc can we turn insert on and off, and does taht cont as a keystroke?
also can we copy and paste stuff (using shift+arrows)?
@Adám Sorry I finished a little late today, and I need to cook food and help the gf with her schoolwork. I should be free earlier thursday and friday this week though, if you'll be around
@flawr Yes to all of the above. :) i or a counts as one keystroke, and <esc> as a second keystroke.
@Skidsdev Np. Thursday will be fine. I'm not around Friday nights.
this does seem like an interesting metric compared to the levenstein distance
@DLosc what, that isn't even enough to traverse the whole string =/
@Adám works for me! I'll make sure to be available :)
23:00
@DLosc I think I got 18, but I'm not sure how universal these commands are
@flawr Just discovered I can golf one of my solutions to 18 strokes, too. What are you using that's unusual?
@DLosc ah no, I have 19:
>(crtl+>)> del 9 >>>> 8 >> 0 > del del 3 3
crtl + > skips a word
Ooh, interesting!
what do yours look like?
19 strokes: f7r9f6a8\f1a0\ll2r3
18 strokes: f7vt:c92.168.10.33
23:05
uh I don't understand those at all
are you using a special editor?
Vim
oh well I'm not familiar with that:)
I just tried it in notepad++
That's pretty impressive to get 19 strokes, then!
@flawr del del 3 3ins 3 3.
@Adám oh nice:)
23:10
@DLosc You can do ct: instead of vt:c
Ah, nice.
@flawr >>>>>>(ctrl+>)
@Adám doesn't seem to work
@DLosc oh, I compleltely ignored the "vim golf " part
@Adám what editor are you using?
@flawr NP++
what os?
23:12
@flawr Ctrl+> should skip until after 16.
@flawr NP++ is Win only
@Adám oh lol:)
@Adám doesn't seem to work on my computer =/
@flawr But this should work in any standard Windows edit field that supports overtype mode.
@Adám If I use the windows notepad, crtl+> skips to the end of the line, and MS word treads a point (.) as one word, but recognizes contiguous digits as words
@DLosc Shortest I have is 20<crtl-A>3w5s8.10.33, but I'm not very good at vim golf
maybe it is the language settings?
23:19
@flawr Possibly. I'm on en-us, so:
@DLosc Windows start menu, 16: → Ctrl+→ → Del 9 → → Ctrl+→ 8 → → 0 → Ins 2 2
2
Must be first time Windows start menu wins a code golf — or anything!
Actually, you can probably have 20<crtl-A>3wR8.10.33 for some rules of vim golf
@H.PWiz And Windows loses.
ngn
ngn
23:51
@H.PWiz that could be shorter with more <C-a>
20<C-a>l152<C-a>t211<C-a>
damn, same byte count as your second one :(

« first day (2852 days earlier)      last day (2288 days later) »