Mar 12, 2019 12:18
it's very comprehensive...
Mar 12, 2019 12:18
Mar 12, 2019 12:18
I'd have to research this myself, but that's what I assume...
Mar 12, 2019 12:15
not sure I understand what you mean. It is impossible to have more than 25 text rows, it is possible to move text rows down the screen (and where you do that, the VIC might display what it already has (repeating the text row) or nothing ($3fff idle gfx)
Mar 12, 2019 10:58
so, scrolling the screen down always means delaying badlines. as for what's displayed, this might be the same data again or "nothing" ($3fff).
Mar 12, 2019 10:55
well, the VIC will not fetch the same data twice during one frame, right. It might display what it fetched multiple times, but when there IS a badline, new data is fetched :)
Mar 12, 2019 10:46
I'd have to experiment. I know this outcome is possible (repeated lines), but triggering idle mode is possible as well... in any case, what you do is delaying the next badline :)
Mar 12, 2019 10:13
but in any case, you delay one badline by the amount of lines you want the rest of the screen scrolled down ;)
Mar 12, 2019 10:12
yeah, makes sense cause it's getting into details now I guess. I'm not sure right now how you can achieve "repeated display" instead of idle mode, my guess is it's a matter of exact timing when you change y-scroll
Mar 12, 2019 10:06
That's impossible. Each badline fetches the next row from screen/color ram.
Mar 12, 2019 10:06
Huh? Me, just because technically, scrolling down the screen is delaying badlines ;)
Mar 12, 2019 10:06
1.) which is exactly the same -- the badline fetches the new data (from screen AND color RAM), to delay this until you're further down the screen, you avoid the badline condition by fiddling with y-scroll.
Mar 12, 2019 10:06
well, see my answer ;) ok, I just assumed opening the border doesn't have to be explained :o -- still two things: 1.) avoiding the badline by fiddling with y-scroll can also leave the vic-ii in idle mode, depending on your timing, 2.) the color ram is read in the same fetch as the screen ram, so it will be organized the same way (and displayed "scrolled down")
 
Aug 28, 2018 00:51
@mbomb007 the tips tag was added later, and not by the OP. It wasn't entirely clear, although it looked like a tips question.
Aug 28, 2018 00:51
Is this a challenge or asking for tips?
 
Aug 28, 2018 00:46
To me, this doesn't look like a challenge, more like asking for theoretical knowledge. I think there is a SE site dealing with algorithms?
 
Nov 9, 2017 19:59
@DLosc good idea, will do when I'm on the pc!
Nov 9, 2017 18:26
Hmm ok I see. Yes, input must be valid C, so if the constellation can't happen, you're fine. I just have the problem that I want to keep the challenge accessible without knowing C and further complicating the rules would be bad...
Nov 9, 2017 18:18
@DLosc in valid C, this can only appear inside a string literal, but therefore you have to handle it, so I don't see why it would make a difference?
Nov 9, 2017 18:18
@DLosc yes to your first question. I don't quite understand the second one :o
Nov 9, 2017 18:18
@Lynn this is modeled after a tool I created for myself a long time ago. The few nitpicks from the comments here were quite simple to add (you still have to look only at the single characters surrounding the whitespace sequence), otherwise I wouldn't have added them at all. The more complicated part still is handling line continuations and preprocessor directives correctly. But as I said, there won't be any more refinements to the rules by now :)
Nov 9, 2017 18:18
@Lynn there won't be any more rules by now. Steadybox found a test case that might have a practical relevance, but that's for it. If the tool with the current set of rules creates something invalid from a valid input, so it be.
Nov 9, 2017 18:18
@TobySpeight is this even allowed? Yes, you can assume that, as I commented earlier, I expect the input to be a reasonable "pre-golfed" source. Just as stated in the rules, the first character has to be a #.
Nov 9, 2017 18:18
@Steadybox ok, then it should be in the rules as well. I hope this isn't too complex yet
Nov 9, 2017 18:18
@Steadybox good catch, that's probably worth another special rule indeed.
Nov 9, 2017 18:18
@Steadybox That's true, but I assume "pre-golfed" input. Handling edge-cases like this would make the tool too complex, especially for implementing it in a challenge. In practice, you'd probably just write ++i+n instead anyways.
Nov 9, 2017 18:18
@EriktheOutgolfer C code may contain "extended" characters, but it's safe to ignore them and for the purpose of this tool, supporting the basic character set is enough.
Nov 9, 2017 18:18
@NahuelFouilleul indeed I missed that one :o Thanks! I adjusted this rule and hope it doesn't bug anyone already working on a submission :) (also a bugfix for my existing tool ...)
Nov 9, 2017 18:18
@Arnauld regarding your question, I added a paragraph to clarify. The input is assumed to be valid C source, this also means it only contains printable ASCII, tab and newline.
Nov 9, 2017 18:18
@HyperNeutrino it's of more practical use than just removing comments (and also more complex), and it's (hopefully) exactly specified, something I didn't find in other related challenges yet.
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Sep 2, 2017 12:33
(or I'll make my girlfriend happier by taking her to the furniture store ... she needs another wardrobe ... ahem ...)
Sep 2, 2017 12:30
@ASCII-only good idea :D already thought that this looks like something that can be optimized/golfed quite nicely in 6502 assembly for a C64, I should probably try (yes, I'm crazy about this machine)
Sep 2, 2017 12:28
Hmm, quick approximation from what I observe, I expect a result in another 3 hours ... dammit ...
Sep 2, 2017 12:21
30 minutes and running .... tired
Sep 2, 2017 12:03
gonna take a shower and let the virtual 6502 work like crazy :)
Sep 2, 2017 12:01
measuring runtime on a C64 makes me sleepy right now ...
Sep 1, 2017 14:23
finally, "findclique" for the C64 :D (unfortunately quite large....)
Sep 1, 2017 11:05
damn, I crashed my C64 emulator :o
Aug 31, 2017 16:47
nevermind
Aug 31, 2017 16:47
ah sorry, misread
Aug 31, 2017 16:47
huh? checking for a prime is a a computable problem ...
Aug 31, 2017 16:37
@Mego alright ... "golfing" is more-or-less a must do for any reasonable C64 code ... limited resources :)
Aug 31, 2017 16:35
I'm aiming for minimal code size, but for my challenge, it will be MUCH larger than some other languages...
Aug 31, 2017 16:35
ok thanks all! @Mego that won't be a problem, there are already 11 answers and I seem to be the only crazy guy here trying to find solutions on a C64 ...
Aug 31, 2017 16:33
btw question to all ... is it ok to add an answer to an own challenge? nothing competitive, just for the fun?
Aug 31, 2017 16:29
@EriktheOutgolfer cleaned up here :)
Aug 31, 2017 13:14
@EriktheOutgolfer should we clean up the comments about the wrong results I got only with this strange msys2 python implementation?
 
Aug 30, 2017 15:07
The interesting thing is that I get the same result with your python2 implementation :o Ok I'll have to leave now, but I'll definitely have a closer look at this
Aug 30, 2017 14:45
@EriktheOutgolfer I tested on a surface book with python3 from msys2 ...
Aug 30, 2017 13:59
I'm curious now :) It doesn't look like your program has a bug, I fed it several "randomly" generated 16-edges graphs and got the correct result every time...