« first day (2035 days earlier)      last day (2800 days later) » 

2:00 PM
@Downgoat import everything in java.util
 
Y?
whats ot contain
 
@LeakyNun And because it returns floats, the code falls just short of getting B(60) right. actually.tryitonline.net/… with B(57) should return [0, 1]
 
Queue and LinkedList
 
@Sherlock9 submitted pull request
 
2:01 PM
@Downgoat java.util is a package
importing everything in it with java.util.*
 
@Sherlock9 Do you have the command list at the time the challenge is posted? Or do you plan to make a non-competing answer?
 
@Downgoat I'm using the LinkedList and Arrays classes from java.util here, plus the Queue interface
 
and it contains lots of useful classes and methods like QUeues and LInkedList (According to SuperJedi (I never actually remember whats in it lol))
@SuperJedi224 isn't there an impllementation already in the standard libraries?
 
LinkedList implements Queue.
That's actually how I'm using LinkedList in this case.
 
Does a DeQueue implement QUeue?
 
2:03 PM
@LeakyNun Non-competing. I don't have a command list at the time the challenge was posted and I'm fine with non-competing
 
Noted. So you can wait until Mego merges.
in the meantime can you round it down?
 
@Downgoat if you are interested see this Stack OVerflow
326
Q: Is a Java string really immutable?

Darshan PatelWe all know that String is immutable in Java, but check the following code: String s1 = "Hello World"; String s2 = "Hello World"; String s3 = s1.substring(6); System.out.println(s1); // Hello World System.out.println(s2); // Hello World System.out.println(s3); // World Field field =...

 
@Sherlock9 I don't think actually having any documentation available is a requirement for using a language here. Though having a functional, publically available (ideally free) implementation is.
 
@SuperJedi224 is a ArrayDequeu a classic fifo queu, I think thats what I had used for a fifo Queue when I needed one.
@SuperJedi224 *cough Mathematica *cough
 
Yeah, I'm pretty sure no functional implementation of Seriously as it was on November 30, 2015 exists at the moment
 
2:09 PM
rofl
("ideally free")
 
I'm only 3 points away from reaching the next level on Drawception \o/
 
Wizard Luigi
(Maybe I should have given him a goatee as well.)
 
@LeakyNun I used . The code then works but not for 57, 58, 59, 60
 
@Sherlock9 that's like the most specific error message
10/10 very helpful
 
2:18 PM
Out of curiosity, what is a normal hourly rate for programming in Python?
 
I don't know.
 
@Adnan 5
 
      {|+/2 0j2×-⌿2 2⍴+/'URDL'∘.=⍵} 'UUUUDRRRL'
SYNTAX ERROR
      {|+/2 0j2×-⌿2 2⍴+/'URDL'∘.=⍵} 'UUUUDRRRL'
      ∧
...
 
@LeakyNun I don't know what to tell you
I have no idea where the problem is
It might be an entirely different bug, for all I know
 
@Adnan About tree fiddy
 
2:25 PM
1
A: I'm walking around manhattan, how far am I from my hotel?

Adam SpeightVB.net (Non-Golfed) Dim g = From c In "UDLR" Group Join d In directions On c Equals d Into q=Group Select q.Count Dim f = 2*Math.Sqrt((g(0)-g(1))^2 + (g(2)-g(3))^2)

wat
 
Actually, I have no idea. Depends on experience, project, and location
 
5 and 3.50?
That seems a bit low
 
@Adnan Blame Brexit. Messed up the world economies.
;-)
 
Ohhh shots fired(?/!)
 
@mınxomaτ Ok. I don't really use github much for anything besides git pushes and pulls, so hopefully I'll see it :)
 
2:29 PM
@Adnan Where do you live? That's the biggest factor.
 
The Netherlands
 
@Dennis I may or may not be wondering whether it was TIO
 
@Adnan A very weak-joke shot fired.
 
@SuperJedi224 are you sure your code for [] is correct?
 
2:33 PM
it look correct
 
@RohanJhunjhunwala It runs the Brainf*** "Hello World" from esolang correctly
 
Jumping back to the last bracket wont work, you need to jump to the matching bracket. My BF interpreter is similarly borked
 
And the cat program
 
@SuperJedi224 try something more complicated
 
@Adnan Google says €7-60 (for a software developer, not necessarily python)
 
to execute a bf code, i use a 2 pass interpreter: build a 'loop map', and then use this map to jump
 
Median €17 sounds right.
 
if(prog[i]==']')k++;
if(prog[i]=='[')k--;
 
@Sherlock9 I don't know how to fix it.
 
2:34 PM
@SuperJedi224 <C-k>
 
Yeah, I'll see what I can do
I can't print enough output either
 
@Lynn that's roughly what I make, so sounds about right
 
Please halp my borked code?
/**
 *
 * @author rohan
 */
public class Brains {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		System.out.println("Enter a valid BF program");
		String bfProg = (new java.util.Scanner(System.in)).nextLine();
	char[] mem = new char[6400000];
		int dataPTR = 0;
		int pgrPTR = 0;
		Stack<Integer> stack  = new Stack<>();
		while (pgrPTR < bfProg.length()) {
			switch (bfProg.charAt(pgrPTR)) {
				case '>':
					dataPTR++;
					break;
				case '<':
My jumping seems to be not good.
 
please use <C-k> to indent code
 
2:36 PM
@MitchSchwartz s/\(.*// , what i meant was that my previous comments were already taking into account the particular way the bot was sending pings
oof, i didn't know it would post my name, that looks weird
i thought it would probably just post the arrow so that it was clear which message i was referring to
 
@RohanJhunjhunwala look like NewbieFuck
 
@LeakyNun When I try to print in the inner loop of B(57), it's trying to print several hundred very large numbers and it doesn't go all the way to the end.
 
@TùxCräftîñg +1 for vim-notation
 
@Sherlock9 heh, that isn't my problem
that's your out-of-memory problem
 
@TùxCräftîñg isn't that identical to brainf*** ?
 
2:38 PM
brainfuck jump to the matching ] if the current cell is 0
 
@RohanJhunjhunwala No
 
while newbiefuck treat ] as a noop
 
Brainf*** uses whiles, newbie uses do-whiles instead
 
oh f***
so how do I fix it? Can I steal borrow your code
 
@LeakyNun Or TIO's.
Not enough output space
 
2:39 PM
Agreed
 
I worked around it
 
So the only difference is that [] is a do-while instead of a while
 
@RohanJhunjhunwala recursive parser
or iterative
 
@TùxCräftîñg explain?
 
IIRC if you make [] do-whiles, BrainFuck is no longer TC or something
 
2:39 PM
Oh whoops
 
You can't do if's properly anymore
I think
 
I put the list in register 2 every time, meaning it keeps overwriting the previous list. I only want to debug the last list since that's where the problem is, and that's what I get when I call register 2 at the end :D
 
Yeah, there’s no longer any way to skip over code, so even a simple program like if (getchar() > 0) putchar(0) becomes impossible to write
 
2:41 PM
,[[-].]
Or, even shorter:
,[>.]
 
@BusinessCat Belated explanation: It's a byproduct of using math.factorial() which returns floats
 
@Sherlock9 No.
See my PR.
 
Is it ok if i translate ] as an uncoditional jump to the matching [?
 
But that doesn't really make sense either, since all factorials are integers
 
@RohanJhunjhunwala Probably, if you implement [ to jump one character past the matching ].
 
2:43 PM
^
 
@SuperJedi224 I will
brb fixing borked code
 
@LeakyNun Don't see it on the page github.com/Mego/Seriously/pulls
 
@Sherlock9 Oops, see it now
 
Oh, they finally changed math.factorial() to int. Hooray :D
 
I just found a bug that sometimes happens in my interpreter if you end the program with a closing bracket
 
2:45 PM
@SuperJedi224 use a parser... ?
 
Simplest bugfix: Automatically add a space to the end of the program
 
@LeakyNun I'll merge the pull request after whatever travis-ci is finishes its check.
 
@Sherlock9 When did you have write access
 
Say you had to write a self-interpreter/compiler (without eval or any of that nonsense). Would you prefer to do it with a high-level language or low-level language (esolang)?
 
@LeakyNun Well, it's only supposed to be for the docs branch
So never mind. I'll leave it alone
 
2:49 PM
2
Q: Verify a solution to a generalized river-crossing puzzle

Copper Image credit Marek Bennet Introduction A river-crossing puzzle is a type of logic puzzle in which you have some number of animals, objects, etc. to move across a river, but you only have a boat big enough to hold you and one other object. The catch is that some of the animals/objects can't be...

 
<help-vampire type="shameless">
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package brains;

import java.io.IOException;
import java.util.Arrays;
import java.util.Stack;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author rohan
 */
public class Brains {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		System.out.println("Enter a valid BF program");
</help-vampire >
It is still borked.
 
-.- the attribute goes on the opening tag
7
 
Goodbye for now
 
But in all seriousness, can someone help me figure out this bug?
 
@RohanJhunjhunwala .... inconditional jump on [?
 
2:54 PM
@LeakyNun Oh for goodness' sake I found the gosh dang bug
 
@TùxCräftîñg yes
@TùxCräftîñg oh whoops
Im an idiot :(
 
actually.tryitonline.net/#code=OjI1OjU34paI&input= is C(57,25) which here returns 9929472283517788.0
The result of C(57,25) is supposed to be drum roll 9929472283517787
 
@TùxCräftîñg it still is borked. Gives me an arra yindex out of bounds exception for the hello world program
 
the right form is :25::57:<white square>, no?
 
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package brains;

import java.io.IOException;
import java.util.Arrays;
import java.util.Stack;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author rohan
 */
public class Brains {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		System.out.println("Enter a valid BF program");
(I do apologize for seeming like a help-vampire) Please forgive me?
 
3:00 PM
@TùxCräftîñg Mego removed the need for a second : a while ago
 
@RohanJhunjhunwala Don't worry, you're not a help-vampire. Hv's just want someone else to figure it out for them and poof they're gone. You've been on this sight long enough, you're a stuck user needing help, not an HV
 
> 3A (:): numeric literal delimiter: pushes the longest string of characters in '0123456789+-.ij' as a numeric
 
@DJMcMayhem thanks
 
@Lynn Oh, that's a very useful site! Thanks :)
 
3:03 PM
@Sherlock9 I said it will be fixed when Mego merges it
Are you doing the challenge or not?
 
Right, but I wanted to find out if there was another problem or not
 
I mean the challenge I linked
 
@RohanJhunjhunwala I highly suggest decomposing this into methods which the switch statement calls conditionally. It'll help with bug-finding.
 
@Syxer yeah, I'll refactor once I get it working
 
so... refactor it?
 
@Sherlock9 I thought we have established that using n is golfier
 
It needs a while loop
 
@Sherlock9 n is a while loop
oh,
 
How can I do n when I don't know how long it needs to run for?
 
I meant
 
3:19 PM
Alright, fair enough
 
I got it, finally a bf interpreter. It works! thanks fro the help all the generous users of tnb!
Now to create a troll transpiler to java...
 
CMC: evaluate an expression in the grammar expr := digit | '<' expr expr | '>' expr expr, where < is a binary prefix operator returning its left argument, and > is a binary prefix operator returning its right argument.
 
@Geobits @muddyfish @SuperJedi224 Please don't cast regular delete votes on spam. Getting the post deleted via spam flags helps the system identify spammers and block them before they can post it.
 
<01 → 0
>01 → 1
<>345 → 4
 
3:26 PM
@Lynn I'm not sure that's such a mini challenge... :P
 
@Dennis Already taken note, talked in chat about it earlier
 
Yeah, we came to that conclusion in here right after deleting :/
 
2 hours ago, by Adnan
Feb 14 at 19:40, by Dennis
@Downgoat @Adnan Please do not vote to delete spam. If the Community user deletes it because of spam flags, the post is automatically edited and locked. That does not happen if you manage to delete it by conventional means.
 
It feels weird to use an actual flag. Haven't done it in a while, as the other tools are usually better.
 
Ah, OK. Just woke up and didn't read the transcript yet...
 
3:27 PM
I have a question for you all
 
42
 
What is the world is going on with ColdGolf? I missed the whole debacle as I've been out and about this week
@TimmyD Always an excellent answer :D
 
Yeah, I want to know too :p
 
That is the answer, but what is the question?
 
3:29 PM
@Sherlock9 He either really likes getting into circular discussions that end up proving his logic is poor or he's a great troll.
from what I can tell
 
And he posts irrelevant and/or nonsensical things, which are sometimes offensive/vulgar
 
Yay I remember how to grep
 
@Sherlock9 there hasn't been a single problematic instances, but lots of smaller ones. He'd often reply to people with a completely unrelated message, or debate about whether something he posted should have been deleted, and general nuisance
 
You should be able to learn enough about it via the star board
 
@Lynn I think this works: retina.tryitonline.net/…
 
3:31 PM
That looks right!
 
In all reality what he's doing isn't all that unique or interesting, the bigger problem was that there was flagging going on when flagging wasn't really appropriate
 
Is he the reason behind the flagging discussion on meta?
 
Is resolving the right-most non-digit first always correct? I think it is ok, but I dunno I'm bad at grammars :P
 
Is no one else bothered by the automagical gravatar changes?
Like the gravatar next to my name in chat is NOT what I see at the bottom where I type...
 
3:35 PM
Try CTRL-F5? Clearing your cache?
 
@RohanJhunjhunwala gravatar takes a while to get through the server caches
 
@RohanJhunjhunwala I haven't noticed. Probably because I'm not using a gravitar
 
it'll be there in a bit, don't worry
 
i still get a recursion error for f=s=>({'>':[f(s),f(s)][1],'<':f(s)})[t=s.shift()]||t :/
 
@NathanMerrill its gone on for a couple days, idk whats up with it, Its not thae big a deal, but it is interesting. I think there was a whole meta discussion on this
 
3:37 PM
I think you have a different gravatar for chat.stackexchgange, sometimes it thinks that's your main user
 
I use cat instead of gravatar so I haven't noticed
 
Or if you're on Chrome, Press F12, then hold reload icon, then click the undermost button.
 
@RohanJhunjhunwala it says your parent user is codegolf.stackexchange, which has the pink one
 
Vim users (hi @DJMcMayhem): any idea on how to move to line 1 vertically without moving horizontally?
 
the same thing happen to me with HiggsBot
 
3:39 PM
@Lynn for golf or for editing?
 
I mean, 99999999k usually works, but
For golf :)
 
@Lynn keep k? :P
Ninja'd :(
 
um..
what does my gravatar look like
 
Well, there's :se nosol but that's hardly ideal for golf.
 
@RohanJhunjhunwala purple and white
 
3:40 PM
Huh: in chat it’s red. On your profile it’s brown.
 
@Lynn thats what confuses me lol
Apparently its a gravatar issue, and not an SE issue from what I read on the meta discussion
 
^ Yeah, I believe SE gives you a different gravatar for chat
 
I suppose there's also qqk@qq@q but that's really ugly and doesn't work in o mode
In V there's <M-k> and <M-j> but that's probably not what you were looking for
 
o mode?
 
What does it do
 
3:45 PM
@Lynn Operator pending mode.
 
@DJMcMayhem what is it
 
:31903468 that's still technically n mode. O mode is different
@ReleasingHeliumNuclei How much do you know about vim? (So I know how detailed to answer)
 
@DJMcMayhem pretty high i believe
 
@LeakyNun We should go through the Actually commands to see which of them don't return numerics, strings, lists and functions. This problem with range and zip and filter is starting to drive me nuts
 
@ReleasingHeliumNuclei OK. Let's say you want to map to "2l". You can do nno l 2l but then dl will only delete one. That's where ono l 2l comes in
 
3:47 PM
@Sherlock9 I think it's only range and zip and filter?
 
Does that make sense?
 
Okay, bounding box in Vim is gonna be very hard. Nevermind.
 
@DJMcMayhem oh nice
 
Even if I manage to do it, it’ll be ≈100 bytes I think.
 
@LeakyNun I thought it was something else that was returning filter objects. But I'll go check
 
3:48 PM
@Sherlock9 ok
 
And then I might as well pipe the input through perl :U
 
Ive learned yet another thing that I will never use :p
 
@Lynn Yeah, I wanted to try it but it seems ridiculously hard. It would be nice if you could set horizontal marks
 
Why does the SE app not have builtin chat?
11
 
because chat is not a priority in comparison to everything else
 
3:51 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I asked, nobody replied ;_;
 
@EᴀsᴛᴇʀʟʏIʀᴋ
 
@Quill [citation-needed]
 
My plan was, like…
 
@Syxer yes please
 
I got to step two of that. Step three shouldn’t be much harder. Step four is subtly tricky, and step five is trivial.
 
3:53 PM
@Lynn I have no idea what's going on here
 
I should make a plugin for horizontal marks...
 
@Sherlock9 plot twist: Actually uses XML in some places
 
@Lynn explanation?
 
@Syxer Don't worry, I know that's not XML. >.>
 
3:57 PM
Basically, mark the horizontal and vertical positions where #s occur on separate lines, and then fill those out. Then somehow take their outer product I guess??
 
I have a regex question. How do I replace the "inner" bits up to a certain length? For example, suppose my string is bbbaabbab and I want the inner bb to be replaced with aa. Is there a way to do that?
 
11
Q: Highlight the Bounding Box, Part I: Cartesian Grid

Martin EnderYou're given a rectangular grid of the characters . and #, like this: .......... ..#....... ....#..#.. ...#...... .......... Your task is to fill the entire axis-aligned bounding box of the # with further #: .......... ..######.. ..######.. ..######.. .......... The axis-aligned bounding bo...

 
@Lynn oic
 
@TimmyD so replace be when not surrounded by other b's?
 
3:58 PM
@Sherlock9 lol
 
Maybe you can use \B, which is a negated word-boundary in some regex flavours.
 
[^b]bb[^b] works for that
 
@EᴀsᴛᴇʀʟʏIʀᴋ Sure, but it's variable length.
So, it might be three bs in the middle to be replaced.
 

« first day (2035 days earlier)      last day (2800 days later) »