« first day (2303 days earlier)      last day (2523 days later) » 

12:10 PM
Just do order of Execution in order of initilization.
Because two whens, even if constructed by the same piece of code, cannot be constructed at the same time.
 
I believe the question here is what should happen if two whens are triggered by the same event, and the first calls another when
 
I might try and write a reference implementation.
 
Now that I write that out, though, it seems to make sense to trigger the new when after the second one finishes
 
The only difficulty, is that I've never written an actual not-post-fix language.
Unless you count Jalapeño, which uses a complex notation.
 
I could probably write a babel plugin for this, it might be quite painful though
Creating a whole new (simple) language might be easier
 
12:19 PM
@ETHproductions it isn't very painful
just use proxy magic and you're pretty much done
 
Maybe not a generic plugin, but adding an advanced event system with its own syntax is my concern
Is it even possible to change the syntax with a plugin?
 
@ETHproductions yeah
How do you think babel even transpiles JS haha
 
oh, well duh :P
I don't know how to do that though
 
also what do you think babel plugins do if not change syntax >_>
@ETHproductions yeah I can try to make a prototype later when I'm not too busy with Charcoal
 
ok, cool
 
12:24 PM
@ETHproductions later could mean like up to a week from now though
 
12:50 PM
CMC: Drop every nth character in a string
 
Going back to the when thing, I think the best way to do it would just be to test the condition any time the end of an expression is reached
 
@ETHproductions No IMO proxy is best
proxy global/whatever parent scope object
 
?
I'm not sure how that relates
 
When any variable the when condition is changed (test proxy for dependent variable), then execute the things
So instead of checking 100x too much it only checks when the specific variable is accessed
 
Yes, that's how I thought of it too at first, but users are probably going to be mad if they can only test variables and not e.g. function results
 
12:54 PM
@ASCII-only Ruby, 32 bytes: ->s,n{s.gsub /(.{#{n-1}})./,'\1'}
 
@ETHproductions Hmm true
 
@ASCII-only Dyalog APL, 12 bytes: {⍵/⍨0≠⍺|⍳⍴⍵}
 
well then I'd just check if a function is in the thing then disable fast mode?
 
could be a nice challenge on main
 
:| help how do i do the CMC performantly in Python
 
12:56 PM
In Python, fast mode is always disabled.
 
Okx
@ASCII-only 05AB1E, 9 bytes vyN²%i\}J
 
In PHP the language itself is free but you have to pay extra for reasonable performance.
2
 
@ASCII-only Japt, 8 bytes: òV ®¯Jì
 
Okx
@ETHproductions Doesn't seem to work on 'hello' and 2
 
Dang-nabbit, 10 bytes then: òV ®¯V-1ì
Oh wait, 9: òV´ ®¯Vì
split into runs of length V, map each Z to Z.slice(0,V-1), join
 
1:02 PM
my solution creates a range 1 to the length of the string, then selects those numbers in the range that are not divisible by the number and takes those from the string
 
Okx
Mine loops through each char, and if the iteration number is a multiple of the input, deletes the char
 
I'm convinced there is a shorter way to do mine
 
Aha! 6 bytes!
Bascially replaces each char X with X.slice(0,(index+1)%input)
 
1:18 PM
yay my implementation works
 
@ASCII-only Jelly, 6 bytes: Jḟm¥ị⁸
it's so excruciating when you need that last at the end
 
@EriktheOutgolfer haha
 
also my code could be considered...abnormal
wait where did I get that word it's not ^ in my dictionary lol
 
oh really, what does cat /usr/share/dict/words | grep "abnormal" output? :P
 
that's not a golfer's dictionary
I couldn't get the joke
 
Okx
1:25 PM
cat /user/share/dict/words/golfing | grep "abnormal"
 
that's not a thing at all either
it's not in any computer file by default
 
Okx
Introducing Golfing OS
 
you only get a command line, and every command is an abbreviation? No, wait, that's Linux.
 
Can anyone find the spec on a;;b;;c (some kind of range) on the Wolfram Language docs?
 
1:44 PM
@JanDvorak wait I think every command is a char instead. 1114112 commands can be named this way and of course there's always a way to type them, as well as aliases
 
Aliases? What a waste.
 
I mean that otherwise the OS would be impossible to use...of course we can also release a Dennis version without those aliases
 
Okx
Golfing OS v0.1 - Changelog: Added Dennis
 
ofc command 255 should be continuation command i.e. it must contain whatever commands don't fit in the 0-254 and 256-1114111
 
@Okx Usage: dennis LANGUAGE CODE. Golfs code for you.
 
1:48 PM
@ASCII-only that's not what I meant
I meant making an OS in two flavours, normal and Dennis
 
@EriktheOutgolfer I mean Okx said he added Dennis to Golfing OS
 
I think he meant he added Dennis flavour on the same repo
also you don't invoke an OS like that
 
Okx
Goling OS v0.2 - Changelog: Added time travel. Adds upcoming challenges as 1-byte solutions
 
> Goling
also you can only have 256 1-byte solutions
 
@ASCII-only Try Head[a;;b] to see what the name of it is.
 
1:50 PM
@EriktheOutgolfer Yeah it changes so the 256 chars map to the next 256 challenges
 
Okx
@EriktheOutgolfer Goling is shorter than golfing.
 
@feersum True, thanks
 
@Okx goling just doesn't work though nobody will have an idea of what you mean if they don't think of typos
 
Okx
Also, we can make multiple versions of the same language complete with 256 different commands
 
Okx
1:52 PM
Wait, could we actually do that in practice?
 
yes but it would be non-competing ofc
 
@Okx As long as there is an implementation yes
@Downgoat hi
 
> A language is defined by its implementation.
 
Okx
Like, make a bot that commits to github 1 byte aliases for all possible jelly programs, all day and night
 
-- unknown
@Okx that couldn't be done in practice sorry
 
Okx
1:53 PM
but... but...
 
there are infinite possible Jelly programs
 
still use TIO Nexus?
in talk.tryitonline.net, 14 hours ago, by Dennis
@EriktheOutgolfer You should be able to, yes. I'm using it instead of Nexus.
 
Okx
tryitonline.net still links to TIO Nexus
it links to tio.run/nexus, but tio.run works too
 
it actually links to tio.run too it's updated to reflect
I think previously it had a warning now it doesn't
 
2:04 PM
my steam account was half-successfully hacked
in the sense that they know my email and password, but steam blocked the login attempt anyway
 
Use a stronger password next time
256 bits or so at least
 
better solution: keePass
 
@JanDvorak I haven't tried it. Lemme see...
 
there's also LastPass
 
2:11 PM
Do you guys think that this is an invalid way of taking input:
1
A: Remove character at specified index

gdahlm(s)ed - 6 bytes 1-based indexing. s/.//n Explanation: s # substitute command. /./ # match any single char. // # substitution is empty. n # Only match the 'n'th occurrence in a line.

 
thanks @JanDvorak @EriktheOutgolfer
 
the OP appears to assume that the input is a part of the code
 
That wouldn't be okay
but I'm not sure if that's what he does.
 
That is what he does, unfortunately.
 
@JanDvorak can't I view all entries?
 
2:15 PM
@LeakyNun what do you mean?
 
@JanDvorak I have 6 categories
in the keepass
 
view -> show entries of subgroups
 
@ASCII-only hello
 
@Downgoat helicopter?
 
@JanDvorak thanks
 
Okx
2:18 PM
@KritixiLithos I don't think it's valid, as you're only allowed to take input via modification to the code if the language can't take any other form of input.
 
@ASCII-only sorry I think @TuxCopter hijacked my autocorrect :P
 
Okx
nope not any more :P
 
@JanDvorak how compatible is keepass with, you know, using something on both my phone and my pc?
 
You can move the keystore by hand
 
2:33 PM
 
@LeakyNun I think the recommended approach is to have the keystore on a shared drive that both instances then access.
 
@JanDvorak phone...
 
I don't know how capable the android version is, but you could shuffle your SD card around
 
Okx
@Downgoat Are you... are you...
 
@ais523 FWIW all of the flags I've raised in the last month have been handled in less 24 hours
I think it probably depends on what you're flagging
as Dennis said VLQ or NAA flags might not get seen by mods
 
2:43 PM
@Okx a goat? Yes
 
Okx
o
eh well your tio proxy is nicer than dennis'
 
:(
 
Okx
Well, it does look nice
 
It's also missing most of the features, but whatever.
 
Okx
That doesn't matter. It looks nice.
 
2:46 PM
.
 
I see...
 
uh...
 
Web 2.0 in a nutshell
2
 
No offence, but you sound like a typical iPhone user
 
Okx
xD and also ew apple
 
2:47 PM
I just want Syntax Highlighting.
 
> just
 
I never said it was an easy thing to implement.
 
@Downgoat The Charcoal program does not seem to stop running
Also I cannot stop a program
 
1
A: Largest Number Printable

BlackCapHaskell, 100 bytes, score ≈ 10↑↑65503 f!x|x<' '=f|q<-(!pred x),r<-(q$q f)[x]=foldl(.)f[f|_<-r,_<-r] main=print$(\x->x++x)!'�'$[pred ':'] The special character (2^16 - 3 ascii) counts as 2 bytes. pred ':' is equal to '9'.

 
@Okx you hurt Dennis...OK Downgoat's at least has syntax highlighting but true golfers don't need that stuff
 
2:51 PM
Could someone check if this answer works the way it should? If so, I'm going to put it on the leaderboard
 
I got a stack overflow
but I can increase the stack size one moment
 
@DJMcMayhem is there a way to run V in vim?
i.e. typing all the shortcuts and seeing the immediate results
 
@Riker I source the V mappings in my .vimrc
So yeah, I can see the results of the shortcuts
 
can you gist your vimrc?
nvm
>_>
 
Ikr, code links are invisible
 
2:56 PM
man that program is evil
 
@KritixiLithos if you have Taco userscripts
 
I killed it two minutes ago and I still don't think all the memory has been reclaimed
 
@quartata It's not supposed to run... its theoretical
 
well fair
so I guess you mean you want me to read the Haskell not run it
 
That is, does it terminate as it should eventually?
Yeah
 
2:58 PM
@KritixiLithos nah this is just my chatception one
doorknob's
woah, I mentioned his name and he appeared :p
 
It should also be the case that f(n+1) > 2^f(n)
 
@Riker it's magic!
 
no it's an eldritch horror but yea I guess that works
 
I forgot how nasty golfed Haskell can be
 
Question: is a C enum by default compiled to ascending integers (0, 1, 2)?
 
3:00 PM
xD
 
@Downgoat undefined
 
@Downgoat Yes
 
the question of the day
which troll to trust
 
@feersum shouldn't rely on it though, I'm pretty sure it's not part of the spec
 
./s
 
3:00 PM
I'm not a troll...
 
Well, I'm pretty sure it is defined.
 
@quartata so if I try to call C function that takes enum arg from ABI, do you have any suggestion on how to do that?
specifically curl_easy_setopt, taking a CURLOPT
 
congrats on getting married @StewieGriffin
 
@Downgoat Just put an i32.
Compiled C code has no type information.
So you can put the wrong thing as long as it's the right size.
Well, that's not strictly true.
 
Yeah, and the only place where you could get what the original enum looks like is the header
 
3:04 PM
There's probably some ABI where you could go wrong by putting a struct the same size as an int, or something.
 
or have the user redefine it
 
@quartata ping me if you've deduced whether or not the code theoretically terminates and f(n+1) > 2^f(n).
 
@feersum in LLVM to get a function pointer. do you know if I just do a bitcast void * () @f to i8*?
 
@Downgoat You can
But why?
 
@feersum curl accept function ptr as arg
@quartata no way I'm writing header parser D:
 
Okx
3:18 PM
I'm not sure this is actually Dennis: codegolf.stackexchange.com/a/121774/26600
 
@Okx -1 not serious golf attempt
 
@Downgoat actually different algo, I think it counts as serious
 
@EriktheOutgolfer sorry was joke
 
@Downgoat Pytek is going to do it so
but you know there's tools for it right
 
3:34 PM
@quartata not for JS
 
That's not a huge deal though
JS has FFIs right
 
The header parsing shouldn't be done at the runtime of your compiler anyway.
If it's something provided as a standard library.
You wouldn't want to get different results because of some weird configuration of the user's C headers.
 
I intend to make Pytek bundle any necessary tag files with a gadget if you ask it too
 
English please?
 
A gadget is like a JAR
So if you have @includec stdio.h libc.so
which means all the symbols defined in stdio.h from libc.so
then when you make a JAR out of it it'll bring over all the data about the symbols it needs so it doesn't need stdio.h anymore
This is when it's interpreted
 
3:47 PM
ರ_ರ
 
@AAlex I think it's
ಠ_ಠ
 
Ah yes now I remember why I wanted to stay out of this room
8
 
@quartata the ಠ_ಠ or the stars?
 
both
 
3:50 PM
@programmer5000 The arabic
 
I was trying to come up with a golfed answer for the factorial challenge and found this interesting return pattern: Try it online!
 
@betseg how does it do that? What math is used?
(it looks interesting)
 
@quartata Well, I've fixed one of those
 
@DJMcMayhem Why not the other?
 
@programmer5000 returns the latest assignment, which is incrementing m
 
3:54 PM
@betseg oh
 
@quartata has El'Endia stopped working on Pytek? it seems so
 
because he has a job
 
oh...I didn't know
 
They say game dev is one of the most brutal programming jobs.
 
Can confirm. I program games. I'm ded. So brutal.
 
3:57 PM
although that's not game dev it's golf dev much easier I guess
 
@feersum 1) It's extremely difficult (nearly impossible) to trash messages from mobile and 2) IMO two faces isn't bad enough to warrant trashing/kicking. That's just my personal opinion though, I'm not sure what the other ROs would say
If it went on longer I would have trashed it though
 
@DJMcMayhem Does trashing automatically kick or what?
 
No it doesn't. But it does notify the user and invite the user to trash which is a minor discouragement
I meant trashing or kicking
 
actually trash is a gallery now
although the invite is still a discouragement for sure
 
Well it wasn't even part of the conversation i.e. "disapproving" of any message.
 
disapproving noise makes much sense and it's so relieving right?
 
@KritixiLithos I'm stupid.
 
Okx
puu.sh/vW3fL/8a850cec08.png Arjun edited my answer to Is this number a factorial? and just what?
 
@quartata yeah but suck
and not cross-platform
and didn't you and @ASCII-only tell me not to do C/C++
 
4:17 PM
Can anyone explain to me how this works?
 
There's a difference between "writing everything in C++ but having weird Node layers in between" and "just using a native library"
 
-1
Q: Trim a String without Builtins

Stephen SGiven text, remove leading and trailing whitespace (spaces, tabs, and newlines). Alternate title: Implement your own string trimming. Input ASCII text (printable + spaces, tabs (\t), and newlines (\n)), in whatever format you would like. Carriage returns (\r) are outside of the scope of the in...

 
brainflock
 
@quartata yes, you were saying to not use C++ link list library
 
That was different
Introducing C++ into that wouldn't have made anything any easier
That's just Node being terrible
 
4:32 PM
What.
 
@quartata yes but would of avoided an AST GC
 
@JanDvorak Apparently Node has no weak references
 
I mean it has weak set but you can't iterate through that for stupid reason
@ASCII-only are we going to JScompiler or LLVM -> JS with emscriptem
 
4:52 PM
Could we please ban the clown who voted to close the sandbox as "opinion based"
 
Okx
I think banning is a bit too harsh.
 
Sorry, I should have said, just temp remove ability to vote close or something
 
@ASCII-only btw do we want Data class that is used to store generic data of unknown encoding etc.
 
0
Q: Make me laugh, xkcd!

Satan's SonWe all love xkcd comics, right? So let's get some! Task Your task is to create a program that will take an integer and output the corresponding xkcd comic. The correct comic is the one that has a matching number in its permalink: https://xkcd.com/<input number> This is where it gets tricky. ...

0
Q: What season is it?

AyoungcoderTask When running the program must show the season according to the host computer's current time. Rules The output must be either: Spring, Winter, Summer or Autumn. The capitalization does not matter. The output must not contain anything else the the season names stated above. A season is 3 m...

 
5:04 PM
Um...
can we get beauty filter app to work on things like Youtube?
 
@Ayoungcoder A) It was just posted by NewMainPosts, B) you're supposed to ask for feedback while the challenge is in the sandbox.
 
5:17 PM
@ATaco pls share example RProgN file and I can add syntax highlighting for RProgN :D
 
6:04 PM
@Dennis Could you remove comments from this challenge too?
 
@Arjun yea, that's one of hte one things i don't like about julia :P
1 indexing, and not having x[-1]
@SimplyBeautifulArt ?
>_> @Arjun
1 sec
 
Apr 14 at 3:59, by Dennis
PSA: Mods can see who cast close votes, both pending and retracted. If you think your privileges are toys, I'll take them away from you.
so just mod flag it if you think something's up
 
2
Q: Bake me a cake!

eartinmnderThis is a cake: _========_ | | +________+ | | +________+ | | +________+ It is 8 wide, 3 tall, and 1 deep. You must write a program that makes a cake from 3 inputs. The first input controls how many underscores there are in the middle and =s on the top. Here's the first ca...

 
@quartata I was already aware of it and I'll deal with the situation asap.
 
note: take them away probably means suspend or something
 
6:19 PM
Apr 14 at 4:01, by Dennis
@DownWat Sure, by temporarily lowering their reputation to 1. Has some side effects.
 
@Dennis but you can't lower to any other number I guess and side effects are severe
also there will be a banner on the profile page as a result of the lowering...and its contents depend on some drop-down menu choice
especially they will be actually lowered to some level where they can't even ask or answer
 
Are you saying you think suspending someone for abusing their privileges is inappropriate? Because I certainly don't.
 
@Dennis no I'm just saying the facts
where did I imply it's inappropriate?
 
@NewMainPosts Posted by eartinmnder. Hmmmmm....
 
0
A: Sandbox for Proposed Challenges

Erik the OutgolferHow many times? code-golfstring Inspired by Rotational symmetry of string. Given a string, return its shortest substring that, when repeated a number of times, will produce the original string, as well as the number itself. Test cases: "ABCDABCDABCDABCD" => "ABCD", 4 "AAAAAAAAAA" => "A", 10 ...

 
6:30 PM
I totally forgot I set that and got freaked out for a second >_<
 
@DJMcMayhem Yeah, and there was an "A Alex" in here earlier.
both of which have joined in the last month
 
Okx
I made a userscript for HNQ so we can know when we are popular puu.sh/vWaYI/b06cf4c02e.png
 
@quartata What's next Mennis Ditchell? Dorknoob?
 
6:46 PM
nvm I'm stupid
 
@DJMcMayhem I don't know but might be worthy of a mod flag
 
I thought the depth had to be constant
 
in case they're connected
I don't think the "A Alex" is just a coincidence since their first chat message appears to be a disapproval face
anywho
 
setbeg
 
@DJMcMayhem Gowndoat
 
6:50 PM
^^looks like two seperate verbs
 
:O if I wear a fancy gown and duck costume do I become a gowndoat?
This is Polly the goat
 
Okx
isn't that a duck?
 
JS people: is there a way to replace document with a [object HTMLDocument]?
Without document.write, I mean.
 
7:13 PM
@Dennis I don't know what you're doing but it's probably not right way (or is this golf?)
 
Not golf. What I'm trying to do is document.whateverMethodToReplaceTheDocument(documentObject), where documentObject is [object HTMLDocument].
The only way I can find is taking a DOMString instead and write it to document.
 
why do you need to replace document object?
that is really bad idea
 
Why would that be a bad idea?
 
because then browser has to reload entire page
 
That's my intention, yes.
 
7:16 PM
also JS event listeners and all would be gone
 
They wouldn't be gone, they would be replaced. Again, that's the idea.
 
is there any reason you can't just replace the html tag?
window.open would be what you're looking for if I understand your point
 
That creates a new window, no?
 
@Dennis well document is a global object so you cannot replace that, you can replace the documentElement though (<html>)
 
How?
 
7:28 PM
@Dennis document.documentElement.replaceWith(DOMNode)
 
Hm, that works, but it doesn't execute any scripts. document.write it is, I guess.
 
I think you might be wanting an <iframe> which you can modify the document all you want
 
I don't think that would work for my needs, but I'll try.
Thanks for your help.
 
@Riker I just think it'd be funny if I could watch YouTube under such a filter
 
@Dennis if you don't mind saying what do you do for a living?
@Downgoat Only on th internet...
 
7:41 PM
Breathing, mostly.
3
 
And you get money for that? Wow, you must be really skilled at that
 
:P
I'm a research mathematician.
 
0
Q: What are my dimensions?

Neil A.Task: Given the area of a triangle, find a Heronian triangle with that area. Any Heronian triangle with the specified area is allowed. A Heronian triangle is a triangle with integer sides and integer area. If no such triangle exists, output with a consistent falsey value. Input: A single, posi...

 
user165474
@KritixiLithos Of course. It's Dennis we're talking about;
 
If anyone can help me with my weird Java use case woes, I'd appreciate it. It's also just an interesting thing you can do in Java. :P
 
7:57 PM
@Dennis Wow me to!
@Dennis Ah cool job. Do you just get so tired of typing/writing during real life so to balance it out you golf?
 
Something like that, yes.
 
Makes sense.
Well go have fun doing real life stuff while I spend a nice Saturday relaxing :P
 
0
A: Sandbox for Proposed Challenges

Random UserThere's no place like home I recently watched The Wizard Of Oz and thought that when Dorothy taps her shoes together three times, it would be easier if she used a program to do it. So let's help her. Task Output slippers being tapped together n times. Input A single integer, n, the number of...

 
@Dennis This is too short for a private message but I didn't think that it was a particularly helpful post.
 
Anonymous
@VoteToClose I think your instructor might be a sadist
 
8:12 PM
@Mego It would explain a lot. :P
 
0
Q: Who's that Polygon?

Wheat Wizard A convenient and useful way to represent topological surfaces is with a fundamental polygon. Each side on a polygon matches to another side and can be either parallel or anti-parallel. For instance the here is the fundamental polygon of a torus: To figure out why this is a torus we could i...

 
8:26 PM
Ok this is probably old news but so far we have "A Alex", "eartinmnder", "Homba Helka", and heavens knows who else. What's up?
 
Okx
Conner O'Brian next ;)
 
I'm not nearly that popular :P
 
@ConorO'Brien I mean, someone once turned up as VoteToSpam that wasn't me.
 
Don't worry. Soon we'll have Doorhandle
 
But that was, what, a year and a half ago now.
 
8:29 PM
@RandomUser Soon?
 
@Doorknob all I know is that I know what my next username will be ;)
 
If you can help it, refrain from changing usernames. It's quite confusing
 
Anonymous
And especially refrain from impersonating others.
 
Anonymous
That's grounds for mods to edit your display name.
 
It was a joke! Why so serious?
2
 
8:46 PM
 
@RandomUser Some things mods take very serious for some reason ¯\_(ツ)_/¯
 
Anonymous
@Christopher Given that we've had users impersonating other users in the past, any humor has long gone
 
@Mego Makes sense. I don't know who would ever make a parody. It would tend to make people look down... hehe hidden jokes
 

« first day (2303 days earlier)      last day (2523 days later) »