« first day (2455 days earlier)      last day (2378 days later) » 

12:03 AM
@ASCII-only I've done it, I've requested the addition of the now working* Funky.
 
:D
Except that long list doesn't seem to work
 
Yeah because I added the outside []
I can make a version that requires them
 
Even without the []
 
@HelkaHomba because SE chat adds annoying ZWSPs
 
12:07 AM
ah. Silly SE
 
@HelkaHomba Array(27).fill(a=[0,128,255]).map((_,n)=>[a[n/9|0],a[n/3%3|0],a[n%3]])
 
@ASCII-only You can play with the tokenizer already Here
Just fill in code in the top right box and watch it tokenize.
 
Beautiful, isn't it?
(You can play with the CSS at the bottom right)
 
Anonymous
@HelkaHomba Very similar
 
Anonymous
12:16 AM
@HelkaHomba Actually, 10 bytes: 07╙8╙Dk3@∙
 
@ASCII-only :D
 
@ASCII-only hmm, --disable-compression seems to error out
 
@Neil :| oh no
 
I wanted to see if the compressor or the deverbosifier was at fault for inserting a separator in Join("23456789TJQKA", Times("\n", 8))
 
@Neil Separators are only removed in certain situations, remove , here to remove the separator
On a side note: Oops that should be able to be removed
 
12:35 AM
CMP: Should I go work on Enlist?
 
@HyperNeutrino Yes
 
ok
@ASCII-only Any feature-requests?
 
@HyperNeutrino no
go play nethack
 
oh
hey this is exactly one week after I first played nethack
nah I'm currently half developing Enlist half chatting with my friends lol
 
ah
what happened to proton
 
12:46 AM
I can't do that from a chromebook because it has multiple files which is a pain on TIO
 
@quartata was speccing somebody in nethack, he polypiled for around 400 smoky potions (gain ability), quaffed them all, got no wishes
then found 2 random potions on the floor and got 2 wishes
go figure
 
same person is now quaffing around 160 potions of gain level
and had 1750 hp and counting, AC -75
with no farming even
 
༼ つ ◕_◕ ༽つ why lol
 
because dnethack has a monster that revives infinitely, deals 100d4 damage per hit, and attacks twice per turn
 
12:49 AM
lolwat
 
in addition to having a monster with 2k hp that pretty much just casts touch of death and cause sickness forever
@HyperNeutrino cthulhu himself :p
 
Anonymous
@HyperNeutrino Did you not manage to snag a cloud9 account before they started requiring CC verification?
 
@Mego CC verification? wut?
 
12:51 AM
@HyperNeutrino (OEIS 4903, C++) C++ have std::min.
 
oh
thanks for pointing that out lol
 
And even std::min_element.
So int min = *std::min_element(begin(values), end(values))
 
Anonymous
@Riker cloud9 now requires a credit card number for verification for new accounts. It's allegedly still free, and allegedly won't charge that CC, but I have my doubts.
 
Anonymous
@HyperNeutrino codeanywhere.com looks like a good alternative
 
huh
 
12:53 AM
@Mego oh huh cool I'll look at that, thanks
 
Anonymous
3 clicks to sign up with an existing GitHub account, nice
 
yup it's great
 
@HyperNeutrino Why is it printing some debug info? And generally I don't use std::endl when it is not necessary, because it flushes the stream. (that is, only use when I explicitly need to flush) || Does that algorithm really works?
 
Yeah I think so. I mean n ** 10 * 8 < (n + 1) ** 10 so as long as that's true, my algorithm holds.
 
@Riker jeez
 
1:02 AM
0/10 de-pluralize work
 
8 n ¹° < (n+1) ¹° <=> 8 < (1 + 1/n) ¹° <=> 8^(1/10) < 1+1/n <=> 1/(8^(1/10)-1) > n <=> 4.326299... > n
 
where did you get the second step from
oh nvm figured it out
but clearly 8 * 1^10 < 2^10
and 8 * 2^10 < 3^10
oh
wait nvm
 
@quartata in other news he broke the firearm patch and made a segfault gun
in addition to polypiling 2 corpses together into an item that when dropped kills everything on the level with less than 200 hp
 
who is this guy lol? have I heard of him on #hardfought?
 
@Riker what fork is this
 
1:11 AM
dnethack
 
oh ok
 
yes
 
that's why it has like
bugs
 
> bugs
you were able to wish for a figurine of demogorgon for a bit :P
taht's a bit more than a bug
 
@HyperNeutrino You see the algorithm is wrong? What you should do now?
 
1:16 AM
No I don't see how it's wrong.
Wait nvm I read the signs backward. Oh, you were talking... wait. yeah I... hold on yeah I get it now
I can probably fix it without changing the bytecount
But hold on how does that make sense? As n increases, shouldn't the gap become larger?
 
Mathematics is always true.
 
wait but so does the amount the 8n^10 increases over n^10
@user202729 true lol
yeah you're right
 
Side note: the ° is actually degree symbol, because I'm using a Jelly keyboard. It should be understood as superscript 0.
 
lol
well then I guess I just have to brute-force a list of all numbers up to at least that and then sort it and index
I can't C++ though; that's too complex
anyway gtg o/
 
@HyperNeutrino :|
 
1:37 AM
Whoops, at some point I switched Funky back to the old tokenizer. Fixed that again.
 
@ASCII-only hey I just made my first interesting program today
 
@HyperNeutrino link pls
 
0
Q: numbers are crazy

0x45Task There are digits 0-9 where each digit also stands for an operation. The last digit is always combined with the previous operation. Print the result of this equation. 0 => + 1 => - 2 => * 3 => / 4 => bitwise compliment(~) 5 => invert 6 => increment by sum of all values(including 6) 7 => dec...

 
2
A: One OEIS after another

HyperNeutrino227. C++ (clang), 861 bytes, A004903 -- Currently being fixed #include <iostream> int pow10(int val) { int b = val * val; int c = b * b * val; return c * c; } int main() { int input; std::cin >> input; int values [8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; for (int i = 0; i < input; i++) { in...

 
@HyperNeutrino :| being fixed
 
1:49 AM
lol
 
2:16 AM
It occurs to me Funky has no IO.
Well, it has no input.
 
You can write functions which take arguments atleast :P
 
lol :P
 
Quine was really easy to write atleast! print((s="print((s=%q):format(s))"):format(s))
 
2:22 AM
wait a:b is getattr?
 
a.b is indexing, a:b is currying index.
 
@ATaco 0/10 no % format operator
 
If a has a function member b which takes arguments x,y,z, then a:b will return the function with argument x substituted with a
 
Like Lua?
 
Exactly like lua.
(There is a % format operator, I am a fool) print((s="print((s=%q)%%s)")%s)
 
2:24 AM
@ATaco 10/10
 
@ATaco need a newline for it to be quine
 
and that is why one should always remember to put brackets
:P
 
If you couldn't tell, stringifying functions currently produces unsavory results.
 
2:28 AM
0/10 for inconsistent semicolon usage
how do you make functions
 
@ATaco 0/10 reverse doesn't support arrays
 
(i feel like the best place to get criticism for a new language is here because we're all extremely critical lol)
 
I have a new-ish language!
 
2:30 AM
@HyperNeutrino what about it?
 
<-- is confused
 
Stringifying functions is currently entirely handled by JS, so you're seeing the actual function definition.
 
@HyperNeutrino It's the function calling thwe Funky function
 
huh ok
 
(Also, for seemingly no reason you can't assign anonymous functions to global variables, I'm working on it.)
 
2:31 AM
also I was doing if (a) if (b) c; else d; today in C++ and it actually gave me a compiler warning about ambiguous else statements lol
 
@HyperNeutrino Why wouldn't it >_>
 
I wasn't expecting it to lol
I know that CFGs don't like that because problems happen but lol was not expecting
 
>_> well it's helpful so why wouldn't they implement it
especially since it's led to something as serious as a very dangerous apple bug
 
oh rip
anyway gtg o/
 
Ugh, how can I get to the site chat rooms using hte UI buttons?
 
2:34 AM
@feersum right icon -> chat
 
Found the issue with Anonymous functions.
It never actually returned the function.
 
Thanks.
I only found the "chat" in the left button which was a trap.
You could only go to "Stack Exchange" rooms which are useless.
 
Tables != arrays
 
2:50 AM
@ATaco halp how to have string key
 
Uh, can you elaborate?
 
{foo:"bar"}
 
@ASCII-only Probably like this tio.run/##SyvNy678/…
 
{foo = bar}
 
oh yeah :|
@ATaco 0/10 doesn't support e.g. ^ as key
 
2:53 AM
Hmm, you're right. I hadn't actually considered that.
Although it is possible to have them, it's not possible to do in constructors.
 
Nice
 
ok so i had an idea for a koth again
bots are pieces on a toroidal chess board of large size, though I'm not entirely set on toroidal
bots get to choose ~10 types of moves only (not set on the exact number), which are non-rotatable vectors (moving forward one and back one are two different kinds of moves), and have cooldowns on these moves
moves are leaps: they can not be blocked
 
3:13 AM
@ATaco is there an actual array in funky
 
newList() is the closest thing to an array, but as the name suggests, it's a list, and it's really just a table with some builtin functions.
 
@ATaco halp how to splat
 
No splat.
Funky is still very barebones, but it works.
(And like MaybeLater, it's arithmatic is R2L.)
Arithmetic*...
 
3:33 AM
@ATaco halp how to have " in string
also 'foo' doesn't work
oh wait it's just too old re: the second one
 
The current version doesn't have a method of including " in strings, yet.
Blame JSON.
 
How to type the above message properly?
 
I give up, Markdown is witchcraft.
 
I told you.
(the original message is "{backslash}{backslash} works, but {backslash}" doesn't")
 
\\ works, but \ doesn't
 
3:44 AM
@ASCII-only Are you talking about Markdown or Funky?
 
"\\ works, but \" doesn't
There we go
\\ works, but \" doesn't
:40630233 ... This is why you don't put three backslashes in one message
 
What is the Markdown source for that message?
 
\\ works, but \" doesn't.
Two Backticks, Two Slashes, Two backticks, then the \" is just Backtick, backslash, qoute, backtick.
It's not worth it, the Backticks are in control now.
 
3:59 AM
I got a wand of wishing last time I played nethack so i saved and I haven't played it for a while
 
@ATaco latest Funky is not on TIO 0/10
 
I'm still working on it, I don't want to keep pushing after every commit.
@ASCII-only Boop.
 
4:19 AM
I made a solution to this challenge in turtlèd but if i posted it i'd probably have to write a rather long explanation
 
Hey, if it works.
 
@ATaco :|
 
Intended functionality.
 
also :| your language is improperly sandboxed but it's so terrible you can't escape the sandbox lol
4
 
Actually, you essentially called print with three arguments in that case.
, is optional.
 
4:28 AM
@ATaco I know that
 
12 imaginary internet points if you successfully break out of the sandbox.
 
Already tried
The conventional way would be to access Function but that's not very easy
 
(All indexing is ran through "HasOwnProperty")
 
@ATaco also checks .vars which doesn't exist on normal objects >_>
 
4:35 AM
@ATaco ... I've already done more than that, and that isn't out at all >_>
 
If you show me I can probably patch it :P
 
@ATaco Pls use Object.create({}, null) to remove e.g. constructor
 
TypeError: can't convert null to object
 
null, {} then (oops)
 
That's got it, cheers.
How's your sandbox breaking coming along?
 
4:44 AM
@ATaco :| I already gave up
 
Mwahaha, security through obscurity is a valid tactic!
 
@ATaco what is sandboxed from
 
All of NodeJS.
 
No output = error? Or undefined?
 
No output means something probably went wrong, but not wrong enough for it to not salvage something.
 
4:54 AM
Is there lang docs
 
Nothing of the sort yet.
 
Btw use vm for sandboxing
 
Well, I don't eval anything.
(Besides strings, which i know are safe)
 
@ATaco except for strings >_>
 
If you find a way to break strings, then break strings.
 
4:56 AM
@Downgoat *vm2
 
No just vm
 
You can play with the tokenizer here to see how it compiles before execution.
I used that thing to make sure the tokenizer work, and also to write the tokens themselves.
 
 
1 hour later…
6:32 AM
Dennis golfed 7 bytes off that answer, but I managed to golf 2 more
 
-1
Q: Topazio sagomati a bracciali per uomo brosway cuscino circa 26

user75357' La ragazza alzò lo sguardo verso l uomo e il contatto visivo. Harry Winston brillante vita ancora una volta di proprietà di più di un terzo più famoso invidiabile e gioielli in tutto il mondo. Un campo magnetico di chiusura a scatto. Marca gli addetti alle vendite possono a malapena a tenere il...

 
@NewMainPosts We should connect you up to Smokey.
 
6:50 AM
@ATaco Of course Dennis can golf 7 bytes from a language he's never seen before :P
 
@cairdcoinheringaahing Well it's c-derived
@ATaco ... no short circuit?
 
Oh, I forgot to implement that.
 
7:06 AM
@user202729 .-. why though
@ATaco 23 bytes
Although f=n=>n?f(n-1)+n*n:n should work, someone's perfect interpreter isn't working perfectly @ATaco
 
I never said it was perfect
 
@user202729 RTL
 
Also, I have no idea and I can’t test, I’m on a train
 
But everything is wrapped in parentheses already.
 
7:10 AM
Might be an issue with the ternary statement
 
@ATaco yes it is >_>
it's 1. too low precedence, 2. : is optional so if there's a shorter expression the : part is ignored
 
Alright, I’ll poke it and make it work when I’m at my computer
 
Even when the parentheses is added this still return 0 tio.run/##SyvNy678/z/NNs/WLs9eQUNDQyFNI0/…
 
wait that's wrong (re: my latest one)
 
Wow, the real problem is rather silly
 
7:24 AM
@ATaco :|
 
It’s indexing the second argument
 
...
 
Because a:b()
 
sighs
This is why you don't add random things as operators, kids (also everyone else)
 
Blame lua, it made me do it
 
7:26 AM
use ::, -> or # at least
@ATaco well don't have that and ternaries
 
If there is Lua OO a:b syntax, is there normal a.b syntax?
 
@user202729 Yes
 
Yep, changing the curry index operator fixes it
 
@ATaco :|
@ATaco :::::::::::::::::::::::::::::::::::|
 
Precisely
 
7:50 AM
1
Q: The prime frog 🐸

Super ChafouinThe "prime frog" is a strange animal that jumps between integers, until it arrives on 3 or 19... Your program should accept an integer n as input and output the result of the below algorithm (3 or 19). For a given integer n >= 2: Let be f the position of the frog. It is initially set to n i...

 
8:17 AM
@Mr.Xcoder 1. loot :| 2. much :|
 
@Dennis Could I bother you to review stackoverflow.com/review/suggested-edits/17670516?
 
I was about to say "This isn't even a challenge!"
@ASCII-only I fixed Ternary and gave and and or short circuiting.
Good luck doing a and b or c with RTL. My solution was parenthesis.
 
8:34 AM
Apparently there are a lot of partitions of n < 100 size s that are equal to 2436. Is that just my program bugging, or what?
relevant output: pastebin.com/wj9kqwTG
 
@ATaco :|
 
0
Q: Pick brick by brick

KlynerI am new to codegolf. I hope this challenge is appreciated here. I have no clue... Challenge You and your friend decide to play a game using a stack consisting of bricks. In this game, you can alternatively remove 1, 2 or 3 bricks from the top, and the numbers etched on the removed bricks are ...

 
@Maltysen not that I'm aware of
 
8:55 AM
:| doing presentation on n-body problem but i have no idea what any of this means
 
9:39 AM
chat room challenge. Given an IP address (in the the form a.b.c.d) x and a prefix length (e.g. 22) output the earliest and latest IP number that has the same prefix of length 22 as x
where the prefix is taken over the IP written in binary
 
10:21 AM
@Lembik You may want to introduce your Chat Mini Challenges with **CMC:** so they are easier to spot and search for.
 
10:36 AM
> When signing up for a free trial, we require a valid credit card to ensure that your free trial can upgrade to a paid membership at the conclusion of the 30-days period. Since your card is invalid, your free trial has been suspended.
Yup, my suspicions were true
 
@LegionMammal978 Where is this from?
 
@Adám thanks
 
@Adám Tried putting a fake credit card number into the "free" Amazon Prime trial
 
CMC: Given an IP address (in the the form a.b.c.d) x and a prefix length (e.g. 22) output the earliest and latest IP number that has the same prefix of length 22 as x . The prefix is taken over the IP address written in binary
 
Amazon wasn't happy
 
10:38 AM
@LegionMammal978 I assume there is some way to create fake cards that it would accept
but maybe that is illegal
 
@Lembik I think they're trying to charge you without telling you at the end of the trial period
 
@LegionMammal978 got you
 
Generally, companies will test cards by depositing a few cents, then immediately charging the same amount. Obviously, valid card numbers which are not associated with an actual bank account will fail this test.
 
true
 
10:55 AM
Is anyone here willing to do a very quick test in Java and/or JavaScript Shell?
Check if the two submissions come up with the same answer for the 9 number example in this question?
Is my sorting order optimal? Also, do the two submissions give the same answer for a vector containing for instance 15 numbers?
 
11:14 AM
@Lembik Jelly - TIO
 
0
Q: How compute WPA key?

mdahmouneWPA2, the actual encryption standard that secures all modern wifi networks, has been cracked... This challenge has nothing to do with the way that the WPA2 was cracked, however is is about computing the 64-digit hexadecimal key that corresponds to a given WPA-PSK pass-phrase. A wireless network ...

 
11:54 AM
@Doorknob Can I remove/move to trash messages from anywhere in my room transcript?
 
12:14 PM
huh I just got the bronze badge. i wasn't even aware i was close to that lol
 
12:42 PM
@HyperNeutrino Apart from the response "mathematics is always true", the gap between n¹° and (n+1)¹° become larger absolutely, but not relatively.
When (n+1)¹° is expanded it becomes n¹°+...⁹+...⁸+..., which is asymptotically equal to n¹°, much less than 8n¹°.
 
hm ok
I think I'm just going to use the trivial but slow solution lol
I have to try to keep my bytecount the same
 
My solution is:
https://tio.run/##dVHRTuMwEHwmX7GneyAhBBKkIoTTfMO9c1XlOqa1FOzIcQ441G/v7a4TGoROsmTvzu7OeFb1fbFX6nS6vYVfsoXg4OG@SpKfxqpubDXUxg3Ba/nSLHJ/tArOLzOy2ztvwgHLksH81dsAvXutynQKbAYfycUZuYM1WLgCK5bZFWYZvJovwr0Oo7cRZ2AlkiPShPbxMSqpd851Dey11V4GHCZ3nYaZm65I/63D62HsQqzMmIrip3KDQiqMn53/HGModw19VTLIj5qHC8hzMyPx2yZjxjjA2ACdc/1WuRGfayjFMq7hgSacMxlg5xdui030hIJYBMZF0eAYJOHaC/MM6STebjKYn5BTPf0m@FELKj0mdCZPYx3bSSJfpLEpC6fI2Fa/CWDXlLHQNFPqc2XSe/m@ZWFoyb34v8UItY4dWfTUdXR5sh1nfN1geq6l5Rzh9WB4r6yInJr@fLPTe1J@PbHdaNtSRJ/O0F@WnS1024EMDTIYtVVyCHUEmrSoMoGOTkTcBz9wYXGbMS7Ws795jpM2gh2dReE@aybA6/K3vSRzT6e78h8
It takes O(n^1.1) time and O(n) memory in the result.
 
0
Q: Fill the steps (randomly)!

AdámThis is Hole-9 from The Autumn Tournament of APL CodeGolf. I am the original author of the problem there, and thus allowed to re-post it here. Given a simple (rectangular, non-jagged) Boolean array (of one or more dimensions) return a list of thusly shaped arrays where the first array is ident...

 
@user202729 Would it be okay with you if I edit in your solution as a CW with credits and give you a +50 bounty for it somewhere?
@Mr.Xcoder Oh yeah whoops lol I forgot I could just edit the fix right into the post ._. i'm tired lol
 
You can post yourself solution.
 
12:52 PM
?
wait nvm I think I almost have the solution I just need to figure out how to do this in C++ because arrays are weird to me
I'll look at std::vector :P
 
I means you should write your own solution and post it, my code is just for reference.
 
Is the 20 rep requirement for chat across all of SE or do the points need to be on the mother site of that chat room?
 
SE.
(IIRC)
I just entered chat with an Incognito tab and it says Welcome to The Stack Exchange Network chat! You'll need 20 reputation to talk here. This site is moderated by the community, so please be respectful of your fellow The Stack Exchange Network users. And while you're at it, check out the FAQ! (I think this means SE rep)
 
@Adám I can talk in the Puzzling chat rooms and I'm not even registered on Puzzling, so I'd assume it's network-wide rep
 
1:00 PM
Thanks.
 
0
Q: Munge my password

mdahmouneCommon words should still be avoided to be used as passwords. This challenge is about coding a very simple program that munges a given password (Modify Until Not Guessed Easily). Input A word, which is a string written in the alphabet abcdefghijklmnopqrstuvwxyz. Munging Change any double le...

 
Anyone have idea to improve this Jelly solution of mine to A004903?
Apparently this solution (to A004903, C++) is faster.
https://tio.run/##dVLbcoJADH2Wr8hMHwS1Xtqx0xHKL/QDenFW2OJa2KXLok47fjtNFhBsxydCcnLO2SRRnt8mUVRVN0JGaRlzCIQqjOYsC50ut@eRUbqfYWmitDBbhDlCGsjVYTF3KZIe/DiDJncHTyBhBNI/p5aYspVR@6Gi5qbUsq7bwtJ3To5TmHi1qtUD7A8h4ZJrZvjasE3KwSpm7Ljes7TkVvlfC5OF7ziDD6VruEAD8wnkizkFvg2CjsSH8Vi05eZZnmUeINM0L4vtesOiTxcRHjo/9ag1z2tOCgK4Jy4M6@5/xkyWY3/f2IrMenDO7NoMQnvKAsawI21yhIKWOVN77iKu9tTMoVDauGR7wxMhXW9CdFMuY9cjnP3RrOCuRZdSfJX8Gv5Pb7MxO90TzGbw7J5nCO8wfYRUJb3d1HeSMaJtL0TImB/92n8kJIRhk0L74huX3PXjMxcP/rX1DmJlZ9zBgwAbuhFd3k3n1E4LDltBx0TvI100iN3WCdUvL8fHT1u1t@I1piJVGpQlQ
 
@user202729 12 bytes: Ḷ*⁵œċ8S€QṢị@
It seems quite similar to yours
Is there a shorter way in C++ to deduplicate elements in an array than to just go through all of them?
 
std::unique (you can use my solution as reference)
still need to std::sort, however.
 
1:16 PM
yeah
so just std::sort(std::unique(array))?
 
You can read my solution.
 
oh right
does std::sort and std::unique work in basic int[]?
actually nvm I'll just use std::vector
 
Yes. Instead of passing iterator, you pass pointer (but then you have to keep track of the length yourself)
 
huh ok
 
Dang, I'm losing to Java.
 
1:49 PM
I think the real challenge of the "One OEIS after another" is understanding the definition of the sequence. This image may help who want to try the next sequence A000361:
 
If anyone is interested, I am soon going to post the second puzzle of CodeGolf-Hackathon.
 
Yay, now I'm beating Java.
 
@AdmBorkBork Powershell loses to... Java...?!
Ninja'd lol
 
PowerShell doesn't have any factorization or primality checking built-in
 
Nor does Python, really
 
1:52 PM
Python has sympy though
 
Yes it does
 
PowerShell also doesn't have an or like Python, so I can't simply translate ovs' awesome answer.
 
@AdmBorkBork Really?!? Nor ||? or any equivalent
 
The closest is a pseudo-ternary ($a,$b)[$conditional]
 
Bleh how can Powershell not have such a basic logic operator?
 
1:56 PM
But that won't work here, because both $a and $b (which can be expressions) are evaluated/computed
Oh, I can -or something, but it doesn't function the same way, it's strictly a Boolean operation.
or -bor for binary or
but something like f(n/i,2,k or n) is very trickly to translate
 
@AdmBorkBork that's really -boring
 
> trickly
huh
 

« first day (2455 days earlier)      last day (2378 days later) »