« first day (1747 days earlier)      last day (3095 days later) » 

6:08 AM
0
Q: RSA cryptography cracker

ghosts_in_the_codeThe security of RSA basically relies on the fact that if a product of two primes is given, it takes too much of time to find the original two primes. Create an algorithm that, on being given a product of two prime numbers, will output its only two prime factors. Code golf challenge, so time wil...

 
Greetings, my friends
Mayhaps is anyone a user of the Windows operating system?
I require a John Favreau
Can someone build it on Windows and tell me if it works with the test files?
 
I'm on windows but I dislike shouting birds
 
ill do it bbycakes
 
@Calvin'sHobbies Fixed
 
how do i build
 
6:12 AM
@phase THX BB
 
i cloned it
now i confused
i see makefile
 
@phase Clone, cd to directory, make
I have no idea how to develop on Windows
So I don't know if makefiles do anything there
 
@mınxomaτ hi
 
@phase ?
 
I've got make installed
@mınxomaτ just thought I'd say hello
@AlexA. It's just kinda sitting there....
 
6:14 AM
I've been here for hours :)
 
@phase It isn't compiling?
 
@mınxomaτ It showed your name just appear on the side
I don't really know what that means, but I assumed it means you just joined :P
 
@phase Hm. Well... Give it a sec? :/ I don't know. Do you have g++ for Windows if there is such a thing?
 
@phase Just type the GCC command. The makefile is not really necessary.
 
Or GNU Make for Windows?
@mınxomaτ I wanted it
 
6:16 AM
if there is such a thing of course there's such a thing
 
I want to make sure the whole project works because I want to make a versioned release
 
@AlexA. For windows, I mean.
 
oh wait this is C++, i no have dat installed
 
You don't?
:O
 
@AlexA. I'll try it. A sec...
 
6:16 AM
:D
Thx bb
 
I've got gcc & clang but no g++
wait is g++ in gcc?
 
Uhhhhh I don't know
Clang might be able to do C++ but I'm not sure whether that's clang++ or some other kind of crazy thing
 
- C++ Compiler: C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\g++.exe
- Command: g++.exe "C:\qqq-lang-master\src\qqq.cpp" -o "C:\qqq-lang-master\src\qqq.exe"
@phase Is the command for windows.
 
(x86) is on 32 bit
 
So what?
It is still MinGW64, so 64bit.
Just replace the path with your MinGW installation.
 
6:20 AM
well what if I installed it in a different place? how does one navigate through windows explorer!?!?!?
@AlexA. I've got g++ but the makefile is just stalling :\
 
@phase Is it in your path?
 
You can also get 32-bit compilers from mingw64 :P
 
@AlexA. ofc i no how to add tings to ma path
 
set path=%path%;<whatever>
 
6:22 AM
@AlexA. I don't have the dlls
 
@mınxomaτ OH SHIT IT WORKS! Thanks so much!
 
@phase Don't use the makefile. You don't have the make utility. Just use g++ -.-
 
@mınxomaτ I did and I got the pic above
 
@phase personality_v0 it's saying you have no personality :(
I disagree <3
 
@phase You have a broken g++ install. Reinstall and stop trolling.
 
6:23 AM
@AlexA. ----[---->+<]>---.---------
@mınxomaτ broken whaaaa
 
> stop trolling
lal
 
no i just stoopid at cpp
 
@AlexA. Here's a binary if you want it: workupload.com/file/V9zQIrzn
 
@mınxomaτ I don't need the Windows binary for anything, I just wanted to make sure it works on Windows so I can do a GitHub release in good conscience. :P
Unless uploading a binary is part of that...
 
@mınxomaτ hay you should check out my new webide localhost/link/code=11+o&input=
 
6:26 AM
@AlexA. You have a "bin" folder. That's usually where binaries go for users who don't want to recompile themselves.
So I assumed :)
 
Oh, I had that there because that's where the makefile writes the binaries
I actually had to add a .gitkeep in there otherwise Git wouldn't let me add the directory to version control
 
It's a single source file, so any directories or makefiles are a bit overkill imho.
 
Oh definitely.
But this is my first time with all this stuff so I want to learn. :)
Apparently I can add binaries to the release, so I'll add your Windows one there. Thanks so much for testing it for me!
And thanks @phase for trying to test it for me!
 
@AlexA. yay, a medal for participation
 
Also lol @ 0.07 MB executable on Mac and 1.95 MB executable on Windows. :P
 
6:31 AM
I could golf that :D
 
Haha
Why the difference, do you know?
 
Overhead
 
Idk what that means
It's... over my head. B)
 
6:33 AM
Runtime checks, overflow checks, debugging symbols...
 
It statically links some libraries on Windows.
 
ld from gcc is also not optimizing.
For example, if you'd use crinkler as the linker, the executable would probably be around 1 to 1.5 kB.
 
uh ok
Thanks everyone!
 
> uh ok
quotes to live by
 
@AlexA. You're welcome.
 
0
Q: Detecting changes in a data set

berkayI have a project where a program takes numerous integer values and detects changes between these values. Only one different value from others are accepted, and only one time. e.g: 10 10 10 10 10 18 10 10 10 This is an accepted data entry, as 18 is used only one time and is the only differe...

 
The first official release of ??? has happened! Thanks to everyone who contributed! (cc @BrainSteel)
@Calvin'sHobbies @phase @mınxomaτ See link ^
 
I think I've found a bug, lemme try something.
 
What's the bug?
 
@AlexA. I don't get the quote thing. What would be the equivalent of [[][]]?
 
6:51 AM
" " ' " ' " ' " ", I believe
apostrophes toggle whether " corresponds to an open or close bracket
 
hello!
 
Also @phase thx 4 folo me on gh bb <3 xoxo
@TanMath Hey, how are you doing?
 
@AlexA. no prob bbycakes <456
 
@AlexA. That's weird. So it is a non-trivial replacement.
 
@AlexA. good...i think I want to write a programming language...
 
6:58 AM
@mınxomaτ There are two major distinctions between how BF and ??? work: Traveling left of the starting cell in ??? is a no-op, and brackets use the same character but with a toggle character to switch between open and closed.
@TanMath It's fun. :)
 
> Traveling left of the starting cell in ??? is a no-op
Same for BF.
You should also mention that " is initially a loop-start.
 
Oh yeah, that'd probably be a good thing to mention...
Okay, done.
Thanks for the suggestion, @mınxomaτ.
 
@mınxomaτ in my whole life i've used one bf interpreter that enforced that
it's probably worth mentioning that it's true about ???
 
@AlexA. how do i start?
 
first thing to do would be decide how you want it to work
 
7:06 AM
@TanMath Think about what you want to achieve. Will it be a golfing language? What will the syntax be like?
@undergroundmonorail Good idea.
 
@AlexA. yes... i want each command to be one or two characters, and it will be like python...
 
you might want to look at pyth as inspiration
although it's kind of taken its own path, it's not as much as python like it once was haha
 
@undergroundmonorail O has a lot of inspiration from Pyth, including some of the same variables
 
Is O stack based?
 
@AlexA. I also see that ??? has no 8bit cells. That's worth mentioning. Also ! doesn't always output the character, but a hex number in some cases.
 
7:11 AM
@AlexA. Yup. It's a lot like GolfScript/CJam
 
@mınxomaτ I don't know what you mean about the 8-bit cells. And yeah, I should mention the hex thing. I forgot why we did that. I think that was something I copied from a BF implementation I was working from.
 
@AlexA. Surely not, because a lot of brainfuck programs use the wrap-around at 255/0.
I.e. 8bit cells.
This program should keep outputting random bytes until forcefully closed. With ??? it outputs a bunch of hex numbers (some of them bigger than 255) and then stalls after a few bytes: ;;;.."-........"-"-..;,'";;'";;'".;;.'",",;;.---"-"--'"-.;";'";";;'"""-'";;",'"";'‌​";",--'";'"-.-'"".--"-'";.-,'";;,"-!'",'";;"
 
The memory tape is a std::vector full of chars. I don't really know what I'm talking about, but I think that means that running past the whatever end std::vector allocated for it will just reallocate memory, so you can continue to move in that direction.
@mınxomaτ Try this in BrainSteel's interpreter: github.com/BrainSteel/BrainF-k
 
This is how the output should look like.
@AlexA. Easier, here's the 1:1 code from my example in C: pastebin.com/C2sxJkUp
 
./bf -L ??? -P smart ~/yourfile.qqq
@mınxomaτ Huh?
 
7:20 AM
That's the code.
 
For what? I'm confused.
 
How it should behave, implementation-independent.
 
@AlexA. When do you usually go to sleep?
 
@AlexA. You can convert BF to C. This is the 1:1 translation of the BF code I'm trying to run. That's how it should behave.
 
@BadCatEye Ideally? Like 10:30pm. Usually? More like 1:00am. :/
 
7:21 AM
O got a new operator: N pushes a blank codeblock, saving you a byte insteaed of doing {}
 
@AlexA. Well there's your problem
 
What?
 
u no slep
 
[tag:alex-is-...
With sleep, you could be right
 
My girlfriend is playing Fallout 4 since it just came out so I'm hanging out with her while she plays it. Special occasion.
2
 
7:23 AM
:D
 
@AlexA. Here's the brainfuck code. Because there are inconsistentcies about the functions of brainfuck, here is the C code that is generated by 1:1 search-replace of the brainfuck code.
Both should output and behave exactly the same way.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I would say that's a trivial variant of codegolf.stackexchange.com/q/12718/194
 
so how do i write it?
bye!
 
Can anyone test this out for me? localhost/link/code=11+p%20"a a"o&input=
3
oh wait that's weird
there's a space in the url
but it works fine..... O_O
 
7:39 AM
@phase I, for one, am getting tired of you posting localhost links.
3
 
never stop
 
Can't stop won't stop
 
kill it with fire
 
@phase Unlike El'endia, I have not yet grown tired of your localhost antics; I still find them somewhat amusing. That may not be true forever, but currently my attitude toward it is this:
 
7:54 AM
@AlexA. I'm working on pushing it to Heroku right now, so that may be the last one I ever do.
 
You're pushing your localhost to Heroku...?
 
@AlexA. Yeah
 
> localheroku
 
It's a Python web app, which I am pushing onto Heroku
 
Oh nice! Using Flask, I assume.
 
7:56 AM
Yup
It's the same as the old Java one (using Spark), but this new one has.... way more bugs...
 
Haha
 
I haven't touched Heroku in months, so this is going to be fun.
oh lord npm why what how when did you come on my computer
 
Isn't npm a JavaScript thing?
 
Yes, and I hate both
 
@phase I would be interested in assisting with this.
 
8:04 AM
@AlexA. I was hoping so :D
 
:)
 
@AlexA. your gf is a total nerd, you know that, right ? :P
 
@Optimizer Of course I know that! It's wonderful! :D
 
yeah XD
tell her to check out One Piece, though its 800+ chapters now XD
 
I mentioned it to her the other day; I guess she used to read it but lost interest.
 
8:09 AM
no wonders.
 
another localhost link ?
 
it literally says githubusercontent.com/ what more do you want from me
 
@phase Wonderful, isn't it?
 
@mınxomaτ It's so awe inspiring I'm having trouble comprehending what the hell it is
 
8:13 AM
If you don't get the reference, click the link.
 
oh my lord how did I not recognize that I feel ashamed of myself
 
@phase I don't think you could use this exactly without permission/licensing/whatever, but something like this might be neat for the logo.
Or this:
haha
 
Turn it on its side, recolor it, boom bam pow right around copyright protection.
 
ಠ_ಠ
 
@AlexA. what is your github username?
 
8:18 AM
@AlexA. Judging by a google image search, that image has unclear copyright.
 
@phase You should know this, you follow me. :P (ararslan)
 
@AlexA. but I don't have it memorized yet :P
 
I wanted to enlist the help of my girlfriend in creating a logo (she's an actual artist) but she's playing Fallout 4. Ain't no stoppin' that.
 
I need to play more video games. All I ever play is Smash Bros Melee......
 
@phase "pazaz"? Do you mean "pizazz"?
 
8:23 AM
@AlexA. like i no how to spel
 
@phase O ^
 
:O
 
@Calvin'sHobbies It looks like we're praising the letter O or something.
The new IDE is at o-lang.herokuapp.com, and the old one is at o-lang-old.herokuapp.com
 
That moment when I'm about to make a lewd, offensive joke and then I remember that moderators are supposed to set a good example...
 
@AlexA. What do you do in Cancer research and Biostatistics?
 
8:26 AM
So you found my name from my GitHub profile and Google searched me? :P
 
ಠ_ಠ
 
Or he's a wizard. Judging by his golfs he's totes a wizard.
 
> totes a wizard
like in a tote bag
 
and your face is totally not matching with your personality here :P
 
English is my -1st language
 
8:28 AM
Yeah. You speak American.
@Optimizer Oh I see, so you're on my LinkedIn profile. ;)
 
@AlexA. or a SAS profile, I can't figure out really ..
 
Side Angle Side Formula?
 
Oh, maybe I do have a SAS Communities profile. I can't remember.
 
are you going to answer or simply try to figure out where I am ;)
 
@phase SAS used to be an acronym for Statistical Analysis System but they changed it to just be "SAS."
 
8:30 AM
sassy
 
@Optimizer What am I answering? I already know your country. :P
PSA: Don't use SAS.
 
Which theme should I use? (Not Flatly, already used that)
 
@phase Superhero.
 
@phase Paper or Darkly
Yeti is kind of fun too
I don't like Superhero
 
 
8:34 AM
That looks bad
Real bad
 
yeah
 
Where does that orange come from?
 
The font looks small on Lumen
@mınxomaτ Links
 
@phase Yeah. Not a fan of this one either.
 
Paper doesn't outline the entire box
 
8:37 AM
> what even is Paper
Paper is shit, that's what it is.
I revoke that recommendation.
 
lol
 
I have strong opinions about things that affect me in no way.
 
My recommendations are terrible
Also the code input box isn't monospace? ಠ_ಠ
 
monowhatnow
monospace in english from french is minivan
 
8:41 AM
translate: monospace
(from French) MPV
MPV...?
 
 
Mean platelet volume?
 
I may by failing french <.< >.>
 
Most player valuablé
 
@phase I don't like the stark contrast.
 
8:42 AM
same
 
@Sp3000 Most player, such value. Amaze.
@phase I did first year French (101-103) in university.
 
As for monospace, font-family something?
 
^
A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters and spacings have different widths. For example, the two high-use letters "I" and "E" do not need the same footprint. Both letters differ in center-to-next-letter edge (and center-to-center) spacing distance needs (margins) in variable width fonts. The variable that changes is offset from what would otherwise be monospaced centering. In a modern proportional font, every...
 
 
Looks alright. Better that the shitfest that was the previous set of themes.
The old one uses Flatly?
 
8:47 AM
Yeah
 
There's themes?
 
Can you do a screen cap with Flatly for comparison?
 
Oh those types of themes... right. I was imagining custom layouts specifically for esolang interpreters for a moment there
 
8:48 AM
I like that one the best :/
 
I'm working on making the buttons less crap
 
typedef struct{P*st;L p,l;}STB;typedef STB*ST; //type:stack,top,len
ST newst(L z){ST s=alc(sizeof(STB));s->st=alc(z*sizeof(P));s->p=0;s->l=z;R s;} //new
V psh(ST s,P x){if(s->p+1==s->l)ex("overflow");s->st[s->p++]=x;} //push
P pop(ST s){if(s->p==0)ex("underflow");R s->st[--s->p];} //pop
P top(ST s){if(s->p==0)ex("underflow");R s->st[s->p-1];} //top
V swp(ST s){P a,b;a=pop(s);b=pop(s);psh(s,a);psh(s,b);} //swap
WHO WRITES PRODUCTION C CODE LIKE THIS
 
it's all the rage with the kids these days
 
hu tot u tu ryt lyk tat
 
@AlexA. the first question..
 
8:53 AM
Using Flatly w/ Bootstrap buttons
 
@Optimizer Oh! Sorry, forgot. I work for a company called Cancer Research and Biostatistics (abbreviated CRAB) as a SAS programmer. I work in the statistics group writing tools and generating reports for analysis. We parner with cancer researchers specializing in different fields but I mostly work on the myeloma studies.
 
I see.
 
@phase Overall it looks nice but why does your fixed width font look like butts
 
@Optimizer He's also from the old west, parner.
 
like two O
 
8:56 AM
 
OO
 
OOP
 
@Calvin'sHobbies huh?
 
^
 
@AlexA. if you can do better, be my guest
 
8:57 AM
@phase It's probably a difference with how our browsers render it.
 
I'll push in a sec
 
I mostly just wanted to say butts
 
oh crap how do you unstage changes
 
Well, if staging is git add, is it git subtract to unstage?
 
nope. git reset
 
8:59 AM
@phase I'd prefer the run button on the bottom. Whenever I run pyth I always think the permalink button is run. You could put them on the same line and save vertical space.
 
@feersum I was kidding :P
 
git reset --hard
 
@Calvin'sHobbies I agree with this
 
@AlexA. git rm to unstage
 
@Calvin'sHobbies Perfect idea!
 
9:00 AM
457
A: Why are there 2 ways to unstage a file in git?

Ryan Stewartgit rm --cached doesn't unstage a file. It stages the removal of the file from the repo and leaves the file in your working tree, leaving you with an untracked file. git reset on the other hand, will unstage any staged changes for a given file. Edit: Thinking about it, though, if you used git rm...

That doesn't unstage
If I made a version control system, all of the commands would be from the Space Jam theme song.
 
 
@phase Can you do Run and Permalink on the same horizontal line?
 
@AlexA. that's what I was aiming for, but I suck at all of the web stuff
I'm going to go google how to do that
 
I'd also vote to put the byte count in line with the "Code" textbox header, or maybe under it like cjam does. Also the "O" in "O Online IDE" could be a link to the github and the "This is an IDE..." sentence could be moved to the bottom or removed altogether
 
^
CH knows what up, yo
Peace bros, I'm outie
 
9:06 AM
@Mego I suppose someone already sent you a link since I got two upvotes on answers to that challenge last night, but we've got this: codegolf.stackexchange.com/q/41787/8478
 
 
Why not [O](linky)nline IDE? :P
 
That would be confusing
 
Confusion is good.
 
C[o](linky)nfusion
 
9:10 AM
 
but seriously? do we need to call it an IDE ? that's soo 2008
 
@Optimizer Do you have a better name for it?
 
"interpreter"
 
I think O Interpreter sounds a little lame
 
9:11 AM
O, Interpreter
 
it's certainly more accurate though ;)
 
Compile this
 
Oh! Interpreter
 
you can write poetry
 
Why not O Christmas tree
A Christmas tree sounds much more fun than an IDE.
 
9:12 AM
Buttons away from each other or close together?
 
on top of each other
 
You should make the other O a link also to provide better redundancy.
Actually all of the o letters in the page should be links.
 
 
@feersum "O Online IDE - brought to you by Mark Z. Danielewski"
 
@MartinBüttner out of context quote of the day
 
9:16 AM
/me gives up on trying to understand Martin's last message
 
^ you should enjoy his second last one
 
I need a haircut. Anyone know a good online barber shop?
 
@feersum Here is a page from his book "Only Revolutions": filmmakermagazine.com/wp-content/uploads/2012/07/…
Have you heard of House of Leaves?
Or seen this xkcd?
 
nop
 
9:21 AM
Is anyone getting Application Error on this? o-lang.herokuapp.com
 
Yes
 
> Build succeeded
 
9:27 AM
@Calvin'sHobbies that's too boring
oh no heroku doesn't redeploy when I amend onto commits ;-;
 
9:56 AM
sooo otired but i cant fix bugg
 
"otired"
how appropriate
 
10:09 AM
so its tired'o clock?
 
omg ima just put bin in mah repo
 
10:29 AM
ͣ͠ϒͣ͠ϒͣ͠ϒ
 
11:18 AM
0
Q: PHP and "STDIN or an acceptable alternative"

insertusernamehereI had a few discussions regarding to use or not to use STDIN in answer written in PHP. Reading from STDIN is very expensive in PHP consuming 12 bytes: fgetc(STDIN) // single character fgets(STDIN) // whole line Different wordings in requirements From Implement a Truth Machine take in...

 
12:08 PM
@PeterTaylor Thanks for your input
 
12:57 PM
Hello
 

« first day (1747 days earlier)      last day (3095 days later) »