« first day (2048 days earlier)      last day (2790 days later) » 

12:01 AM
@BetaDecay btw was that a flatland reference? it most likely isn't :P
 
> #define BITS() ... /*SCO cpp fodder*/
> SCO
triggered
I'm so happy they're dead now
Anyways, it's funny to see little blasts to the past in NH's comments
 
12:19 AM
Fun fact: Microsoft is attempting to bring the Almighty Linus Torvalds to the Dark Side
 
WTF!?!?!
 
12:51 AM
@El'endiaStarman you have time to talk design?
 
0
Q: Marcel Proust and Markov decipher security service’s T9 texts

Andreï KostyrkaAs if this challenge could be any more Pythonesque in spirit... You are a spy who needs to obtain some crucial information from the British security service M1S. The agents of M1S are well aware that their Wi-Fi signals can be intercepted, their Android/iOS security vulnerabilities exploited etc...

 
1:10 AM
I'm-a back!
 
@ETHproductions \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/
where have you been?
 
Busy with school stuff :(
 
;_;
 
And I'm going to be even more busy for the coming semesters, so I won't be spending much time here.
 
solution: drop out of school and spend full-time on PPCG :P
 
1:14 AM
But then I won't be eligible to go to college and get a CS degree
 
@quartata lel at that video
@ETHproductions hey, haven't seen you in a while!
@ETHproductions are in HS or college?
 
@Downgoat Either I can have PPCG for the next year, or I can have a good career for the rest of my life... Hard choice huh? :P
@EᴀsᴛᴇʀʟʏIʀᴋ Me neither
@EᴀsᴛᴇʀʟʏIʀᴋ HS, going into senior year
 
@ETHproductions or you can become a goat and eat tin cans for rest of your life (and make ches)
idk how long you've been gone, do you know about ches?
 
@Downgoat Since Feb 19 or so, and I don't know about ches
 
1:18 AM
oh okay
Well basically I made a programming language called Cheddar: cheddar.vihan.org
 
Yup, I've seen that
 
people keep thinking I'm referring to the cheese instead of the programming language so it is often referred to as cheese (i.e. ches) :P
@ETHproductions :D
 
Oh, haha
hadn't seen the website tho
Very professional :)
 
:3 thank you. bows
huh... I just relized the email link I put on cheddar website isn't real.... >_>
 
1:26 AM
0
Q: All Binary Combinations to Decimal

WallyWestDisclaimer This question is not a duplicate of this question. I'm not counting specific digits, as we already have those set in the initial parameters. This question is focusing on the decimal numbers that can be constructed from the binary strings based on the digits provided. Challenge Given...

 
@NathanMerrill Uh, sure.
 
so, I'm doing map generation
and I'm trying to figure out how to get a random point
this sounds really dumb
GridMap represents the game map. Its basically a graph (points with connections). It makes no assumptions about the bounds of the map, nor about the coordinate system
Bounds represents the "bounds" of a map. For a 2D coordinate system, it could define a square map or a triangular one, or so on. It allows for both float-type coordinates, and integer ones
AdjacencySet lets you say "this point is adjacent to this other one". So for hexagonal maps, it defines which points connect to each other (in a hexagonal fashion)
None of these interfaces have enough information to get a random point on a map (during map generation)
@El'endiaStarman does that make any sense?
 
What if you instead store the map as a list of point/hex objects, each of which has an (x,y) coordinate pair and a list of points/hexes it's adjacent to, which can be determined after generating the points. Then picking a random point is as simple as picking a random index.
 
1:41 AM
@DJMcMayhem vim question: Let's say in visual selection I have selected something e.g. "an9r8t9wenasvfh9w3ouehsdf". how can i replace all instances of an9r8t9wenasvfh9w3ouehsdf with something else?
 
@El'endiaStarman a GridMap doesn't actually have any points yet. That's the entire point of the generation
 
....err? How are you making the map?
 
@NathanMerrill what data structure are you storing the vertices in that you can't get a uniform random vertex?
 
using a Generator
getting a random vertex is easy after I generate the map
but when I initialize the GridMap, it starts with an empty HashMap<Point, Item>
 
what, you want to do it before you generate the map? You want a random vertex from the empty graph?
 
1:44 AM
I want a random point within the Bounds
but Bounds makes no assumption about my coordinate system, so it can't do it
 
Oh, you're trying to build up the map a random hex at a time?
 
well, kind of. I just need a starting point to build off of
 
Why not just pick the center?
 
who? the Bounds interface basically has one function bool outOfBounds(), and if I were to add a function to that interface, the Bounds doesn't know the coordinate system, so it wouldn't know whether (0.5, 0.5) is a valid point
 
1:47 AM
I have too many questions
 
@NathanMerrill ...sounds like your program structure is messed up. :P
 
...it makes lots of sense
 
@NathanMerrill It won't anymore after you wake up
 
-.-
lets say I have a hexagonal grid. I could have that grid in a triangle shape, or a rectangle shape, or a hexagon shape
 
Oh wait, you're using your KotH framework.
 
1:50 AM
it makes sense to separate the coordinate system from the bounds
@El'endiaStarman yes
 
That's why the components are separate.
 
What about picking the origin as your starting point?
 
right, but where do I get the origin?
I guess I could pass it into the generator itself
 
@Downgoat you mean like y:%s/<C-r>"/bar/g<CR>
 
2:04 AM
@El'endiaStarman actually, "origin" gives me an interesting idea. The generator could take an origin, then use the adjacency sets to generate all possible points by expanding outwards
then if I do need a random point, I just pick one
 
1
Q: "Cut and Paste Sorting"

WallyWestThe Challenge Given a string containing a random sequence of unique characters A to Z (all upper case, no duplicates), determine the cut-and-paste" sort and output the sort sequence to a specific format (detailed below). Definition of Cut-And-Paste Sort, by Example Example string: AKJCFEGHDBI ...

 
@DJMcMayhem pls halp i think vim is borked i click somewhere and it just does random chars
 
while that's O(N) instead of O(1), map generation is, at best, O(n), so it doesn't actually make the generation take any longer
 
@NathanMerrill Yeah, pretty much.
 
2:20 AM
@Downgoat is that spam or a git commit number?
 
spam
 
@DJMcMayhem question: does nvim do anything useful that a non-vim-pro would use on daily basis besides async plugin support?
 
2:39 AM
0
Q: RGB Gradients Generation

WallyWestThe Challenge Given the two uppercase hexadecimal strings (both 6 characters long, XXXXXX and YYYYYY) representing RGB values (ranging from 000000 to FFFFFF inclusive), and a positive non-zero integer N, display a linear transition of the N+2 colors generated from XXXXXX to YYYYYY that would res...

 
@ConorO'Brien So TIL you can't have a list of strings in TI Basic... do you know a way I can store a colection of singleton strings?
 
...you can't? I swear you can...
 
Nope. {"FOO"} throws a data type error
 
> typeof null
< "object"
> null.foo
< TypeError: null is not an object
wat
but... you said yourself it's an object
 
@Downgoat how did taming the snek go?
 
2:54 AM
i tri but computer delete all files when log off so its gone ;_;
 
@Downgoat and that's why you should use things like google cloud shell or koding when working in school
(or just a flash drive)
 
our school has a ntework drive for each student
I am just surprised it actually deletes it
 
@Downgoat I can't even think of anything that a vim-pro would use on a daily basis.
I guess it's got the builtin shell
 
@DJMcMayhem yeah but with my new terminal i dont need builtin shell :P
apparently macvim cannot handle powerline fonts ;_;
 
@Downgoat what about c?
 
2:57 AM
Which terminal?
 
@Maltysen ??
@DJMcMayhem hyperterm
 
@Downgoat u were also learning c
 
I already know c u must be thinking cpp
@ASCII-only you were advocating learning C# earlier. Turns out now we're learning that in class >_>
@zyabin101 that is the exact reason it should be moved...
 
3:19 AM
user image
2
XD
 
3:32 AM
0
Q: Ⓒⓞⓝⓥⓔⓡⓣ ⓣⓞ Ⓑⓤⓑⓑⓛⓔ Ⓛⓔⓣⓣⓔⓡⓢ

MaltysenSo I was playing around with my compose key, and found some cool things, one of them being that by pressing compose + ( + alphanumeric + ), you get that character inside a bubble, like so: ⓐ. Your task in this challenge is simple, to convert ordinary text to bubble letter text. Here are the cha...

 
@DJMcMayhem question: my vim goes crazy on long lines. When I use my mouse to select at the end of the line. It types random characters automatically. pls halp this is weird
 
Everyone knows you're not allowed to use the mouse in vim.
2
The random characters are a penalty for a rule violation.
 
@feersum :set mouse=a
^ the one setting everyone should have
question: what's the word for operation: f([1,2,3], [9, 8, 7]) -> [[1,9], [2, 8], [3, 7]]
wait that's transposing
 
3:53 AM
Ok, looks like Meta consensus favors editing the tag wiki. Here's my new wording:
This challenge involves solving a problem relating to a chess game or to any variation on chess. The challenge may involve generating a chess board, playing the game, checking for validity, etc.

Variations on chess include regional and historical games in the chess family as well as games derived from chess. See [Wikipedia's list of chess variants](https://en.wikipedia.org/wiki/List_of_chess_variants) for specific examples.
Any nitpicks?
 
@Downgoat Without more detail, I have literally no clue
 
@DJMcMayhem ;_; ono my vim is borked
 
4:15 AM
Hearing no objections...
 
4:29 AM
Tag wiki updated.
 
4:52 AM
@Downgoat :D
 
looking for wordpress theme is the most grueling process i have ever partaken in
99% are utter shit and the other 1% cost $70
 
@Downgoat Assuming your school has a less horrible proxy than mine, you can use c9/GH/google drive
@Downgoat D: 0/10 using wordpress
 
I AM NOT GONNA SPEND $70 ON A WORDPRESS THEME
 
Write your own
 
@ASCII-only are you kidding the entire word uses wordpress
why would i reinvent the wheel?
 
4:54 AM
@Downgoat Use Jekyll
 
wordpress has been in use by everyone for many many years
 
The entire GH uses Jekyll
 
jekyll probably doesn't have any better themes
 
Yeah, probably
 
Jekyll themes are the reason you should not allow programmers to design
wat is that
 
5:00 AM
Then why don't you make your own
 
that is incredibly difficult
 
How
 
people can charge thousands of dollars for custom theme development
 
For large websites, probably
 
nvm isn't that much
 
5:01 AM
But seriously if you don't have 100 different types of pages it shouldn't take that long
 
you have no idea
I'd say making a wordpress theme would be more difficult than making cheddar
 
That's WordPress, it's PHP D:
Plus I don't think you'll need to do much apart from what you'll actually use
 
I've never blogged, so I gotta ask: What advantages does Wordpress offer over simply writing a website?
 
Content management is a lot easier.
Also, a bunch of useful features like tagging come with it.
 
Also something people that don't know HTML/PHP/CSS/JS can use
 
5:09 AM
Editing capabilities, including a WYSIWYG editor if you want it.
Built-in archive system and RSS feed.
Writing a website to write stuff like blog posts is reinventing the wheel. It's like writing whole libraries when better ones already exist. Probably not as bad as reimplementing timezones and Unicode support though...
 
Wordpress also has everything SEO built in. You can really focus on the content rather than the site
need caching? Install plugin. Want mail subscription thing? Install plugin
wordpress has a plugin for like everything
 
But you're complaining about it all the time.
 
Wordpress does one thing really well: blogging. That said, this does mean that websites made with it that aren't focused on blogging generally suck. I believe that the Wordpress devs have, in a way, overstepped their bounds on what you can use their platform for, and they made it easy to boot, so now there are plenty of websites that are obviously Wordpress sites.
@Dennis In a way, it's like JavaScript. Really isn't that great, but it's the best option.
 
@Dennis no?
i complain about Istanbul (cheddars test runner) and Mariadb a lot tho
 
6:02 AM
Helloo!
please be here and talking pls
yo @betseg!
 
Yo
@Downgoat İstanbul isnt a nice city too
 
So, I want to know whether it is acceptable to post to a cops and robbers challenge with a new language, given that the main reasons for disallowing them in regular challenges don't apply so much
 
@DestructibleWatermelon I can think of several ways to obtain an unfair advantage in a language that has been tailored for a CnR challenge, but as far as I know, we don't have a consensus. I think you should ask the OP.
 
KK thanks @Dennis!
specifically, it is the "can you outgolf me" challenge
Also, I already made the answer for it. I would show you, but I do think I would have a chance of not getting outgolfed if I get to post it
 
6:41 AM
Hey @Dennis, could you please add woefully to tryitonline?
yo @Mego
 
@DestructibleWatermelon Right, you asked me yesterday and I forgot. Sorry.
 
Anonymous
CMC: given integers W, L, and T, output the number of games needed to be played for the best- and worst-case scenarios to achieve a score of at least T, if a win is worth W points, a loss is worth L points, and there are no other possible outcomes of games. Infinity can be represented by any value that is not zero or a positive integer, and does not need to be the same value every time.
 
hmmmm, let me decipher what that actually means
 
Hello
 
6:47 AM
what does best case and worst case. is smallest number of games best case, or most amount of wins best case/least amount of losses
 
Anonymous
Basically you're playing a series of games, and you want to have a score of at least T. Wins give you W points, and losses give you L points (all of these values could potentially be negative). You want to find the minimum and maximum number of games that will give you a total of at least T points.
 
Anonymous
Best-case and worst-case refer to the number of games played
 
@Dennis The Logicode thing doesn't work in TIO
 
@Qwerp-Derp Hello!
 
Anonymous
For example: let's say W=3, L=1, T=20. The best case is 7 wins (7 is the smallest integer satisfying n * 3 >= 20), and the worst case is 19 losses followed by either a win or a loss, for 20 total games. Therefore, the output would be 9 and 20 (in any order, any unambiguous formatting).
 
6:50 AM
Isn't 7 wins the best case?
7*3 = 21
 
mego makes a typo :o
 
2 days ago, by Dennis
@Qwerp-Derp I tried but I got an error.
 
Anonymous
Yeah I don't know why I said 9
 
Anonymous
I blame cold medicine
 
Not sure what is going wrong.
 
6:53 AM
well, seems like best case is ceil(t/max(w,l)), and worst is ceil(t/min(w,l))
I think
 
Ummm...
Here is the link.
 
What should it do?
 
So I am continuing to attempt to write FRACTRAN programs, even though I am reasonably certain that I am sane :D
 
@Qwerp-Derp I'm invoking Logicode like this. Does that look right?
#!/bin/bash

export LANG=en_US.UTF8
code="$1"
shift

python3 /opt/Logicode/logicode.py --file "$code" --input "$(cat)" "$@"
 
And factorial is kicking my butt
 
6:55 AM
Ummm...
I'll have to get @ASCII-only
That's really weird, because something like out 1 works just fine
 
@Mego from math import*;lambda t,w,l:(ceil(t/max(w,l)),ceil(t/min(w,l)))
I think this works
 
Though I should probably not write a program that ends with <prime>^<factorial(n)> just because I'm not sure my computer could store that haha
 
Anonymous
@Dennis $(cat) will start cat reading from STDIN and echoing to STDOUT. Is that what you are trying to do?
 
Anonymous
@Sherlock9 Your sanity has been questionable since at least 2015-11-24
3
 
@Mego As far as I can tell, to have to pass input as a CLA, so yes.
 
6:59 AM
well, my code I think does not work for negative t...
 
@Dennis As far as I can tell, the individual circs, when they reference other circs, the code crashes.
 
@Qwerp-Derp That sounds like a problem with the interpreter, not TIO.
 
Nah, it's working fine with my interpreter.
And the one on GH is the one that's on my laptop.
 
from math import*;s=lambda t,w,l:t<0and(0,0)or(ceil(t/max(w,l)),ceil(t/min(w,l)))
 
@Qwerp-Derp Heh, you made changes since I installed it on TIO. You have to give me a heads-up or the interpreter won't be up-to-date.
 
7:05 AM
Oh.
Ooooohhhh.
So, you have to manually update the interpreter every time?
 
For now. v2 will be released soonish, and I'll be able to allow automatic updates.
 
cool/stupid thing about my language. numbers aren't automatically separated, so to output more than one number, you have to insert a newline each time by switching to ascii output, pushing 10, and printing, then switching back
 
Anonymous
@DestructibleWatermelon That sounds terribly inconvenient
 
Exactly!
but it's also useful for one of my programs
 
Here is my 2-bit adder
in Logicode
 
7:15 AM
hia
 
Here is a more golfed version
 
@uoɥʇʎPʎzɐɹC D: because i am a gamer but i also have a linux machine
 
@Mego Speaking of my sanity: Fibonacci in FRACTRAN :D 91/33 11/13 17/11 399/85 17/19 23/17 115/161 23/29 11/46 31/23 37/155 37/217 31/37 1/31 55/41 41/2
Input is 2**n, output is 3**F(n)
 
7:33 AM
Hi @TùxCräftîñg!
hmmmm, the oeis entry on repunits uses zero as first member .~.
y u do dis oeis
 
@DestructibleWatermelon woefully.tryitonline.net/…
 
ok, let's check that it works
truth machine works!
thanks @Dennis!
 
np
 
Does anyone have any suggestions on my lang?
 
is it ok to use this sequence for the oeis outgolfing challenge, given that it's in unary?
 
7:47 AM
CMC: 6502 in Logicode
 
6502?
 
The MOS Technology 6502 (typically "sixty-five-oh-two" or "six-five-oh-two") is an 8-bit microprocessor that was designed by a small team led by Chuck Peddle for MOS Technology. When it was introduced in 1975, the 6502 was, by a considerable margin, the least expensive full-featured microprocessor on the market. It initially sold for less than one-sixth the cost of competing designs from larger companies, such as Motorola and Intel, and caused rapid decreases in pricing across the entire processor market. Along with the Zilog Z80 it sparked a series of projects that resulted in the home computer...
 
Do you guys think Logicode is TC?
 
7:49 AM
@Mego Crap
Ummm
Codisim?
Crap
Gates All The Way Down
GATWD
Logilang
That's nice
 
@Dennis - struggling with the last bit of this:
`L‘ḶŒ!ðżFð€` will get all the permutations of the "less than greater than" possibilities
I then wish to do something like `V1#` on that result. Do I really need to make it a separate chain or something? Also is there a better way than the double dyadic separation?
 
@JonathanAllan # usually requires a helper link, yes.
I'll look at the rest tomorrow. 4 AM here...
 
hmm even though the link is one atom
oh you off?
 
@Mego D:
 
@JonathanAllan Not sure what off means here, but I'm going to bed now.
 
7:56 AM
@Qwerp-Derp can logicode loop?
 
yes off==leaving :) good night, take care
 
Good night/day.
 
@TùxCräftîñg Ummm... I have a conditional, and I can make circuits that recurse.
 
recursive circuits?
 
Ya
But that's about it
 
8:01 AM
:/ this may overflow the call stack
 
I'm thinking of changing the cond statement from an if to a while
 
so infinite loops are not possible
 
but that's too messy
Yeah
But currently we're working on multi-line functions
which can do lots of stuff
 
You could try to compile tail-recursion into loops
 
including changing variables
tail-recursion?
 
8:03 AM
In computer science, a tail call is a subroutine call performed as the final action of a procedure. If a tail call might lead to the same subroutine being called again later in the call chain, the subroutine is said to be tail-recursive, which is a special case of recursion. Tail recursion (or tail-end recursion) is particularly useful, and often easy to handle in implementations. Tail calls can be implemented without adding a new stack frame to the call stack. Most of the frame of the current procedure is not needed any more, and it can be replaced by the frame of the tail call, modified a...
 
Tail recursion is usually of the form circ c(...) if(base case) return a else return c(new_values)
 
TCO is basically optimize def f(): f() to def f(): while 1: pass
 
Yeah, the new circuits will probs give you the option to include that
 
(really, it's only useful if a is one of the inputs to the function)
But you can compile it to while !(base case): values = new_values; return a
 
Fun fact. Permalinks to woefully answers are too long to post in chat...
 
8:11 AM
Use url shorteners?
 
@DestructibleWatermelon o_o
 
I'm considering just leaving the link and not attaching it to the "try it online" for fun
0
A: Can you outgolf me? (Cops section)

Destructible WatermelonWoefully, (noncompeting, but you still get points for cracking it), 520/776= ~0.67 Computes A000042 (would compute repunits, but that one has 0 as first member) Offset 1, zero indexed (0 outputs 1, 1 outputs 11, 2 outputs 111, etc.) | |||||||| | | || |||||| | ||| |||| | |||| || | ||||| || | ||...

 
@DestructibleWatermelon plz [try it online](http://)
 
I know, but I did it for the size of the link. it was amusing to me
 
Do my rubik thing in woefully
 
8:20 AM
wat rubik thing and no
 
5
Q: Simulate a Rubik's cube

betsegA Rubik's cube has 6 colors: red, orange, yellow, white, blue, and green. Red and orange, yellow and white, and blue and green faces are on opposite sides. Net of a solved Rubik's cube looks like this: Y BRGO W And the tiles look like this: Y Y Y Y Y Y Y Y Y B B B R R R G...

I'L MAKE A LANGUAGE CALLED URANUS, THE I WILL WRITE CODE IN URANUS HUEHUE
 
no,
@betseg do it
 
AHHHHHHH
A FROST BRAND AT LEVEL 1
sfjyghufiozeryojfiagri
I AM TOO LUCKYYYYYYY
 
brb playing loto
i.
have.
one.
of.
 
8:26 AM
@DestructibleWatermelon github.com/betseg/Uranus done
 
the.
most.
weapon.
powerful.
 
@betseg docs pls
 
do you never sleep @TùxCräftîñg ?
 
it's 10:27AM
 
if someone managed to make a quine in Woefully, I would be really impressed
 
8:30 AM
> a long sword named Frost Brand
ಠ_ಠ
does that mean i have been trolled
 
@DestructibleWatermelon i don't even understand how it works
Docs plz
 
woefully.txt has docs
changed name to woefully_docs
 
holy... no
it's a true frost blade
i am one-shotting everything
 
@DestructibleWatermelon would you mind turning that into a markdown file?
 
8:34 AM
maybe...
yeah, I will do this
 
@MartinEnder you know, maybe I'll just leave in the Sandbox like all my other posts :)
i'll probably post it within the next day
 
Ah dang it, the primality question requires a full program :( I had a 36-byte recursive function...
 
inb4 twenty Python submissions when xnor posts
 
@ETHproductions primality question?
 
118
Q: Is this number a prime?

DennisBelieve it or not, we do not yet have a code golf challenge for a simple primality test. While it may not be the most interesting challenge, particularly for "usual" languages, it can be nontrivial in many languages. Rosetta code features lists by language of idiomatic approaches to primality te...

 
8:39 AM
@Sp3000 i haven't actually tried golfing it myself, i should do that before I get spoiled
 
While I await feedback on the Sandbox questions, I'll just stick around and enjoy my new username=)
 
That sounds like a good plan :) I just feel like with such a nice simple challenge that's been in the sandbox for so, there's bound to be some FGITW factor
 
@Sp3000 have you tried it in any language? So far I'm getting 18 both in Retina and CJam.
 
I wanted to only start trying once the question was posted, but now I dunno
 
i have 6 kb code help me golf :p
 
8:45 AM
ouch
 
@Sp3000 i'm also planning to do your anarchy golf. i still need to convince myself the output is uniquely specified
 
@TùxCräftîñg ill post it to my rubik thing
I should make the switch-case 6 ternary operators
 
how to make nice tables in markdown?
 
@xnor :) thanks (I only have an ungolfed reference in Python, so I'm quite impressed by tails)
 
|header|header|
|:-:|:-:|
|a|b|
|a|b|
 
8:47 AM
k thanks
 
Time to turn a strongly-typed language into a weakly-typed language
 
Anonymous
@StevenH. What could possibly go wrong?
 
Anonymous
(as someone who has experience in type erasure shenanigans in C++, the answer is everything)
 
Anonymous
Maybe I'll clean up my C++ pseudo-duck-typing library and upload it to GitHub tomorrow
 
8:49 AM
Every weakly typed language is based on a strongly typed language
 
Exactly! It only means, however, I have to reimplement every single builtin, most of which will just be a wrapper for linking type-checking to overloaded lists of functions and also returning all of the other additional list elements to turn a fixed-arity golfing language into a dynamic-arity golfing language for a large number of functions. At least I still get to take advantage of included tail-recursion!
But yeah, the answer is everything
I haven't even started and things have already gone wrong
6
 
Anonymous
@StevenH. Programming in a nutshell
 
I'll make a small caveat: the language itself does not enforce strong typing, but pretty much all of racket/base (stdlib for Racket) is strongly typed so I can't plug anything in without knowing what it is
Either way, the stars help dull the pain
So thanks for that
 

« first day (2048 days earlier)      last day (2790 days later) »