« first day (4831 days earlier)      last day (27 days later) » 

12:04 AM
0
A: Sandbox for Proposed Challenges

l4m2Slice of a generator Given three values [start, end, step], do the slice to a generator. You can choose to use -1 or ~1 to mean the last position, but anyway there must be a way to represent the position after last (e.g. in [-3::1], empty is used. Infinity is also likely a good option) Test cases...

 
 
5 hours later…
4:42 AM
The new Notepad++ release has quite some typos in the changelog
> 3. Fix Shortcut Mapper pontential crash problem.
4. Fix period backup pontential crash due to the dead lock.
5. Fix NUL characters file corruption after power outrages.
6. Remedy losing session problem after power outrages.
 
I too hate it when my power supply gets mad at me and corrupts my files
3
 
5:42 AM
@DLosc, I'm considering creating a tips question for Acc!! to curate some decimal IO snippets and document the bugs in the official interpreter. What do you think?
 
 
1 hour later…
7:02 AM
@TheEmptyStringPhotographer as long as I use common sense and don't disturb people (who use common sense as well) at all, it is fine.
 
@Mukundan314 Go for it! I'm always hesitant to create one for my own languages in case it comes across as conceited.
I was also thinking I should create an Esolangs page for Acc!!, which could have a section with some useful constructs.
 
7:18 AM
@Seggan Since you were doing stuff with Chef recently, I wonder if you have any ideas for this Chef tips question
 
 
2 hours later…
9:43 AM
Hello!
 
10:18 AM
CMQ I have a set of points X. How can I compute c so that E(X-c | X > c) = E(c-X | X < c)? E() just means take the average
 
 
2 hours later…
12:17 PM
@Petəíŕd The Spring Wizard But I’m being disturbed. You’re spamming me with empty content such as “check my room” and “read messages in my room and act”
 
12:37 PM
Fine I’ll see if I can do it.
 
@TheEmptyStringPhotographer would you mind putting actual pronouns in your chat bio? the existing ones are screwing up the display of the page for people with the pronoun userscript
 
1:56 PM
4
Q: Tips for golfing in 𝘈𝘤𝘤\$\it{!!}\$

Mukundan314What general tips do you have for golfing in Acc!!? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Acc!! (e.g. "remove comments" is not an answer). Please post one tip per answer.

 
Multiple exclamation marks at the end of question titles appear to collapse into a single exclamation mark. I've temporarily patched this by adding U+2800 BRAILLE PATTERN BLANK to the end. Does anyone have a better solution?
 
2:55 PM
@Simd c is an average of averages. becasue a-c=c-b when c=(a+b)/2, eg the average. if you're vectorizing the subtraction, you can take it out of the average, eg E(X | X>c) - c = c - E(X | X<c); so you have to pick a c, average the averages to get a new c, and check that you didn't cross over any points in the process.
 
3:07 PM
@guest4308 thank you
@guest4308 is this going to be an iterative process?
 
sadly I think it has to be, bc for a group like 2,2,2,2,2,2,3,9 you'd have to cross a point to get to the right split if you start with the global average
maybe if you do a uniq first you might get a better starting spot?
but if you have floats it's the same problem with something like 1.95,1.96,1.97,1.98,1.99,2.01,2.02,2.03,3,9
 
Hmm . Interesting
I wonder if it can be done more quickly
 
I doubt it would ever take much more than 1 iteration, bc the amount of error in consecuitive steps is signifigantly less than the first step
but since the second average is always between exactly 2 numbers there might be a way to solve it
 
3:23 PM
Hmmm
 
@DLosc ive been doing less golfing and more "how can i write a chef program for this otherwise super hard (in chef) problem"
one problem in chef is that the number format is not specified
the interpreter i use allows floating point and negative numbers, but TIO for example doesnt allow one of those i forgot which
(or was it nested loops?)
yeah something thats not in the spec causes TIO to freak out
ultimately ive managed to create a sort of assembly to chef, but to do anything useful with it would require a higher level programming language. a sort of lisp is on my long todo list
 
3:59 PM
@Ginger In my user script I made a modification so that it gets cut off if it’s too long.
 
4:18 PM
@TheEmptyStringPhotographer what?
 
 
6 hours later…
9:56 PM
@NewPosts (btw you can do italic in question titles with mathjax, I edited that in)
 
10:52 PM
I've been diligently maintaining tnb.a-ta.co as a redirect to this room for years now, but I'm pretty sure I'm the only one who uses it 😂
 
11:10 PM
0
A: Sandbox for Proposed Challenges

emanresu AEnumerate all matches of a regex For this challenge, we'll be using a simplified dialect of regular expressions, where: A lowercase letter from a to z matches itself. (expr1|expr2) matches either of expr1 and expr2. You will not have to handle more than two operands, and you can assume there wil...

 
11:43 PM
@Simd One iteration of guest4308's algorithm takes O(n) time, so the total time is O(n*iterations). But if you precompute the cumulative sums from both ends, one iteration takes O(1), so you can just try every partition and still achieve O(n) time in total
The latter requires sorting X first, so it's O(n log n) actually
 
@emanresuA I'm really vacillating on whether I think the title is better with or without the MathJax. On the one hand, it looks pretty weird being a different (serif) font--almost as if the font change is part of the language name too. On the other hand, it does solve the original double exclamation mark problem that Mukundan314 mentioned. As the language creator, I prefer the name to be written with italics, but it's okay to leave them out if technical difficulties interfere.
 
You're the one who decided to include formatting in the language name :p
 
I know :p
 

« first day (4831 days earlier)      last day (27 days later) »