« first day (2647 days earlier)      last day (2198 days later) » 

1:32 AM
anyone here good with retina?
 
 
1 hour later…
2:57 AM
@thecoder16 I feel that they're too hard for me. "think of something"...
 
@thecoder16 well it is much, much harder to make a good puzzle. hence why there are so many bad ones
 
3:25 AM
@NathanMerrill doing what? Adding noreturn?
I don't think that's really necessary in VSL. In Rust I suppose it's sorta important with things such as:
let x: T = match expr {
    A => T::new(),
    _ => exit()
}
In VSL to do something like that you'd probably do guard case .a(x) = expr else { exit() }
not sure if we want different syntaxt for guard statements
 
4:11 AM
0
Q: Interpret TwoMega

Esolanging FruitIn this challenge, you will write an interpreter for 2Ω (transcribed as TwoMega), a language based loosely on brainfuck with an infinite-dimensional storage space. The Language 2Ω contains three pieces of state: The Tape, which is an infinite list of bits, all initialized to 0. It has a leftm...

 
 
2 hours later…
5:42 AM
To any rust people: How do I go about making a HashSet< MyTrait > I need to iterate through HashSet so I need Hash + Eq. To do this however I need to do HashSet<Box<MyTrait>>, if I do this though, Box will only implement Hash/Eq if MyTrait does, and if MyTrait does, Rust will throw an error saying 'MyTrait' is not an object
 
6:10 AM
@Downgoat wait what
@Downgoat if you implement hash it becomes not an object?
 
@ASCII-only Yeah
 
@Downgoat what. is this documented somewhere
@Downgoat like if you do impl Hash for MyTrait? wait MyTrait is a trait
@Downgoat could you possibly do a minimal failing testcase on TIO
 
6:53 AM
@Downgoat i think it works?
https://tio.run/##dZJNbsIwEIXXySmGLJAjpRzAQCpVbcWmUlV6AUMdsOTEYE9E2yhnT8fOjxCim1j2ezPf8zi2dth1tZPg8Ivzo3BHzpsNLRn4r7TtMp7kvdFa7lGZynHu5a3EK7kokYqf5a4@ZPBqbCkQpc3gQ7paIzWK0QqF8PbzGdYmjooKdsKyuZO6SOEhhy1aVR2WcRvHqjzpEAIKY2@KfNDVhg8Z875BRjEESg7zskbYpN4beWHhGenCF7FgSZdx1E6Md2FRCf1yvgOS57G3QSJR70EPaXfG6BsKrNe9td9ec24B43mY2B02zXOEF8OlpqkGfD/YEOBiFcoZI2vStAlNYgo0RnBo673vYIDR/Xv0CPRwr/z/JNCAlVjbatjTc1tTsoS8SQqBQJWlUBULg9cSwSfeiV9Yw/CzcL56Mt@rgZrnnFfy4tNEZFuoykmLjBz9OQVq2tSrJyKirmYsafijvx7Z6bztuj8
 
0
Q: Triangular Lattice Points close to the Origin

BubblerBackground A triangular grid is a grid formed by tiling the plane regularly with equilateral triangles of side length 1. The picture below is an example of a triangular grid. A triangular lattice point is a vertex of a triangle forming the triangular grid. The origin is a fixed point on the ...

 
@ASCII-only :O wait wat is this majick
oh actually a little problem is that implements Hash on the trait
but we need to defer it to the child structs because we don't know the structure
 
7:09 AM
@Downgoat ah. wait how would that work
can you even implement a trait without an implementation
@Downgoat ok. this doesn't make sense? you want a hashset where every. single. subclass will probably have a different hash implementation? (ok i guess it could work but it's just weird)
@Downgoat relevant :(
@Downgoat this is as far as i got:
https://tio.run/##hVLBbsIwDD23X2F6QK3G@IAMOmnaEJdJ0@gPpCyFSmkCiSvGqn5756SUlUnTLoliP7/37NjUFruutgIsfjC253bPWLOmawbuFKZ9CK/prZZSbLHUyjLm0huBo3RRIRU/i7zezWClTcURhZnBu7C1RCIK0fAS4fWc@bsJg0JBzk08tUIWCdynsEFTqt1D2A7gFVfb81DBrrV33h5dL0c6vCY0bVhWB7nI0tuqQhvI4ETNCMj@pQgtmnpLwlpDnJBpxwljLpf52zs0YATWRl3eNBejqzgibJRA6zrzjF78ls6Nf7Fml8mnPfWMhstRMJhWNcI6cdjAJeZOPZm7othDyGzww//GDZZcUnO3IuI48GokFeKlnPefay1/scNy2cP655h/TDzE@iHe6tFWDILFpYnrbnjZfj288MmUKCYxQaOmjajzq5FBmggrXqrYj0EKBMeX8y9YwmUhGVs86c/FeAPSlDElTu43A8LOS2WFwZhgfZzMNm3isgf6MZRqEkcNe3QOCE7xtuu@AQ
 
7:36 AM
0
A: Sandbox for Proposed Challenges

IQuick 143Arithmetic quine Write a quine. Well that's not very original challenge so let's spice things up. Challenge Write a quine and when two copies of the program are appended (see Appending) then the quine preforms an arithmetic operation of your choice. You can implement as many operations as you ...

 
@ASCII-only yeah that’s the error I was getting :(
@ASCII-only subclass? Rust doesn’t have classes? Do you mean implementation? Because that’s the point of traits, that each implementation of the trait has its own implementation
 
@Downgoat *implementation
@Downgoat yeah that's the thing
@Downgoat github basically says you're out of luck
 
 
5 hours later…
12:30 PM
0
A: Sandbox for Proposed Challenges

OkxElixir Array Syntactic Sugar string code-golf elixir In Elixir, (linked) lists are in the format [head | tail] where head can be anything and tail is a list of the rest of the list. Lists can also be written like [1, 2, 3] which is equivalent to [1 | [2 | [3 | []]]] Your task is to convert a ...

 
1:04 PM
CMC: given two lists containing the coefficients of the two polynomials, compute their composition. 1 0 1 and 2 -3 => 4 -12 10
 
@Cowsquack What do you mean by composition? f+g?
 
f∘g
 
@Cowsquack Ah, f(g(x).
 
yes, so for the example, (2x-3)^2 + 1 = 4x^2 - 12x + 10
 
ngn
1:29 PM
@Cowsquack can we store the coefs in the opposite order (const term -> highest power of x)?
 
sure
 
@ngn ¯1+≢⍺≢1↓⍺
 
ngn
1:44 PM
@Adám many bytes -> many minus one bytes :)
 
@ngn Why can't 0⍴¨⍨⍳≢⍵,\0×⍵?
 
ngn
hm, I think I made a mistake somewhere
the inner dfn does multiplication, one of the ⍵-s should be an ⍺
@Adám you're right about ,\
@Adám ...except that I use ⎕io←0
@Adám the whole (≢1↓⍺)⍴⊂⍵ could be 1↓⍺⊢¨⊂⍵
 
2:11 PM
hi
i was banned without a warning, please help
 
0
Q: Vowel position changer

Muhammad SalmanChallenge : Push the vowels (only vowels) in the given string by 1 position to the left. Note : Vowels are the following characters: A, E, I, O, U Vowel push is cyclic i.e. After rearrangement the first vowel of pushed string goes where the original first vowel was Input : A string line...

 
ngn
@Cowsquack a more serious attempt to golf this in APL, 28 bytes: {+⌿↑⍺×⍵{+⌿↑(0,⊢)\⍺⍺×⊂⍵}\=⍨⍺}
 
can people see this
 
ngn
@BoraCalim yes
 
i was banned without a warning, please help
 
ngn
2:26 PM
@BoraCalim I'm not an admin, but: banned from where? what was your username before you were banned? what do you suspect might be the reason?
 
@ngn he's suspended here on PPCG
 
@ngn nice one
 
guys please
nobody warned me about this
i was suspended within 1 day after i posted anything here
 
@BoraCalim I'm looking into it
 
2:37 PM
@quartata What about it?
 
make a private room?
 
Never done that before, and I'm on mobile, but I'll try it out lol
 
(it's an access setting, like gallery)
 
2:55 PM
guys
my point is not i was suspended
i may have done something wrong without noticing
but i was completely new to the codegolf community, and i was somehow suspended without anyone warning me.
 
@Downgoat I thought you were considering the idea of a "neverreturn"?
 
@BoraCalim You didn't do anything wrong. If you were suspended for a reason, you would have received a message about why. We're working on getting your account back, but there are some unusual circumstances so it might take a little bit longer than normal
 
ok, thanks
 
Thanks for letting us know about it, I'll ping you once I have good news :P
 
 
1 hour later…
4:08 PM
oo.pl would make a great virus
 
 
1 hour later…
5:24 PM
CMC: compute the nth term of "the" sequence that starts like this: 0, 1, 1, 2, 8, 22, 52, 114, 240, 494, 1004, 2026, 4072, 8166, 16356, 32738, 65504, 131038, 262108, 524250, 1048536.... (This is actually accidental/undesired output of a program I'm working on, but it seemed interesting.)
 
@El'endiaStarman <3^ḤạÆẸ
The first three terms are weird.
 
@Dennis Ah, that's why I couldn't find it on OEIS with only the first two terms stripped off. oeis.org/…
Ignoring the first three terms, it's 2^n - 2n.
 
 
1 hour later…
ngn
6:53 PM
@flawr never judge a book by what the left hand is doing
2
 
7:09 PM
0
Q: Competition: Sort 32 elements picked randomly in the value range [-31129; +31129] given these constraints

AdamBackground Some of you might see from my earlier questions that I want to sort 32 elements in fastest time with the constraint of a 256 word memory and around ~4 usuable registers. My best result so far is ~1380 CPU clock cycles/instructions using mergesort to fully sort the list of 32 element...

0
Q: Return the highest possible placement value based on the input

Script47Introduction The challenge itself was something I came across and had to try and figure out for a personal of project of mine. I ended up branching out and asking family members if you could provide an equation to meet the requirements. Note: I have (with the help of others) found a solution fo...

 
 
2 hours later…
Anonymous
9:35 PM
More feedback on this Sandboxed challenge would be greatly appeciated
 
11:03 PM
@NewMainPosts ok srsly? this must be the most trivial challenge I've ever seen
 
@ASCII-only We do have Add Two Numbers
Nothing wrong with trivial challenges IMO. Lots of esolangs can't participate in anything else.
 
@Pavel well, i'm sure repeating a character is relatively easy even in most turing tarpits >_>
 
Not in Woefully, I'm guessing.
 
@Pavel uhh... actually i did make a repunit generator once
 
I'm intrested to know how many more complicated woefully programs have been created.
 
11:12 PM
@Pavel Well if you use Charcoal as an intermediate language it's actually pretty easy...
even easier if you use Python as an even higher intermediate language :P
that way it would be like any other stack-based lang
 
@NewMainPosts Challenge: Do it in Malbolge
 
@Pavel none yet. but seriously who is going to use a language where even the most trivial programs are like 1MB >_>
 
@ASCII-only Destructible Lemon, apparantly
 
@ASCII-only will confirm I haven't made any that i haven't published or something
@Pavel no i kind of abandoned the language already
 
@Pavel he wrote it. he didn't use it
 
11:15 PM
Well, you should post in it for this one challenge.
 
@Pavel i forgot where i put the repunit (possibly on a c&r) and it's possibly a bit complicated to change and golf it
 
Not like anyone would know it wasn't golfed :P
 
@DestructibleLemon ...
 
the language is too complicated to be fun like a simple tarpit and too simple to be a comically obscure language like malbolge
 
@DestructibleLemon it's simple though?
like how so many things like Grass, Whirl etc. really need a transpiler
just look here. look at the sheer number of transpilers
well it isn't that many but there's ~5 at least
 
11:36 PM
@ASCII-only not simple in terms of writing something, i mean
it takes a long time to write simple programs
whereas turtlèd and quarterstaff are simple in terms of the writing what you want, woefully is not, even if the algorithms in those languages are not simple either
 
@DestructibleLemon no?
 
@ASCII-only not so much a long time as in like long long time but as in, if i want to write a command, it take longer than it would in something i consider a good language
 
@DestructibleLemon yeah? which is why you need an intermediate language?
 
all i can say about woefully is at least my first language was not a bf derivative
@ASCII-only what's the point of that?
 
@DestructibleLemon to make it easier to write?
 
11:41 PM
@ASCII-only if i wanted to write a program easier i wouldn't be having anything to do with woefully
also intermediate doesn't work as well here as it might with something else
like it would have to be a whole compilation thing, rather than a single step, because of the way commands have to be structured, and their relationships with each other and stuff... and it would all be very ungolfy
 
@DestructibleLemon ???
 
doesn't really matter
 
wouldn't it be basically trivial in Charcoal though
 
like i guess i could write down commands to draw, but you still have to coordinate the paths for them not to collide
 
@DestructibleLemon wait. not to collide? that is this black magic
 
11:47 PM
idk, you could make a challenge based on this though...
 
@ASCII-only Why doesn't this work?
 
@DestructibleLemon WIP transpiler:
https://tio.run/##jZNRb9owEMef8ac4RUVJwAkNe0PAqmqPazW1k/o4ZcYhVj07cgwBqd@dne2sJYJpkyJynO7u/7u/459lW59OrLTLZcx1Fa@7vDmSjTCwgketOJEUDAWBf2@pfwgrKLA5JqK7bHITUYjWn2neRqQxQlmInrm9L9nr1uid2iTxW5xGpNIGGAgFpux@CNXsbJIuyMiaI/6OFA7D1oSlMIU5JkQFHgE1NjJyJaN@@Df3ShZfdKeexLa2FGJwAlghYLqCglwr/corrPwufvE2wXoK4zZNIxiDcmKQrXwQtnaKZMQPjDd2EVg8OSs8xzlaIPsPtA@2K8VXwRJW5EJt@KE3JXW9fwDdTC7fweYXYOavZMGJc7CsB3OHwOYD0X/73lsY9lPnjCZAttyTMK2sUDtOHKaAJUiXlu7cSVhFwBqMSxqfHMgG3IuPomf37cPVe7vPtILUQGkg9KD3PBm3FBbOoXAEOB9kMH@I4z/pi0bvS@g0fWdxtRPvGWmOttYK3G1DnC5nNcFLGIKZbuyM1aVhupTvAWR7yDKD
 
@ASCII-only actual transpiler?
 
@DestructibleLemon well from a saner stack-based language, yes :P
 
ok fine... how does your saner language handle control flow?
 
11:56 PM
@DestructibleLemon ah. oops
 
also i haven't proved in turing complete formally yet
 
@Neil hmm. might be because loops use a child scope. try using a different variable? i'll be afk for a while so can't test rn
 

« first day (2647 days earlier)      last day (2198 days later) »