« first day (2100 days earlier)      last day (2741 days later) » 

Anonymous
7:01 AM
@ASCII-only This made me realize that Seriously is a really nice code jam library :P
 
@Mego Wait, you can use Seriously as a library?
 
Anonymous
Why wouldn't you be able to?
 
Anonymous
import seriously
 
In GCJ you run the code on your own machine.
 
@Sherlock9 I hope I do :)
@ASCII-only Okay...
 
7:02 AM
@Mego I mean can you use individual functions
 
Anonymous
@feersum Yeah, but you have to submit the code so that they can rule out any shenanigans
 
There's a set of competitive programming books as by Steven and Felix Halim that my friends used when they were studying for a programming competition
 
Anonymous
@ASCII-only from seriously.lib import is_prime
 
Anonymous
A lot of the functions are defined to take a Seriously object as their sole argument and modify it, so you'll have to take that into account, but it's perfectly usable as a general-use library.
 
@Mego :O wow I should probably use that next year if I try GCJ again
 
Anonymous
7:05 AM
I don't know GCJ's rules for external libraries
 
Anonymous
I just always used a few utility modules and included them in the source zipfile
 
Anonymous
By the time the next GCJ rolls around, I might even have the Actually-to-Python compiler working
 
Anonymous
It's strange to think that, next GCJ, there's a good chance I won't be eligible to compete
 
@Mego As long as it's freely available it's fine
 
@Mego Why so?
 
Anonymous
7:09 AM
@Rahul2001 Employees aren't allowed to participate
 
@Mego You work at Google? Cool!
 
Anonymous
@Rahul2001 Not yet. I will find out next week if I get to.
 
@Mego Oh. Good Luck!
 
Anonymous
Thanks :)
 
Hello!
 
7:21 AM
@Qwerp-Derp definitely some regularity (next n with the same value of S(n) after some initial mix goes up in powers of 2)
e.g. person "10" remains when n is [22, 54, 86, 150, 278, 534, 1046, 2070,...], differences are [32, 32, 64, 128, 256, 512, 1024, ...]
 
Anonymous
@ASCII-only Since you were curious, I set up a test bed for Seriously
 
@JonathanAllan Whoa kule
Can you give me the code?
 
You already did it, no? That is just a matplotlib.pyplot.plt
 
7:37 AM
Oh
 
How can I make a python thing that connects to the interent, and can take input from there?
or just another player or something
 
I don't know python
 
@Mego :( factor breaks on 0, but I guess I shouldn't be giving 0 to factor anyway
 
7:41 AM
@KritixiLithos Well, implicitly I only wanted a response from someone who did
 
Anonymous
@ASCII-only Yep, I noticed that too. Working on a fix
 
@DestructibleWatermelon I was just moving the conversation along shrugs
 
Anonymous
It's fixed now
 
Anonymous
It raises a ValueError exception now with n = 0
 
s/shrugs/¯\\\\_(ツ)_\/¯/
 
7:45 AM
You forgot the : before the s
 
no
I didn't
That is vim, and thats just entering the ex mode
 
I know it's vim, but I was thinking about the normal command mode
I have never used the ex mode
 
wait, that isn't right... It is pretty much just the thing that says to execute a command still
 
But you still have to type the : in command mode
 
Either way, that's vim
sed is sed
 
7:53 AM
I was talking about vim
 
I was referring to how you said I forgot a :
 
Anonymous
That must live on for eternity
 
or maybe he was trying to be part of the joke
 
7:57 AM
But seriously, why PPCG doesn't have a design?
 
:|
 
@KritixiLithos I doubt the reason we don't have a design is actually Seriously.
 
@DLosc @betseg said "seriously"
^^^^^^^^^
 
How many carrots are there?
 
8:00 AM
Yes, so I said "actually." ;)
 
Soon, every sentence will contain a name of an esolang...
 
True. Soon, there will be esolangs named after every word in the English language...
 
After that, every username will also be the name of an esolang...
 
I have an idea for an esolang yaaay
 
@betseg Do tell (perhaps in the Esolangs room).
 
8:07 AM
@betseg What's it going to be called?
 
@KritixiLithos BS (named after my username)
 
4 mins ago, by Kritixi Lithos
After that, every username will also be the name of an esolang...
 
Or is this joke getting old^^
 
The future is unfolding!!!
 
8:17 AM
You can write a sentence in this lang (if you try hard)
Transpiling to BF
 
 
1 hour later…
9:40 AM
ill have tomorrow
 
10:02 AM
What exactly is this esolang?
Also I have two esolang ideas
one is nearly implemented, the other not at all
I have to implement the last command
I'm trying to build a search and replace command for my esolang
It does not work the same as ///, because that repeats on the replacement text as well
 
10:29 AM
@DestructibleWatermelon Is it not just re.sub
 
hmmmm
I must investigate whether that works
also, I'm using a list, I guess I could join it, but that seems wasteful somehow
ehh
also I'm not using a standard regex flavour in my lang
 
Hey
 
hi!
also
I just realised I'm going to need to use re.sub for my pattern in re.sub
also, not sure how I should use multiple substitution rules. is there a re function for that
 
Hello
 
Hi
 
10:39 AM
I'm trying to figure out how to make a substitution for my language
 
I have an esolang idea
 
I think I might as well implement the substitution, because I'm going to have to do a lot to get this working without implementing anyway
 
The program is an electronic circuit
 
@TuxCopter You always have an esolang idea
@TuxCopter fair sure thats been done
 
But the only available components are PLAs
 
10:57 AM
@Dennis Can you pull Charcoal? Thanks!
 
 
1 hour later…
12:25 PM
0
A: Sandbox for Proposed Challenges

insertusernamehereThis will be a popularity-contest with graphical-output. What would you do with Apple's Touch Bar and a maximum 64k? This is my first idea for a popularity contest. Is it thought out enough? Is the idea itself good? Is there room for improvement (it sure is)? Thanks a lo for any feedback. tl...

 
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

int main() {
    int c, d;
    c = getchar();
    d = getchar();
    while(c != EOF && d != EOF) {
        putchar(
            (islower(c) && islower(d))
             ? (c - d) % 2
                 ? '-' : '+'
          : (islower(c) && isupper(d))
              ? (c - d) % 2
                  ? '.' : ','
          : (isupper(c) && islower(d))
              ? (c - d) % 2
                  ? '<' : '>'
          : (isupper(c) && isupper(d))
my new lang
transpiling to bf
 
12:39 PM
 
k
 
> OpenPizza is a community driven open source initiative to create a YAML-based standard and database for pizza recipes.
11/10
 
@feersum I'll take a closer look some time later, but nice work :)
 
12:58 PM
debian is so damn confusing
and verbose
I want arch back :(
 
@mınxomaτ you complain that Debian is verbose and then say you miss Arch? xD
 
@mınxomaτ You should try Java
 
@mınxomaτ Arch is way more confusing
 
Verbose?
 
arch is way less verbose
 
1:00 PM
Examples?
 
@KritixiLithos public static ArrayList<Character>() { return ArrayList<Character> hello = new ArrayList<Character>() {{ add("y"); add("e"); add("s");}}; }
 
#Java, 139 bytes
 
:p
 
Say you want to upgrade the kernel (imagine for a second arch didn't do that automatically). You would uncomment the testing repo in your pacman sources and simply upgrade. On debian, you have to add either testing or experimental, update apt, upgrade the kernel package and specify the experimental repo manually (-t experimental) again. And then you're left with other dependencies you have to resolve manually.
 
@Zacharee1 139 bytes excluding import statements
 
1:03 PM
@mınxomaτ that's not verbose, that's just complex
 
I don't have this problem, I never upgrade the kernel ¯\_(ツ)_/¯
 
@KritixiLithos oh right, import java.lang.ArrayList or whatever
 
@Zacharee1 It's verbose in the literal sense of the word, since you have to enter and modify way more text.
 
> using or expressed in more words than are needed.
ehhhhh
 
Well, I don't know what a kernel is...
 
1:04 PM
@TuxCopter That's a problem in and of itself
 
@Zacharee1 Well, they are not needed. On a sane OS!
 
@mınxomaτ but it isn't expressing more words than needed
It requires more steps than you think should be needed. That's not the same thing
 
@TuxCopter Yeah, but Debian's acient 3.16 kernel doesn't even support my laptops internal keyboard.
 
@mınxomaτ wtf
 
@mınxomaτ in any case, the comparison isn't really fair. Debian is built to be more end-user friendly, while Arch is made for experiments and advanced Linuxing.
Wait, Linuxing is a word/??
@mınxomaτ why not just use Ubuntu?
 
1:07 PM
@Zacharee1 Because Debian is the only OS that implements mixed UEFI bitness (chainloading). Otherwise I'd use arch.
 
@mınxomaτ Ubuntu is Debian-based. I get the feeling it has that
We also have kernel 4.8 in 16.10
 
@Zacharee1 No it doesn't.
 
It doesn't?
 
No. What's unclear about "Debian is the only OS that"?
Ubuntu doesn't include the modified grub nor the detection routines that Debian has: wiki.debian.org/…
 
It looks like it isn't that hard to put it into the installation sturmflut.github.io/linux/ubuntu/2015/01/21/…
 
1:11 PM
@Zacharee1 So? 1) I don't want ubuntu, and 2) that has all the problems of the current Debian solution.
 
Why would I know why? It says so right in the link you posted. You need USB keyboard, mouse and WiFi adapters.
 
@mınxomaτ most things need a keyboard and mouse
and the WiFi adapter is only recommended in case that tablet's adapter doesn't work on Ubuntu
 
Debian actually has a Wiki reference for my exact device. Ubuntu would be more work to get a system I don't need or want. Debian works, but it's a paint to use and install.
I don't know why you are linking to ubuntu, If I said before that I have no use for Ubuntu.
 
Just trying to show you that it might work
 
1:15 PM
It's pretty pointless to install a debian-based system with more manual work if Debian already works.
 
I thought Debian didn't work
 
I never said that
I said it's unnecessarily complex.
 
It's verbose in the same way Java is: It takes more steps and code (shell) in this case, to do the same things as in a more concise OS (/language).
@Zacharee1 I know it can be done manually. But I want an OS where this is officially supported. Which Debian is the only one.
 
alright fine
@mınxomaτ But that isn't what verbose means. Verbose means producing more output than necessary, not requiring a lot of steps to complete
 
1:19 PM
@Zacharee1 It is what verbose mean here.
Verbose is commonly used to describe things that require more input/code to do the same thing. See first comment here: codegolf.stackexchange.com/a/59353/42643
 
you just cited yourself
 
people upvote the message because of the content, not the correctness of the word
Yeah, but I don't think that's the correct usage
just like we always say things like "me and him are gonna go to the mall" or "who are you giving that to?"
 
That doesn't matter if everyone knows what it means.
 
@mınxomaτ but that's not what I'm discussing here
 
1:26 PM
@Zacharee1 It doesn't really matter what you discuss. If I say verbose in this room, I know that other people know what I mean. This makes Debian more verbose than arch. In both senses of the word. Since debian's system utils also output way more fluff by default.
To say the same things.
 
OK, but again, I'm talking about the correctness of that word, not whether or not people understand it
 
@Zacharee1 Correct is never, in any human language, a good measure for anything. What counts in communication is if words are appropriate for their use (putlearningfirst.com/language/07crect/07crect.html). Whether they are correct per some definition (which is not canonical, since language is not law) is not relevant and adds nothing to a discussion.
 
Alright, well I don't find verbose to be appropriate for that usage.
 
@mınxomaτ Which is also why Lojban is ridiculous
 
> Lojban is ridiculous
 
1:34 PM
halp how do i close a c program that accepts input when user sends EOT
 
Just kill it or send EOF?
 
if input == EOT break?
 
I think he meas he ran it and can't stop it
 
oh lol
 
1:36 PM
@betseg Nuke it from orbit. It's the only way to be sure.
Though seriously, have you tried crashing a satellite into it? Most rouge fitness algorithms can't use telekinesis, so wouldn't be able to prevent a large metal space rock from falling through the atmosphere.
If it's a genuine AGI though, please don't kill it.
 
ಠ_ಠ
 
@betseg Open a Solaris system and type killall.
 
> open a solaris system
lul
 
It should kill the program (and everything, but nobody care)
 
input == 4 && system(killall);
 
1:41 PM
@DestructibleWatermelon No, I actually fell for it. If I hadn't fallen for it, I wouldn't have edited something on main.
 
In other news, researches create mice without legs using snake DNA: cell.com/action/showImagesData?pii=S0092-8674%2816%2931310-1 (open Figure S3)
 
@mınxomaτ dafuq
 
For science!
 
@mınxomaτ You monster.
(that was a quote, that was a quote!)
 
What kind of genetic shit is this
 
1:44 PM
@TuxCopter phenotypic
literally.
 
Once we know enough about how DNA works, it'll be just like programming. Or so we hope.
 
Ah I see it's some Cas9 magic
 
@wizzwizz4 We know enough about DNA to program it. Problem is that it's largely non-deterministic. I actually worked on creating algorithms for that for two years at a local university (Research was: "Computer-assisted identification of transcription factor binding sites in context of the hourglass model of animal embryo-genesis")
The first and last time I had to use Java.
 
I need the programming language which can be learned and used easily (i can't use brainfuck) by any person in the world for my presentation.
 
Some BASIC dialect?
 
1:52 PM
no
 
Why not?
 
GolfScript
 
It doesn't really get any easier than basic BASIC. Well, maybe just pseudocode.
 
a more readable one. i'm thinking of logo or noweb
 
basic is quite readable
 
1:53 PM
BASIC is readeable
 
How is basic not readable? It's basically english.
no pun intended
 
Ok
 
Or do you mean "simple", as in the amount of tokens (since you mentioned BF)?
Though for presentations (unless the code needs to run), pseudocode is probably a better choice. Or a flowchart for really trivial stuff.
 
@mınxomaτ So, kinda like Malbolge?
 
@El'endiaStarman Probably. (get it)
 
2:06 PM
So programming DNA is like programming in Malbolge?
 
@GLASSIC Aside from BASIC, which is an option I'd suggest as well, you could perhaps use Python. For simple stuff, it should be fairly intuitive.
 
Well Malbolge is deterministic
 
But jokes aside, it was a great research effort. Our whole team significantly improved all kinds of processes involved in TFBS identification. This'll help medical research for years to come. Actually, three people of the original team are still working on that.
 
@mınxomaτ Took me several moments to spot the pun. :P
 
@El'endiaStarman What pun? I... still don't get it. :-(
 
2:11 PM
@wizzwizz4 DNA programming is largely non-deterministic, meaning probabilistic...
Not the easiest pun to get, that's for sure.
 
We're comparing DNA to Malbolge?
I must have missed a lot.
 
@El'endiaStarman Yeah, it's hit or miss.
 
@Lynn That's true. I think though that the amount of work involved to make either kind of program would be fairly similar.
Ignoring the fact that we have all the rules for Malbolge already and don't have to figure them out.
 
I think Lenovo is just trying really hard to have the worst customer experience.
You'd think that if you have a laptop, and a Windows install medium (+ key) shipped with it, that this is all you need to reinstall Windows. Turns out you need to buy a $50 usb drive with proprietary drivers to install Windows again on this machine. Jesus...
 
???
 
2:20 PM
Yep-
Windows 10 update (read: upgrade) overwrites the badly written recovery system. Should you ever need to reinstall Windows, you need to buy that USB.
 
@Fatalize As someone who speaks intermediate Lojban… yeahhhh agree
 
Lojban is a syntactically unambiguous language that attempts to be semantically unambiguous.
 
@mınxomaτ I know what you mean. I Recently got a Lenovo laptop that came with 10, and I had to install 7 on it. It doesn't support 7 very well, so it took me almost a whole day of kludgey hacks to install it
In the end, I had to inject USB 3 drivers into the windows installer for it to work
 
An extract from a very scientific scientific paper:
 
2:33 PM
(Don't ask me how the hell I found that)
 
> Chicken chicken chicken—chicken chicken chicken chicken chi-
cken, chicken chicken chicken chicken chicken chicken chicken
chicken chicken
C
(log
n
) [2]. Chicken
p. pu
[4] chicken chicken
chicken chicken chicken chicken chicken-chicken chicken
 
@PhiNotPi I don't think it used that; that program actually generates legitimate-looking papers.
 
Although that did come to mind when I saw it.
 
2:35 PM
> Robots Considered Harmful
 
> the visualization of e-commerce might never have occurred.
THAT'S NOT POSSIBLE
 
> Comparing E-Commerce and Von Neumann Machines
This made my day
 
I always like their graphs.
 
It took ages to write ScareJoe; Chatgoat wasn't even familiar with the programming languages involved at the start of the project.
 
2:37 PM
TIL complexity is mesured in Joules and time in nanometers
 
trick: change .html to .pdf in the URL
 
> A wireless tool for controlling web browsers.
Wait I understand the paper
Flip-flop gates are harmful because you can control web browsers using flip-flops :O
And the solution is to use an IPv7 architecture named "Wasium"
Seems legit
 
Wasium is the 128th chemical element.
 
@El'endiaStarman source? All I've found is this: en.m.wikipedia.org/wiki/Wasium
 
Mobile Wikipedia link spotted
 
2:44 PM
@PhiNotPi We haven't even synthesized element #128 yet, but you heard it here first. It'll be named Wasium!
 
> we deployed 58
Nintendo Gameboys across the 2-node network, and tested our
32 bit architectures accordingly
11/10
 
Totally unrelated: I want to write a computer simulation of the cerebellum.
Seems simple enough, as far as brain stuff goes.
 
You want to simulate a part of the brain, and you think it will be simple
...
 
It's been done before.
 
linky
 
ok
 
They had a million-cell simulation. The cerebellum is actually relatively simple, it's like a giant grid of RAM.
 
@PhiNotPi Oh, Lojban totally embraces semantic ambiguity, actually! That is actually a thing I like about it
You can erase (make ambiguous) every bit of info you express. Tenses, singular/plural, gender, etc. are all optional. It’s pretty fun
 
@ASCII-only Done.
 
You can even replace nouns and verbs with “elliptical” ones, where it’s just, I trust you to infer what I mean from context (or it doesn’t even really matter).
 
2:57 PM
So, in Lojban, you can basically say Please smurf a smurf of smurf?
 
Part of semantic ambiguity is that dictionary definitions aren't / can't be perfect.
 
Yeah. Lojban’s really suck :T
 
PGA33X6 FTW ._.
 
3:20 PM
(Cody from Cody's Lab took a long-dead cow skeleton and arranged it on his front lawn.)
 
Ok
 
One of my friends asked me whether computer burns if they nest 10 loops inside each other, and I answered YES!
 
>_>
 
@El'endiaStarman Cody's Lab does some weird stuff.
 
@PhiNotPi I think Cody actually says "I'm so weird." near the end.
 
3:28 PM
@El'endiaStarman nothing will top "magnet fingers"
 
@PhiNotPi Was that from the video where he supercooled a electromagnet+magnet?
 
warning: I really do mean magnet fingers
 
@PhiNotPi o.O Well jeez. I thought the piece of magnetic material in his hand was from an accident or something.
 
With "content warning" banner, how do I say OK, I want to watch the video?
 
Create an account
 
3:36 PM
@PhiNotPi O___O
 
I actually can't watch it ;_;
 
Apparently I have to replace part of the URL with v/.
 
3:51 PM
@Downgoat I don't actually :/
 
@ASCII-only pls halp. u sai to taek ast printer from cheddarfile but no ast printer?
@ConorO'Brien It's the thing so you can write STDLIB functions in cheddar:
# find
func main(item) {
    for (let i := 0; i < self.len; i += 1) {
         if (self[i] == item) {
             return i;
         }
    }
    return -1;
}
 
0
Q: Multiple definition when only defined onec

SanapciI have the following problem if I include a header file to my program. ( To decrease the length of post I deleted the implementation of functions ) My files look like: // The main file: cturing.cpp #include <iostream> #include <fstream> #include <stdlib.h> #include <time.h> #include "rule.h" #...

 
@PhiNotPi I prefer my fingers magnet free, gluten free and organic.
 
> Thank you for your assintence,
850/10
 
4:08 PM
@LuisMendo bernoulli factories?
 
16 hours ago, by Luis Mendo
@El'endiaStarman You take a sequence of iid Bernoulli variables with parameter p, and transform it into a sequence with parameter f(p), where f is a known function and p is unknown. For example, multiplying two original variables synthesizes the square function
15 hours ago, by Luis Mendo
@El'endiaStarman A Bernoulli variable is a random variable taking values 0 and 1. It's like a coin toss, with head=1 and tail=0. But the probability of head need not be 1/2; it's an arbitrary p
It's a very interesting field!
 
I never heard of that.e But to be honest my knowledge in statistics is comparable with the general knowledge of Jon Snow.
 
@flawr A paper poetically put it as "Generating new coins from old" :-)
 
Is it the case that you can construct any function with any desired probability of getting a 1 by combining a single Bernoulli variable with itself in various ways?
 
@LuisMendo You mean money laundering?
 
4:14 PM
@El'endiaStarman No, some functions are known to be impossible. For example, min(2*p,1) is not possible (but min(2*p,1-epsilon) is)
@flawr Heh
@El'endiaStarman Also, if by with itself you mean the same realization no, you need several realizations (several coin tosses with the same p)
 
@LuisMendo And epsilon can be arbitrarily small, right?
@LuisMendo Yeah, I meant the latter.
 
@El'endiaStarman Yup. TBH; I never got the method they used to produce it. But it is possible to generate that function. Also sqrt(p) is possible. And in fact p raised to any positive value (that will be part of the content of my paper; it's a new result as far as I know)
 
@LuisMendo So the goal is finding p ?
(Is there any good introduction to that topic?)
 
@flawr No, p is and remains unknow. The goal is to produce a Bernoulli random variable with probability f(p) given a sequence of independent realizations of a Bernoulli random variable with probability p
Let's see if I can find one
 
@LuisMendo Oh now I understand!
I just found one that seems somewhat accessible
 
4:24 PM
@flawr That one is in my to-do list. There are more readable ones, like Keane, 94 (but it is not free)
@flawr This seems to be a good introduction
 
Is it possible to construct f(p) = 1-p?
 
@El'endiaStarman Sure, that's an easy one. You just logical-negate the original coin
0 becomes 1, and 1 becomes 0
 
Oh yeah, that is easy.
 
The next-easy one is probably p^2 (square of p)
 
How do you get square root?
 
4:30 PM
@El'endiaStarman That's trickier. There's a paper that discusses it. It uses a Taylor expantion of the root, and each term of the series turns out to be easily realizable. Let me find the paper where I originally saw it
Here. Second half of page 6
There's a slightly more efficient version of that algorithm that will be on my paper.
By "more efficient" I mean requiring fewer tosses of the original p-coin, on average
*expansion
 
so... you're golfing the number of tosses? :D
 
@ConorO'Brien Heh. Who said golfing doesn't have useful applications?
 
not I!
 
@LuisMendo Huh, cool.
 
@El'endiaStarman That would make a nice challenge here I think. Catalan numbers, well-formed strings of brackets :-)
 
4:41 PM
0
A: Sandbox for Proposed Challenges

Kritixi LithosHow many times does [number] appear in the range [start] to [end] code-golfmath The program should take input (from STDIN or otherwise if your language doesn't have STDIN) the number, the start of the range and the end of the range. Example For example: //Input example 1 3,1,100 //Input exa...

 
^ Any help is appreciated!
 
^ I just commented on it. Nice idea!
 
@KritixiLithos Replying is an easier - and subjectively better - way than arrows.
 
CMC: what's an English word that not very many people know?
 
(Well, easier when chat is high activity)
 
4:47 PM
@DJMcMayhem VTC as too broad
 
@DJMcMayhem agentry?
Not even my spell-checker knew that!
 
@DJMcMayhem quizzaciously
 
I'm a fan of "ereyesterday" and "overmorrow"
 
@DJMcMayhem gaot
4
only valid in certain dialects of english however
 
@Downgoat -1 lots of people know that
 
4:51 PM
orly?
 
@Downgoat yarly!
Ooh! "yarly" is a word! :-)
 
@Downgoat orly? I arrdly know er!
 
@DJMcMayhem CMC
 
@LuisMendo I think Bernoulli factories are kinda neat. Here's a related question: let's say that you have a target function, but you are limited in your number of flips (to 8 or some other arbitrary number). How closely can someone approximate the target function?
 
@DJMcMayhem Eucatastrophe
 

« first day (2100 days earlier)      last day (2741 days later) »