« first day (1673 days earlier)      last day (3162 days later) » 

1:04 PM
damn, looks like there's still no usable free tool for stamping a pdf in linux
 
Stamping?
 
Try printing it out and using your foot
 
Interpreters in Haskell should be a standard loophole.
 
@georgeunix yeah, like rubber stamping, but with pdf files
 
Acrobat/Reader in PlayOnLinux?
 
1:08 PM
does reader do stamps? and by PlayOnLinux, do you mean wine?
hm, that reminds me, I should try okular again..
 
Yes.
PlayOnLinux is a nicer wrapper around the command line tool
Which will also manage the dependencies too
Inkscape can write on PDF documents
That's free
And it should be in your distro's repo
 
inkscape can only load one page, and borks the fonts
 
:/
Adobe Reader can sign documents...
And annotate
 
acrobat is not free
 
I meant Reader
sorry
I don't know what Acrobat Online is
That may help
I don't know if it is free however
 
1:14 PM
Is Linux the only OS you have available?
 
POL or WINE will run a Windows program that should be stable enough, @BetaDecay
No license for Windows is required!
 
@BetaDecay the only OS easily available
 
acrobat.com?
 
Ah OK
They've stopped acrobat.com then
Reader in a POL container should be fine.
Don't supply your own .exe, just use one of the .exes in their repository
 
1:19 PM
the nicest tool I found so far is xournal, but it doesn't seem to handle stamps in vector format
@georgeunix what is POL?
 
PlayOnLinux
 
Alternatively, winetricks?
 
I've rewritten one of my sandboxed challenges (adding a theme and clarity, hopefully)
I'd appreciate a review:
0
A: Sandbox for Proposed Challenges

Nathan MerrillSorting Trains You are in charge of designing a train yard. At your junction, you have an In/Out track and storage. Train cars come in a random order; your job is to arrange them into 4 different ordered trains. Land is expensive, so we need you to minimize the amount of storage tracks we nee...

 
@georgeunix wine messes up the fonts
 
1:26 PM
@BetaDecay Inkscape messes up the fonts, not WINE?
Anyway, WINE provides a Windows environment on Linux, so, you can run the format's creator's own program
WINE is not an emulator, though, as the backronym explains, instead the project's contributors just re-write the code that makes Windows from scratch
 
metagolf to the rescue!
3
A: "Hello, World!"

Martin BüttnerPada, 83 68 bytes ~.O~Ow~q~Owo~O~Oww~Q~qwo~q~O~wQ~q~w~q~q~Q~Ow~Q~Q~wo~q~w.~q~w.~.wO~qw I believe this is optimal. There might be a shorter version using * and ?, but I don't see how it would work or how one would go about finding it. The language has recently undergone some changes after I st...

 
Hey, and welcome to PPCG. Unfortunately this question belongs on the site Android Enthusiasts, and is off topic here. — Beta Decay 2 hours ago
@BetaDecay Actually it doesn't, because it's spam
 
@Doorknob Oh well, it's deleted now
 
@georgeunix yes, because I deleted it :P
 
haha
 
1:39 PM
@MartinBüttner Perfect timing: I can't seem to catch up with Sp3000 and my 21-byte submission just got cracked. :/ Seriously though, I could use the extra time.
 
@Doorknob damn, I didn't even notice the link
 
@aditsu Link?
Oh.
dw
 
in that deleted question
 
@aditsu How far are you with your PDF stamping?
 
I just asked somebody else to do it :D
 
1:42 PM
Oh haha
 
I might write a tool at some point..
 
@MartinBüttner @Doorknob The sandbox has been un-featured again.
 
or has it?
 
@NinjaBearMonkey No it hasn't. :P
 
@MartinBüttner That was fast. Were you already on it before I asked?
 
1:47 PM
I had meta open in another tab
 
2:04 PM
@Dennis The extra time I'll have once the challenge gets closed, I mean.
 
@Dennis Talking about extra time: You should probably add an explanation for your solution in Alex' prime challenge. At least that's the only logical reason why my longer solution may be getting as many upvotes. I expected mine to be safely at the bottom with hopefully 1 or 2 votes, and certainly not get in the way of better solutions.
 
@Dennis which is the 21-byte submission? you have quite a few answers there
 
@RetoKoradi Thanks for reminding me.
@randomra This one:
6
A: The Programming Language Quiz

DennisFinite Groups, 21 bytes, cracked by nimi "Hello,"" World!"|p"? Now 100% O-proof.

 
1
Q: Interpreted Interpreter

wizzwizz4Programming a programming language in itself is something that has interested me since I knew what a programming language was. So I thought I'd create a Code Golf challenge for you. Challenge Create an interpreter for a given programming language, programmed entirely in itself. The interpreter ...

 
well it took long enough for HW to get a downvote :D
 
2:19 PM
Some people. My latest challenge has a down- and a too broad vote.
I can understand why somebody would downvote it. I don't get the close vote.
@MartinBüttner Btw, 3.3 answers per vote has to be some kind of record.
(not counting questions with 0 votes)
 
@TheNumberOne I'm not exactly sure what you mean by "let the code intersect with itself"?
 
@RetoKoradi Ah, I see. I didn't realize Javascript could be used to communicate with the interpreters written in other languages.
 
2:36 PM
@RetoKoradi umm, the "online" CJam interpreter is in javascript (translated from java), and works offline
 
2:50 PM
@aditsu Ah, that would probably explain why it's slower. So that's a different implementation. It's not possible to somehow invoke an interpreter written in Java from a web page? I really don't know this web programming stuff. Haven't really written web pages since they were written in... HTML.
 
@RetoKoradi Sure it is. But you'd have to run the scripts on the server.
 
you mean slower than the java interpreter? yes
and yeah, I could run the java interpreter on the server, but I don't want to do that - there are problems with resource usage, security, etc
 
Running them client-side has a number of advantages: 1. No lag. In fact, once the page loaded, you don't even need an internet connection. 2. No security issues. 3. No CPU/RAM usage on the server.
 
exactly
 
@Dennis Right, that makes sense. I guess that would be bad if I produce endless loops in my CJam code, which happens surprisingly often.
 
2:53 PM
and 4. Extremely simple site on the server side
just a few static files
 
I wonder how fast the JS interpreter would be with Node.
 
I thought you could run Java code in a browser? Or did people start disabling that because of security issues?
 
oh, applets? yeah.. they're kinda deprecated
 
You'd need the Java plugin. I don't know if that even exists for my browser.
 
I could provide an interpreter applet, but I don't know if it's worth the effort
 
2:58 PM
Yes, I remember popups saying that you needed a Java plugin for certain sites. But I haven't seen that in some time. So JavaScript is the only real option if you want something that can run on the users machine without any optional plugins?
 
pretty much, yeah, if you want wide support
they're working on other things too (e.g. WebAssembly), but it will take time
there's a javascript subset (asm.js) that runs faster in some browsers, but gwt doesn't support it, and I understand it's for languages with manual memory management
 
Dart is going to be the next JS.
@aditsu Yes. C/C++ can be compiled to asm.js using Emscripten
 
@aditsu IMHO the interpreters are fine as they are. There's always the Java interpreter if you feel the need for speed.
If you get bored, there are always tickets. :P
 
@aditsu WebStarts are still common
 
3:05 PM
@aditsu “In order to do what’s best for our users and the web, and not just Google Chrome, we will focus our web efforts on compiling Dart to JavaScript,”
 
@georgeunix but then you might as well use the java interpreter
 
Scripting languages compiling to JS can be sometimes faster
 
@georgeunix yes, so it's not replacing javascript
 
@aditsu I suppose not.
I actually hadn't seen that article
 
@Dennis Yes, it certainly works fine. It just sounds kind of painful to write and maintain two versions. The only real limitations I had with the online CJam is for things that use a lot of memory. Or if I want to redirect the output to a file, like for the challenges that produce PPM images.
 
3:13 PM
Download output as a file would be a neat feature.
 
both interpreters are written in java, one is automatically transpiled to javascript :p
they share most of the code
 
@aditsu GWT doesn't uglify the output Javascript automatically?!
 
This ticket has been opened before and already has an answer. If those answers do not fully address your question, please open a new ticket.
 
it does
 
Well it hasn't this time – unless you've explicitly told it not to
Well, it has, sort of.
It hasn't put the code all on one line.
 
Oh, OK.
Turns out Safari prettifies it again.
Sorry :/
 
don't you claim my code is pretty!
4
@Dennis hmm?
 
Well, it might be before it goes through Closure
 
@aditsu Don't feel bad, it looks plenty ugly to me! ;)
 
^_^
 
3:28 PM
@aditsu It's the PPCG text for dupes with some minor modifications. Not sure how I missed Martin's ticket.
 
That asm.js stuff looks kind of interesting. So you could write in C++, and let it generate something that runs in a web page.
 
using emscripten
Hence Qt4 is now available in Javascript online
 
@georgeunix link?
 
damn, that's pretty cool
 
3:33 PM
KDE programs in JS!!!
 
yeah, that's what I'm talking about
 
@georgeunix So you use some option in clang (e.g. on a Mac) to produce IR instead of machine code? And then run that through emscriptem to produce JS?
 
Presumably.
IR > asm.js > JS
 
@georgeunix pretty heavy stuff though
 
Yeah.
On Safari it doesn't seem very heavy.
I haven't got a beefy computer
And it works OK
but takes a bit to download
 
3:39 PM
the kate demo is not working yet..
ah, it mentions a no-icon version and a bug report
that one works :)
 
@MartinBüttner Do you think a primality testing catalog would be a good idea? There seems to be no challenge that asks just for that and it would be useful to check if something counts as a programming language.
 
C highlighting works too!
ignore #import, I'm just used to writing in other languages! I know the correct (GCC) way is #include
Clang ported to JS!
^ although I don't think this uses Emscripten
and gcc is slow
 
3:57 PM
@georgeunix I don't know what you're up to, but I see code in a non-fixed-width font. glares
 
@Dennis since sandboxing HW I've come across several things that don't exist as simple challenges yet, and yes, primality testing was one of them
 
@BetaDecay @BrainSteel and I haven't come to a consensus on this (nor have we discussed it at all, ever), but I imagine it as "Hmmmmm?", where the "m" sound slowly rises in an uncomfortable way.
 
@AlexA. It's not my fault if the Qt JS demo only includes sans-serif!
 
@MitchSchwartz ??? can't go left of the starting cell but in 97 bytes it can do "Hello, World!" another way.
 
@AlexA. did you see the 92 byte BF solution?
 
4:07 PM
Nope. Does it go left of the starting cell?
Btw Mitch, your avatar is cute as hell. Is that your dog?
 
nope
to both
 
Oh, okay.
 
There's this challenge for cat, which is quite a mess. There's this challenge for tac which is alright I guess. There is no plain FizzBuzz or primality test. We do have Fibonacci. Off the top of my head I can't think of any other standard exercises.
@Dennis ^
(well quines, but we've got that covered as well)
 
@MitchSchwartz Translated to ???, the 92-byte BF solution is 98 bytes, one byte longer than the current solution.
 
@MartinBüttner how about the truth-machine?
 
4:16 PM
@MartinBüttner gnibbler did FizzBuzz a while back, but it was a popcon.
 
@aditsu ah, that's a possibility. reminds that that there's also yes
@AlexA. see what I mean? :P
 
No because I haven't really been paying attention.
 
We could copy half of Rosetta's :P e.g. newline omission
 
@AlexA. the focus of my sentence was on the "plain", as in code golf without any fancy additions like restricted source
 
Oh, okay.
Then yes, I see what you mean. :P
 
4:27 PM
@MartinBüttner I'll post a draft in the sandbox. Or do you want to?
 
@Dennis I'd be happy to do a draft for primality testing.
I'm already working on a solution in Mouse.
 
@Dennis for primes? go ahead, although I'd prefer if we wouldn't post these more often than every other week or so. making these catalogues comprehensive takes a lot of effort from the community so we should give people some time to focus on one of them at a time and recover in between ;)
 
@MartinBüttner My thoughts exactly. I'd plan on having it in the sandbox for a while anyway. Many details to iron out (allowed I/O, in particular).
@AlexA. Race? ;)
 
0
A: Sandbox for Proposed Challenges

Alex A.Primality Testing Believe it or not, we do not yet have a code golf challenge for a simple primality test. So here we go! Challenge Given an integer n as input, determine whether n is prime. Print or return a truthy or falsy value accordingly. Input Input can be taken as a function parameter...

Trollolololo
 
I lost. :(
 
4:39 PM
@AlexA. i'm slightly bothered by the fact that you took my code, didn't understand how it worked, translated it through a general process, and posted it as your own
 
@MitchSchwartz For which? The ??? HW?
 
That's one very rough spec there :/
 
@Sp3000 I was trying to ninja Dennis. WIP.
 
... and this is why careful golfers never get any upvotes D:
 
?
 
4:41 PM
@AlexA. ...
 
"Badly golfed, will work on it later" "Oooh an answer in <language>! clickity upvote"
 
@Sp3000 It's just a sandbox post...
 
0
A: Sandbox for Proposed Challenges

Alex A.Primality Testing Believe it or not, we do not yet have a code golf challenge for a simple primality test. So here we go! Challenge Given an integer n as input, determine whether n is prime. Print or return a truthy or falsy value accordingly. Input Input can be taken as a function parameter...

 
@Dennis @Sp3000 @MitchSchwartz Sandbox post and ??? HW are CW.
 
@AlexA. Will you disallow built in primality testing functions?
 
4:48 PM
I've been wondering for a while... is there a non-vulgar but similarly catchy equivalent of "dick move"?
 
i appreciate the gesture, but i don't mind you getting points for it
 
Not that I know of, but it seems that most of the stuff I've done recently qualifies as a "dick move."
 
@AlexA. What is it that we haven't discussed?
 
@MitchSchwartz Undeserved. I apologize.
@BrainSteel How to pronounce ???.
 
it's ok, i would have told you in private if i knew of a good way, actually maybe i should have asked
it seems you can create private chatrooms but need to have a high rep for that? didn't really look into it
 
4:50 PM
@AlexA. In the prime testing post, you might want to forbid builtin prime testing/factorization
 
or i could have left a comment. i don't know, sometimes i find it hard to decide social things, sorry lol
 
@AlexA. silently with raised eyebrows and a pressing questioning look on your face.
 
@MitchSchwartz Only moderators can create private chatrooms.
 
oh ok thanks
 
@Loovjo Personally I feel like having a builtin for prime testing is a strength of a language, and since this will be a catalog akin to HW, might as well go for the shortest possible approach, be it a builtin or otherwise.
 
4:52 PM
^
 
If you have enough rep, though, you can create a read-only room, called a "gallery chat room".
 
@AlexA. Ok
 
I'll add that in.
 
@AlexA. In pyth with builtins, you can do it in 4 chars: !tPQ
 
Nice.
In Stuck you can do HW with 0 bytes. :P
 
4:53 PM
@AlexA. Stuck can do anything in 0 bytes
 
Wardoq can do 1, but honestly the fun will be when we dive into one of those Turing tarpits
 
@Loovjo I think that's factually incorrect.
 
@AlexA. Tell me something Stuck can't do with 0 bytes
 
19
A: Sign that word!

MaurisStuck, 4 bytes sc$d This language was documented on the wiki just yesterday! Mmm, fresh esolangs.

 
@AlexA. Ok, you win.
 
4:57 PM
:P
 
I've thought about this for a while now, Rule 110 for example has no way to take input or give output but is still considered turing-complete, does the same apply to programming languages? For example, would a IO-less brainfuck be considered turing-complete?
 
What is Rule 110?
 
^ Yes. Turing-completeness does not require input.
 
Ah, okay. So not at all related to 34.
 
@BrainSteel But brainfuck was built to be turing-complete with the shortest compiler, why does it have IO?
 
Though, there's almost certainly a better source than that somewhere.
@Loovjo I don't know.
 
@BrainSteel Ok.
 
I suppose it's just a design choice the creator made. There are turing-complete bf derivatives without input/output, I believe.
 
@Loovjo yes, /// is also considered TC and doesn't have input
 
5:09 PM
@MartinBüttner Ok.
Does anyone know anything cool built in Rule 100?
*110
 
you know, you can edit chat messages by pressing arrow-up? (or clicking the little triangle next to the message to open the menu and select edit there, but who uses a mouse...)
 
@MartinBüttner I use a mouse
And Mouse
But not for editing posts
 
Perhaps you could, though...
 
That would take time and work. Time that could be spent working golfing.
 
5:41 PM
Improved the spec for primality:
0
A: Sandbox for Proposed Challenges

Alex A.Primality Testing Believe 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. It is also a good way of showing that a language is Turing co...

@MartinBüttner @Dennis ^
 
I was going to ninja you to main after seeing that stub, but it's looking better now. :P
 
Haha
You're welcome to be the one to post it to main.
The sandbox post is a CW so you're welcome to improve it as you see fit as well.
 
To be honest, I was kinda looking forward to post it myself.
But now you have already done the lion's share of the work. :/
 
Oh, I'm so sorry! :(
I'll delete the post and you can do your own if you'd like.
 
No, don't delete it.
 
5:50 PM
Okay, well as I said it's CW so please make it your own.
And please be the one to post it to main.
If I had known you were looking forward to it I wouldn't have gotten involved at all. I apologize again.
 
I meant I was looking forward to posting the actual challenge. It just doesn't feel right to post a challenge somebody else wrote. :P
 
Do we have a plain Fibonacci challenge yet?
 
@ETHproductions I think Martin said earlier that we don't.
 
Gosh, what have we been missing? :0
 
7
Q: code-golf: First-n Fibonacci sequence elements

Warren  PThere is a well known question here that asks for a short (least characters) fibonacci sequence generator. I would like to know if someone can generate the first N elements only, of the fibonacci sequence, in very short space. I am trying to do it in python, but I'm interested in any short ans...

 
5:53 PM
@Dennis Well then edit it, silly. Make it Dennis' mega awesome primes.
 
There are a few things I was going to do differently. For example, I think we should allow only full programs and permit hardcoding the input.
Otherwise, languages like /// are out.
 
@AlexA. I said we do
the one linked in the challenge Dennis just posted 5 messages ago
 
Right, that one.
47
Q: Fibonacci function or sequence

Chris Jester-YoungWrite the shortest code that either: Generates a Fibonacci sequence (either in standard output, or as a stream) Calculates, given n, the nth Fibonacci number (I gave both options in case one is easier to do in your chosen language than the other.) Edit: for the avoidance of doubt, a stream...

 
maybe after we've done primes, I'll talk to Chris whether I can power-edit that challenge (and the necessary answers) into another catalogue
 
I was going to suggest doing one about cat programs (why are they called that???), but I believe most languages can do that in only a few bytes.
 
5:57 PM
there already is one, but it's quite a mess
for reference, my earlier chat message:
2 hours ago, by Martin Büttner
There's this challenge for cat, which is quite a mess. There's this challenge for tac which is alright I guess. There is no plain FizzBuzz or primality test. We do have Fibonacci. Off the top of my head I can't think of any other standard exercises.
 
OK then, after primality test, we do FizzBuzz. :)
 
@MartinBüttner Excellent. This has been a weird (read: shitty) morning so far.
@Dennis Then go for it.
 
6:22 PM
@MartinBüttner The qualifications you had to add make it probably too complicated.
 
hm, possibly, but still easier than fixed-point theorems ;)
 
You could call it a büttner rather than a quine.
 
;Hello, World!; would be my puzzle entry but misses one criteria so I just put it here :)
 
6:43 PM
I spent an unreasonable amount of time getting this to work properly.
 
7:05 PM
@PeterTaylor Is there a difference between the major versions of Golfscript?
Or does Golfscript even have versions?
 
GolfScript has always existed. It has no beginning, it has no end. It is infinite.
 
...
 
1
Q: Dead code elimination

CaridorcDead code sits there doing nothing, staring at us knowing it will never be executed... but today we can take revenge. Specification The input will be a multiline string. Each line may either be an assignement <name> = number Where name is a sequence of letters, underscores and numbers, but no...

 
@BetaDecay It doesn't have numbered versions. The official interpreter has been through a few versions, mainly for bugfixes, but with one patch which I proposed to add support for string string ?
 
So what would be a reply to this:
@BetaDecay GolfScript? — muddyfish 5 mins ago
Thanks @Peter :)
 
7:28 PM
I've tried revising that new post 4 times to fix some small typos and formatting errors
At least this time it hasn't been reset
yet
Dang...
Let's try this again
 
Ok
Approved and made a couple slight modifications
 
testing...
yeah, connection works finally
 
@AlexA. Thanks :)
 
You should still get a +2. Did you?
 
@AlexA. Since it's CW, who will post the question?
And will that be a CW?
 
7:36 PM
@BetaDecay If you mean primality, I was encouraging @Dennis to post it but if he refuses then I will. No, I don't think the post on main should be CW since it's a nontrivial task in some languages and the people who put in the effort to make quality solutions should get rewarded with rep.
 
Makes sense. I agree that Dennis should post it
 
Once Martin's catalog has cooled off, I will. :)
 
:D
 
Great :D
 
@Dennis I do hope you'll make some edits to fit it to your vision.
 
7:41 PM
I gotta write another Fourier program to get in there quickly now
 
I will. Right now I have some weekendy stuff to do though. ;)
 
What kind of stuff do you do on the weekend?
 
Mostly hanging out with my wife and my daughter.
 
Sounds wonderful :)
 
It is.
 
7:46 PM
What does your wife do for work?
 
She's a Math professor too. We met in a Master's course.
 
What does your daughter do for work?
U are both math guys?
 
Yup.
 
@AlexA. Yep!
 
@Dennis That's really cool! Do you teach at the same university?
 
7:48 PM
Sorry, SE cut out for 5 minutes for no reason :(
 
My daughter is a lazy 3yo. No income.
 
I still got updates from the chat, but couldn't say anything... weird
 
@AlexA. The same faculty, yes.
 
what university?
oh, you do not have to tell!
 
University of Dennis.
 
7:51 PM
University of Life
 
Math University, Paraguay
 
I'd rather not. But the delay was because I'm eating... :P
 
What are you eating?
Oh, you do not have to tell!
 
Cookies.
 
No pineapple pizza?
 
7:52 PM
My browser eats those all the time
 
Not at 15:00.
 
15:00 -> 3 PM
 
Any time is pizza time, but no time is pineapple pizza time.
 
it's 3pm where Dennis lives
quick, triangulate the list of possible countries
 
We already know where he is.
 
7:54 PM
Would [var_name || number]* work for <var_name OR number> <operation> <var_name OR number> ...
?
nevermind
 
Written my Fourier program :D
 
Wrote not written
 
0 and 1 for False and True is alright isn't alright isn't it?
 
I have no idea what you're asking, but 1 is truthy and 0 is falsy.
 
Yeah, it's valid then
 
7:57 PM
Is there a way to test primality by trial division in Mouse shorter than this?
?X:X.2<[0!$]X.2\0=[0!$]3I:0P:(I.P.<^X.I.\0=[0!$]I.1+I:)1!$
59 bytes :/
 
I don't know Mouse, but for some languages, Wilson's Theorem is shorter.
 
Oooooooh
Fancy
Thank you :)
 
8:39 PM
@Sp3000, how much is the bounty for a Hello World in Seed?
 
my most upvoted answer is a 0 byte program
not sure how I feel about that...
 
Any ideas why this Javascript code:
z=s=>{
r=Array(6).fill([...'abcdef']);
r[0][2]='z';
return r.map(x=>x.join('')).join('\n');
};

is returning
abzdef
abzdef
abzdef
abzdef
abzdef
abzdef
?
 
8:58 PM
Does JavaScript allow r to contain the same string variable 6 times? (Rather than 6 independent strings)
 

« first day (1673 days earlier)      last day (3162 days later) »