« first day (1435 days earlier)      last day (3412 days later) » 

1:21 AM
Does PHP not need echo?
 
@Sp3000 not with <?=
(with emphasis on the =)
that being said, it's a matter of configuring your PHP server, but most of them are configured to treat <?=...?> as something like <?php echo (...)?>
 
Ah k
 
Nobody wants to read 10 pages of Jagl code...? XD
 
On my phone, sorry :P
Maybe later
 
:P
 
1:27 AM
and I'm off to bed... if you haven't found anyone by tomorrow I might take a look ;)
 
Alrighty
 
2:07 AM
Anyone have any ideas of how I could get more people using my language?
 
give them $100 for each answer they wrirte in it?
 
Great idea, though I think I may run out of funds quite quickly.
 
2:23 AM
Use it more yourself and show off how awesome it is?
 
0
A: Sandbox for Proposed Challenges

globbyUgh, what day year is it? (Title subject to change) popularity-contest Story It's a Thursday, the year is 3015. You awake in your living room, surrounded by the outcome of your drunken stupor. But... with the ever evolving dissociative beverage technology within the last millenium, you cannot...

 
@Sp3000 Make more new questions then. It will only be noticed if it is, or is close to being, the accepted/most upvoted answer. Questions posted before the language was created render my submissions invalid
 
2:48 AM
@globby Where's the 10 pages of code?
 
3:09 AM
@Sp3000 I'm out atm, you gonna be around for another 30-45 mins? I can send it when I get home
 
I'll be out in a bit, but if it's on Github I can take a look when I'm free
 
@Sp3000 Alrighty, will push it when I get back and link you
 
Thanks :)
 
3:47 AM
@Sp3000 github.com/globby/Jagl/raw/master/Function%20Usage.pdf There it be. If anyone else would be able to take a look at it, that would be great as well.
 
4:02 AM
What does (1 1 1) (1) - return?
Also rather than min/max, something to think about: if you implement get first/get last of array instead, then you can do min/max in two chars by sorting
 
(1 1 1)(1) - returns ()
It doesn't just remove a single 1 from the array
and alright, I'll map those to q and Q (there are still a few unmapped characters)
 
kk so all instances - maybe make that an example? :)
 
Alrighty
 
But yeah basically I'm trying to figure out whether some things are worth the 1/2 bytes savings to make them a command of their own
 
Oh and min and max were changed so I have to re-do those in the function usage as well
I did most of the document last night and made some changes to the language this morning so I have to update it
Alrighty
 
4:15 AM
But I guess problems are needed to test on
Ahaha k
 
If you gimme a couple minutes I can make the changes
 
How is sum for nested arrays different to flatten?
 
Changes were made
and ((1)((2))(3))b gives (1 (2) 3) whereas ((1)((2))(3))E gives (1 2 3)
Sum can be used as a single depth flatten, and E is a recursive (full) flatten
 
I see
 
Sum is implemented to take in an n length array, and basically push every element of the array, and n-1 + symbols, then evaluate
So that it can be used for a lot of purposes
Product is implemented in the same way
Sum is basically a foldLeft with + (and product with *)
but it saves a byte
 
4:26 AM
What happens if I want to cycle the stack anticlockwise but an array is on top?
 
-1C
C takes an integer to work anyway
It isn't synonymous with c
 
Oh, right
What's the difference between g and s?
 
I was thinking that the other day, 'g' is redundant
Will remove
Well, the minor difference is that 's' will leave an 'L' at the end if the integer is a Long
and 'g' will shave it off
 
4:47 AM
Hmm not sure if you'd want the L in general
I guess you could get rid of g then change s to work as g
 
I haven't had to use L yet
so yeah I can remove it
 
Anyhow I think that's about all I have to say :) good luck with it
 
Alright, thanks for the review of it (:
Now to try to figure out how to isolate regions of a specified color in an image with mathematica
 
Does Mathematica have an inbuilt FloodFill?
 
Nope
(Which surprises me actually)
I could use Binarize[] with some function that selects only the certain color value
But that outputs a binary image
Got it
 
5:17 AM
Kind of
 
 
3 hours later…
7:52 AM
Would it be against an unspoken rule to answer my code-golf question a second time?
It would be the SECOND shortest answer, by about 100 bytes
 
8:06 AM
If it worries you you can add it to your first answer as a footnote
But if it's different enough then might be okay?
 
0
A: Sandbox for Proposed Challenges

OptimizerInverse the matrix code-golfmath The name says it all. I am surprised that there is no preexisting question on calculating matrix inversion Given an nXn invertible matrix, your task is to output its inverse. Rules Floating point precision upto 3 decimal places is required You can assume tha...

 
8:20 AM
@Optimizer Ban randomly generating matrices and multiplying?
 
I was just thinking of that
 
Also the ban list might need to be broader
Because you might be able to, say, use matrix exponentiation with Cayley Hamilton
(Okay that was a bad example but you get my point :P)
 
should I simply ban creating random matrices and multiplying
or instead put a time limit that for the same input, your code should run in a deterministic time and the run times should be similar
 
I think time limit is easier to enforce
And can rule out things we wouldn't think of that are slow but short
 
but wording can be wrong in that big line
no, its not a time limit for the code to complete
its a limit that for the same input matrix, the code should complete in almost same time
 
8:44 AM
Oh... right
I was thinking of having a time limit just for small matrices though, to rule out brute force
 
 
3 hours later…
11:25 AM
@Optimizer What happened to "let's not turn this into University Maths SE"? ;)
btw, I think you shouldn't specify accuracies in decimal places but significant digits... otherwise a number on the order of 1e6 has to be much more accurate than a number on the order of 1
and that's also how floating point numbers work... it doesn't matter how large they are, but only how many significant digits they have
As for your weekly challenge idea... I think it's too far on the art contest side and too little on the programming contest side... unless you specify the scenery rather strictly in which case I'm not sure how different it is from codegolf.stackexchange.com/questions/36109/ascii-art-calendar
 
Hey Martin, how often do you need to perform an operation on an element lower down in the stack?
 
@Sp3000 depends on the problem, but if I do it's damn annoying :D
 
I was thinking of a language where implicitly the bottom of the stack is A, the second-lowest is B, etc
And if you want to add the top and second lowest on the stack you could do B+
Not sure how useful it'd be though
 
yeah that would occasionally be handy
 
Only occasionally though, right?
Hmm...
My other idea was making things assignable to registers, e.g. 3~= means "assign 3 to ~", but I'm not sure about that one either
Would probably have to try on a few problems
 
11:42 AM
@Sp3000 is that any different from CJam?
(or GS for that matter)
 
Oh CJam has assignment
Didn't realise
 
:D
@MartinBüttner good point about digits
@MartinBüttner about ascii art, i want it to be a PC so that people can generate as per they like to get more votes.
its diff. from ascii art calender because this one will always have certain objects
 
@Optimizer well yes, and that gets it dangerously close to being an art contest
 
Is there a popcon for approximating images with ASCII? Like PbN
 
i agree, but its diff. from art calender is what i am saying
 
11:47 AM
@Optimizer oh yes, it is. I said if you did make the spec stricter it would become like ascii art calendar
@Sp3000 there might be something similar
 
 
2 hours later…
1:39 PM
the number of C# submissions to Morse the New Year is crazy
 
had great fun on that one
 
@MartinBüttner Yeah, now there are finally some C# answers to compete with.
 
SE answer box is really sluggish for me in old Opera... I hope they've not changed something
 
 
2 hours later…
3:23 PM
@MartinBüttner "Floating point precision of at least 3 significant decimal places is required" - how does that sound ?
 
3:44 PM
@Optimizer sounds good. Is there a limit on the matrix size?
 
@MartinBüttner no as its code-golf , I don't really bother about time taken by program
so ideally a generally written program should be able to cater all sizes
(since the normal inversion techniques are not limited by size too)
@MartinBüttner any particular concern about the size ?
 
4:03 PM
@Optimizer well the accuracy might depend on the matrix size.
 
any sensible upper limit u would suggest ?
 
4:18 PM
Well it would be enough if you said that your precision requirement is for a 10x10 matrix, say. Then solutions still need to be able to handle all inputs (as memory permits), but the requirement is easily testable.
 
4:35 PM
@Sp3000 In GS that would be -2$+
 
O.o I never thought of trying negative numbers with $ in CJam.
 
I discovered that about 6 months ago, I think. I can't remember now why I needed it.
 
@PeterTaylor I remember that I could have used it several times before. I think it could be shorter than storing the bottom thing in a variable sometimes.
doesn't work in CJam unfortunately
@Optimizer there's another request for CJam 2.0 ;)
 
5:09 PM
thought of it already
 
 
1 hour later…
6:25 PM
0
A: Sandbox for Proposed Challenges

xnorYou've been sent back in time to 1973 to fix history by writing a clone of Hunt the Wumpus. The first thing you need to code is the network of twenty rooms in the game. They correspond to correspond to vertices of a dodecahedron connected by its edges forming a dodecahedral graph. Each room co...

 
 
1 hour later…
7:46 PM
very helpful Peter...
 
0
A: Sandbox for Proposed Challenges

JamJar00Reverse Polish Notation-ing! Your challenge is simply to write a function which converts a given sum into it's Reverse Polish Notation form. Input Your function will be passed in a sum, as a string, which may contain any of +-*/^() or a space. For example: 1+1 34 * 7^6 3 * (78 + 7) Output Y...

 
8:03 PM
31
Q: How can I get a ruler at column 80?

Jorgen SchäferAs a programmer, I want to see a ruler at a specific column (usually 80), both so I see when I cross that column, but also to see how close I am getting to it so I can reformat my code early. The options I have found so far are all not achieving this goal. column-marker can not highlight a col...

Vim golf: se cc=80. Silly Emacs-ers... :P
 
8:43 PM
lol
 
9:16 PM
@Optimizer You have to remember that what you're doing is writing a specification, and sometimes that requires expert knowledge in the subject domain.
In particular, there's no point putting a constraint in your spec if you don't know how to test that the submissions meet it.
 
 
2 hours later…
11:27 PM
0
A: Sandbox for Proposed Challenges

githubphagocyteCan I sandbox a meta post here, or is that too meta? I'd like to see this, but only if it would be welcome, so I thought here might be a good place to find out whether to post it and if so how to phrase it. Examples of well presented questions meta Sometimes a question is underspecified or ...

 
11:55 PM
@githubphagocyte I think we might even be able to compile this list in chat
but I really don't see why it should be in the sandbox... if it goes on meta it should be a separate question, I think
oh wait, your intention was to sandbox a meta post... I didn't get that...
sorry...
 
Yes sorry...
I wasn't sure if it would cause confusion but I wasn't quite sure how to phrase it
 
I understood it like you wanted to use your answer as the meta post
so I didn't understand why it would be a sandbox answer
 
you should have asked a meta post about whether you can sandbox a meta post!
 
Oh no - that would definitely be messy
Maybe we need a meta sandbox...? :P
Shall I just delete it and post it as a meta post before it causes any more confusion?
 
sure... if people don't like it, they'll just downvote it and leave a comment, and you don't risk losing any rep ;)
 
11:59 PM
Great. I'll do that.
 

« first day (1435 days earlier)      last day (3412 days later) »