« first day (3172 days earlier)      last day (1670 days later) » 

Anonymous
12:08 AM
@Adám It works on anything that implements Num
 
It says Int
 
Anonymous
Which includes integers, floats/doubles, and any data type you create that implements Num
 
Anonymous
The version I posted says Int because I explicitly declared the type of f to be Int -> Int -> Int
 
Anonymous
The actual type of (+) is Num a => a -> a -> a, where Num a represents some type a that is an instance of Num
 
@Mego Oh, I missed that, sorry. I'm very not used to type declarations.
 
Anonymous
12:11 AM
The type declaration there is needed because typeOf seems to not work well with typeclasses
 
1:45 AM
@wizzwizz4 @A_ @user202729 dzaima completed the 1+ quine!
 
A _
Easy, it is not that surprising.
 
2:05 AM
Yes, it is easy
But still, it's a remarkable improvement
 
A _
I mean (take it) easy.
 
Oh.
Sometimes I got really happy, and sometimes I got really sad.
I'm emotional.
A different approach of infinite loop(infinite recursive!)
(|())
 
A _
Defining anonymous subroutines.
 
A _
I realized that I am putting unconstructive comments into chatrooms, therefore I am deleting my profile to stop this behavior.
 
2:14 AM
@A_ Why not just stop your unconstructive comments?
 
A _
This is my instinct. I can't control it.
Or a possible solution is to contact a moderator to suspend me from chatrooms forever.
 
@A_ It seems though, that the sandbox room serves to give you an outlet for your urge, so you can stay calm in normal chat rooms. Spamming the sandbox is fine.
 
A _
Is there a way to avoid recieving pings from other chatrooms?
 
2:29 AM
@A_ You can mute the pinging using the little speaker icon on the very top left of the right-hand panel.
 
 
2 hours later…
A _
4:03 AM
They've definitely did it before me. (Iteration of the ASCII table backwards)
 
4:21 AM
Built a PC for the first time a few days ago and overclocked it. It was an interesting experience.
Here's the userbenchmark summary scores I ended up with: gaming 116%, desktop 181%, workstation 168%
I will clarify though that it's not really a personal system and I won't really have the opportunity to play games on it.
Also these percentages are just relative weighted values that change over time.
 
4:52 AM
@A_ Deleting profile??
What's that?
Also, you are not unconstructive.
 
@TwilightSparkle I agree. @A_'s contributions over in The Sixth Barrel are very constructive
 
I realized that I am very similar to A _, in many point of view.
I want to get 1+ featured on Esolangs. However, I'm not good at writing...
'''[[1+]]''' is a minimalistic stack based [[esoteric programming language]] conceived by [[User:Parcly Taxel]] where 1 is the only literal...
 
A _
5:46 AM
Comment-chaining: Try to treat the previous comment as a question and notify the previous comment-poster using a ping.
E.g. We should do blah blah... Can be treated as Should we do blah blah...?
You are allowed to start a new discussion by typing three hyphens into the chatroom. Try your best to avoid this though.
 
A _
@TwilightSparkle I think 1+ is not unique enough to be featured, therefore there is little to say about the language.
@TwilightSparkle People won't be able to see my profile, but I can still answer and ask questions as usual...
My profile contains information about me.
Hello? (Everyone else's avatars are opaque.)
 
Hi.
 
A _
Are you interested in starting a conversation in Message-chaining?
 
A _
6:11 AM
@Jono2906 I think the conversation is becoming weirder, can you tell me the scheme of how you answer my statements? I'm absolutely stuck.
 
@A_ well, I take a key word and try to give an explanation of what it is asking.
 
A _
I am thinking more of creating 5W1H questions out of the statements.
Translation log: who had caused it?
 
@A_ I don't really know. Probably people who play Fortnite (that's a joke)
 
A _
How was everything good destroyed? (Nope, that was answered)
 
A _
6:40 AM
"(off-topic) I'm going to have a break for a bit. I'll be back soon"
This is on-topic because this is providing information answering the question "What will the poster of the previous message be doing next?", which is the poster of this message themselves.
This is the longest reply-chain I've ever seen in a chatroom.
 
A _
7:18 AM
@TwilightSparkle You can just follow the template. '''[[1+]]''' is a stack-based esoteric programming language invented by [[User:Parcly Taxel]] where 1 is the only literal. It only has 15 possible diverse syntactic items, however despite this restricted set of instructions, it is actually very easy and user-friendly to program in. For an easy language one would expect a full set of arithmetic instructions, but 1+ only has two of them: + (addition) and * (multiplication), (message long, trunctuating.)
and this concept has beed derived from the concept of integer complexity, and it is possible to produce any numeric constant using only these two arithmetic operations. 1+ is unique as well; it has special stack-manipulating instructions such as \ (rotate the stack downwards) and / (rotate the stack upwards), which is uncommon in more normal stack-based languages such as Forth. This allows programmers to manipulate the stack much more easily, thus ensuring the easiness of programming in this.
Control flow is also relatively simple, and there are only two of them that exist in 1+: # (a goto instruction in 1+) and (|) (the way to define subprocedures). The goto instruction is capable of producing conditional statements because the * instruction can multiply a constant conditionally based on whether it is 0, and the subprocedure syntax is there for making programming even easier and higher-level.
(It is extremely long, you'll need to trunctuate some of it.)
 
7:40 AM
0
Q: Find the maximum hash value

V HejeebuQuestion For a sequence of Positive Integers \$A\$, find the maximum hash value. Each Integer in the sequence has a hash value. The hash value of an Integer is defined as the number of Integers (that come before itself in the sequence, non-inclusive of itself) it divides without a remainder. ...

 
 
1 hour later…
9:07 AM
@Adám unfortunately you cannot do that on the fly, backticks only work for named funtions. You could do something like let f=(\x y->x+y) in 3 f4 (the let X in Y evaluates to Y (where all definitions in X are applied))
@Adám In tio you always have to write full programs, I do recommend getting GHCI (a REPL) to try things. I when I use TIO I usually still have a GHCI window open next to it) - the easiest way to get it is probably using Haskell Platform
@Adám that is the thing with functions that accept multiple different types: Either the function is totally type agnostic in which case we just have a variable as type (see example (1)), or the function might call one or more functions that are just implemented for specific types: Then the inputs must belong to a corresponding typeclass (see example 2):
ex (1): For example the function f=(,) takes two inputs and returns a pair. The signature is f :: a -> b -> (a, b). Here a and bcan be any type. To go back tot he currying: Due to the currying the -> is right-associative, that means it could also be read as f :: a -> ( b -> (a,b)), so f takes a value, and returns a function that takes another value and returns the pair composed of these two values.
ex (1b): The function f x y=[x,y] has signature f :: a -> a -> [a,a] which means again a can be any type,b ut both x and y have to have the same type. (All entries of a list have to have the same type)
 
@flawr Ah, for that one, it f won't refuse to be called on two non-matching types, but will hit a run-time error when getting to [x,y]?
 
9:23 AM
@Adám you already get the error when compiling as the compiler checks that
ex (2): `f=(==)` (equivalent to `f a b = a==b` "check equality"): has signature `f :: Eq a => a -> a -> Bool` Now `a` cannot be *any* arbitrary type, it must be a type of the typeclass `Eq` (this is what `Eq a` says). So it takes two aguments and returns a bool. If you invent a new type and want to be able to check whether to values are equal, the you can implement the `Eq` typeclass.

(Similarly, if you have a function that operates on numbers, but you don't care whether it is `Int`s or `Double`s or `Rational`s then you can implement it for the typeclass `Num`. But you can only use the fun
So print expects something "printable", this means it must be of the typeclass Show, which just implements a function from your type to a string.
Sorry for the wall of text, but I thought this might clear up some things:)
(I hope you see I like talking about Haskell:)
 
Ugh, sounds so low-level. I guess the Haskeller has to think of everything. Nothing is left for the computer to figure out.
@flawr No, by all means, thank you for taking the time to explain it all to unintelligent people like me.
 
@Adám the advantage is that as soon as it compiles you can be pretty sure never to encounter an error:)
but it really forces you to think a litttle bit more before you write something in contrast to e.g. python where you can write almost anything and you then wonder why it doesn't work:)
@Adám maybe un-Haskell but certainly intelligent:)
 
@flawr Right, whereas APL gives you no guarantees, but isn't compiled, and will stop to let you fix the code (even what's on the stack) and then you can continue. In fact, you don't even need to define all your sub-routines; APL will ask you what names mean as it hits them, so you can define them on the fly and continue.
@flawr haskell ≡ intelligence (in Hebrew)
 
maybe that explains the widespread use of functional programming in Israel :D
The strictness that comes with the types really is a double edged sword: As a beginner it makes it a little bit harder to learn, but then when you write programs it can make your life a lot easier:)
@Adám That is my general impression of APL, it lets you do many things interactively, right?
 
9:39 AM
@flawr Yes, everything, actually. It is a happy coincidence that our company is called Dyalog :-) as in speaking with the computer until it all runs as desired.
 
@Adám ooooh! :)
that's nice:)
 
0
Q: North Korean dictionary order

Dannyu NDosThe objective Given a string of Hangul syllables, sort the characters in North Korean dictionary order. Introduction to Hangul syllables Hangul(한글) is the Korean script invented by Sejong the Great. Hangul syllables are allocated in Unicode point U+AC00 – U+D7A3. A Hangul syllable consists of ...

 
@flawr Strangely, it is just a boring portmanteau for Dyadic's APL implementation targeting Zylog's Z80 processor!
@flawr This may interest you.
 
@Adám thanks!
 
9:58 AM
Hi there
 
@TwilightSparkle Hello.
 
I'm curious why don't Parcly Taxel join CGSE.
 
@TwilightSparkle Maybe he isn't into programming. Why don't you ask him?
 
He actually is into programming because
He conceived the 1+ langauge
P. S. Is pushing 5 in 1+ doable in <7 bytes?
 
@TwilightSparkle it's possible to hide SE sites you've joined to, so they may be joined
 
10:05 AM
@dzaima Oh, yeah.
Also, the quine is awesome!
 
@TwilightSparkle it's nothing spectacular, pretty much every quine in a language without strings is either store numbers, print source version of them, print as chars, or the same but with base decoding
loops in 1+ are awful though
 
However, 1. It's a huge improvement in 1+' history 2. Hard enough for me and 1+' restricted instructions
Excellent use of functions
 
also latest version ungolfed & my regolfer:
https://tio.run/##ZVNBa9swFL77Vzycg@0oJVWyW1K2buutdIaxS@MMlFiJQx3J2ErLmjYMBl0SmrENRncZjB5GtksvK4xdBuk/0R/Jnpw2dMzGkp7e@z59@iSzJN4Ij1mvz5ZLH/TZexjq2bU@/6Nn85GLwy2n6Xh6PNeTr4HTaDp6PMUUJk5tCIQ9wgDM3LtPsciccsgPy5kKe6LsWMleTqinbxbznHX6Nod@rORThqOkx5/15FKf//L1@DuSbIOefQEZhyBYn2eWWHG4WJTsefrsAzjglFysHLQzqD7Qr7/RzU1v5JdQnOs5OVzwo1s43Hsww/uJerVKAUs5xLzLYlBSPrSQERfyjeihr6eXufLZ9SMU/nvLSMU5/3QxB7Fn@aZyhELWKOxXe51c3gtmExQ8NGJfPHmOPKRa9UrY43ddqtxc4NA0yH3nQn1xVa2SFQB8a2d9IiXjnLH@x9ChaMDiqkJw@uai4unZT4cSB7XdgdEaw/qPrJ11sLNcuvsnlBJa96CRDLIIjnkqm1ZgIgWbIAVkirUPoCW
 
Wow!
How is that APL thing working?
(I don't know APL. The only symbol I know in APL is the comment)
Also
Is (|+) a valid submission for the "Add two numbers"
 
@TwilightSparkle strip comments & whitespace, replace names by frequency to lowest available chars, generate the starting number mess
 
10:16 AM
As I'm not sure if this really count as a function
 
@TwilightSparkle I'll teach you in no time.
 
@dzaima Number mess...
 
@TwilightSparkle That's the absolute value of the sum of two numbers. Valid, but you don't need the parens.
 
@Adám :| in 1+ it's defining a lambda popping 2 items & summing them, with the function name being an empty string
 
@Adám Well... I realized 1+ can't handle negative numbers, so my current submission is invalid too...
 
10:18 AM
@dzaima ;-)
 
@TwilightSparkle i don't see why not
 
Also, lambdas are executed when defined, so... :D
@dzaima I mean a single + can't handle negative numbers
and is invalid as that challenge
 
@TwilightSparkle ah, so there's your answer. i haven't looked at the challenge
 
10:54 AM
apparently no:
https://tio.run/##lVXLbtswELz7K7a6lIoaIUqCHuooRVEUaA9FDzoGOTAyHdOlJZWkHKSFv91dviRKcYDWsGVpuTOzD3K1pXt6vl39PB75rmulhi0a8l5zkZ8tF4uufxC8hlpQpeA75Q38WQB4q9JU49@@5SvY4RqptOTN4909UPmoUusK8JWqTcX0TXULyFECFYK8T5eTtW@NZo9M3gI3Hg17CivEO65bCaQCBR@QJDADuud0tSIq55rtvOvBXj2jiQUZ0U@3n6Skz8SQh8WLe4@xSypXWABCY0neaOAoSkfN6lmhWN72Ou8wXS0awiNp88Ovr02UvMnb0DUnCrM/mTVfA2mgLOFiVIe9zdg4VyQNusCEYoOPL1Zt4kbR5rxIIwLPUOddrzakCBzgBetc8d8MbksoYtAIW/UdiUFz2OUUNgLNdQoc13a9mK0dFvO7Q9ReyXQvG9gvbcUPC/Nxm7Sy6mveUIH3nWTWxz3bbmLzphYT@NSywTZ8blfWilX2@dgEsRkuSsODT@fF5dW1sxgt08deCGcINAF0sHQY1DsXSSD2wG5CzJexaGfLmxUv
 
A _
11:33 AM
@TwilightSparkle The best I can do is 11+""++1+ (Untested)
 
@A_ my brute-forcer gave pretty much that too (11+""1+++)
 
A _
The optimal length for 6 is 6 bytes, yet the optimal length for 7 is 8 bytes...
(I can do both 8 and 9 in 7 bytes.)
 
@A_ ? optimal for 6 is 7 & for 7 - 9
an observation is that all optimal numbers will have an odd number of characters as otherwise the stack can't have exactly 1 item left
 
A _
@dzaima Can you share your brute-forcer?
 
11:52 AM
argument is the exact program size wanted (so even numbers give nothing)
https://tio.run/##lVZNc9s2EL37V2x4SEmTZiQ7vYSiOkomnXYymR6YS8f1AaJgCy5FsgQkJ@3otyuLBcBPOeNqRiS42H37sNhd4JEd2NXj5u/TSezqqlHwiIJ4r0QRXyYX9X5diBzygkkJn5ko4b8LACuViil8HSqxgR3O@ZlqRPlweweseZABqQKIUoGAFH4vFX/gTVyzRnL88LXS7ewuSEjtNya3GVeLbAnoKgVWFL6IxGj2E@f1wiJFkC2XILRyyZ@cim8t7qsG/AwkvEO8ANVittn4WlFj@DIWiu8ikIHVHyPrVSAy2qlq1TTsW2vbcSa5jCWGzWd9v2MwosECyL5J9BpXexXXGCpVlEiEhd478EIZr@O82nDfMTqj7G2qknvDef5VKH9GsiP@7ab0wkmRxE0oI9oL7jamp3I4H0NxD34JaQozZwNwaOOYtUyPwAvJWxUb@lyvGX2XV/MIvXYQAOuqKjgrIWdlvZdb9J7HUvzLYZECvyqTVlEzsEqBdZ3HGI
 
@Adám D: the APL Orchard is mentioned:)
 
@flawr Yes, you can find the conversation he talks about there.
 
@dzaima with FAST=false it'll generate all programs of that length which is required to do that challenge effectively, but, as the name implies, that makes the program very very slow - 13 has been running for a long while for me (searching for the best encoding of 43 for my quine)
already got -92 bytes from optimizing 49 (11+1+"+1+"*1""+""*++"*) but that's 11
 
12:18 PM
optimized it to throw away worse equal things, and in <1s 11+1+"+"1+*1+1""+""*+""*++ which is a 122 byte improvement \o/
 
12:32 PM
numbers 0-256:
https://tio.run/##XVi5rhw5DMz3KwYTTidN6gb8M8bmmxjw779tXmJpEr9RNUXxEovyv7//@/v7z8/P63W/6H3Rr39eL3rR8y/L@vlbnr/vS35VQd6f51dT7P0RtCtqv4fhz0JW07/IjmVaZDfdhj8fHikiXZFpI45vl0gW1ydL@Vr9a6yba/UTyWz56Cluy8f0hi22WmGn7ePb9@lXptjpXzn2@rrs3QIIgnY9Z/OOj1jCYlUsRXqE1So77evl8eAV8bB1udNHXdOWF0CQbZ/oK2mdyYdtsW47prF/Z1CsLZlDtbbMnRFbRyY9//WG6Dz7K2F0VIK3fttR8gSLaE0bBRAtmdlA@o6xQbJv7FglNqMGrGrrypoU/9qduZH6bpTZeauGxrsaRIUgZVeEIGpzq5lF1dMyL5dGunU4WT1vA3Kp1rVdl3oBxL6w1ytA9nWoT/OqY426lR3rNLCScbxUf69xKyUavaUePamnDl0PyKb63SO@IbEyNiYxsiICgZpQSDDedmhsBtx10zx2VcTNG3mvNA8PklXh8RthcUCyb0IFavzGghp8W0bnnZ6JpknR
 
A _
Thanks, that was really helpful.
 
 
1 hour later…
1:36 PM
You guys not only surpassed, but smashed me.
 
A _
Me guys??? It is only dzaima.
 
No, you both did wonderful works.
Also, I don't know Java [sigh]
 
A _
I barely did anything.
 
P. S. I don't see a reason to change 11+ to 1"+
They are basically the same...
And my (1+) programming style is to use " only if the duplicated value is not 1.
 
A _
I just copy-pasted the result of the brute-forcer. If you prefer it please change all of them.
 
1:41 PM
Ahh...
Is the 0 change part of the brute-forcer-generated table? XD
Seriously I think I need a C++ brute-forcer
As I don't know Java
@A_ Shall I put a "snippet" section on the 1+ wiki page?
 
A _
Feel free to do that.
 
Pros:

1. Snippet would be very useful in this language.
2. I can contribute something.
Cons:

1. I've seen a few languages putting snippets on their wiki page, and those page gives the feeling that it is not... official... or well-formatted.
I realized you could use Notepad to solve Space Cleaners:
 
A _
Pros>Cons -> True. You should do it.
Of course. ^H !->!
How many bytes would that be though?
 
Hmmmm
<Ctrl+H><Space>!<Tab>!<Tab><Tab><Tab><Tab><Tab><Enter>
Technically it is this
12 keystrokes
But not sure how many bytes
Discovered that when I found the method to solve the 1+ programming style problem using Notepad:
(Oh no this is not the full solution it just solves the obvious ones)
<Ctrl+H>1"<Tab>11<Tab><Tab><Tab><Tab><Tab><Enter>
 
A _
Do mouse-clicks count?
 
1:53 PM
No.
As you can't mouse-click in vim.
 
A _
<Ctrl+H><Space>!<Tab>!<Click>A
 
Sadly, Notepad isn't Turing-Complete by translation to ///
Because it is lacking the `\` instruction
Still, we can reproduce a few /// examples
Oh no!!!
I reproduced the infinite loop example
 
A _
Looping counter: replace n with nn, textarea n.
 
/foo/foobar/foo
And crashed it!!!
 
A _
It is a good idea to replace once at a time.
 
1:56 PM
Yeah
Smallest infinite loop in Notepad:
 
A _
^Hn->nm
Aww, Windows doesn't respond to notepad. I have to kill the process.
 
Yeah..
Sorry for disappearing. I'm doing my HW.
 
A _
I've finished my W.
 
Smallest infinite loop in Notepad:
a<Ctrl+H>a<Tab>a<Tab><Tab><Tab><Tab><Tab><Enter>
 
A _
2:10 PM
```
Binary to unary conversion program in Notepad.
1001<^H>1<Tab>0*<Replace-All><Content>*0<Tab>0**<Replace-All-Until-All-0's-Are-On-The-Left-Size><Content>0<Replace-All>
```
 
@TwilightSparkle my bruteforcer at the time was set up to prefer characters with lower unicode values for my quine, and " is better than 1 there
 
@dzaima Oh!!!
So you automatically finds the one with the smallest lexico... order?
gtg
 
A _
1001<^H>1<Tab>0*<Tab><Tab><Tab><Tab><Tab><Enter><Tab><Tab>*0<Right-Arrow><Tab><Tab><Tab><Tab><Tab><Enter*N(N is user-defined)><Tab><Tab>0<Tab><Tab><Tab><Tab><Tab><Tab><Enter>
Finally typed it out, it was tough.
 
@TwilightSparkle not lexicographic, just minimizing sum(1 + (ord-33 - 1)*2)
 
2:16 PM
Oh.
That looks like a complicated thing.
 
@TwilightSparkle i think removing pointless constants it simplifies down to just sum(ord) though :p
because why not, a version preferring 1 and hating ":
https://tio.run/##XVg7shwxCMx9iq0J9yUD@lf5Mi7nTlzl6z8PH0FrE79VDwLUIED@/evPv19/v79fr/tF1xf9/PF60Yuef/lF9PX8Lc9f@pJfVZBLfjX9ZWi374oP/21fpsnrl@Vf3j9edO/fop/IdV1vWXFoEEmzrZ/1q3kgK/vetvTzj6y7W5Tf5svlemdYkW/hjXnKt@9TrUx7p1ll3lYfVfK9hI9bom7tz1okgh/xhHuu5MS8WVJfeO4zPkv5urYuW5c7pNW7Qilv1gvvUwvTpcRKz1Zq8qDf0zdnrWz/3uJtcd50KfIzOLf15s6Zrcbdtc9enT0HRIJDv56glrRgJ6gZ143syJqTsqvHuQ0SqRFcyRfDZkZH962wptFod0ZD@GgE8upfi3gH4h4HJPsqxElk2rajgEh0sGx6MvKXcd9msmfZ1YJfvwaPpn4fGfdIdcqbsXnu4Pe@IX3nqsK6s@5bKWz0trPDsq337Y@v80Z7vPu@1c5NX7iW/B536jD/B3AcGIcfqmckx2@zPSArz
 
@dzaima XD
Error
The permalink could not be decoded.
 
@TwilightSparkle click see full text. SE likes to cut links in half
 
Oh, yeah, I see.
Don't ping me
However, I saw a Canvas link with the previous table as input and outputs the 256 row.
gtg
@A_
 
A _
Don't ping me. It's scary.
 
2:23 PM
oo
@A_ Who wants to write a ROT-13 program in 1+?
I think I wrote the first polyglot in 1+!! (jk)
In 1+ and ><>, this is infinite loop.
1##1#
@A_
(Random ping)
Just realized it is not so trivial...
Actually, it pushes infinitely many 1s onto the stack.
 
3:01 PM
@TwilightSparkle That's not true
 
0
Q: How is this sorting correctly?

Rakib AnsaryI was practicing coding sorting algorithms, and I came up with the following implementation of merge sort, and it seemed to be correctly sorting any given array. void mergeSort(int *array, int lo, int hi) { if (lo == hi) return; int mid = lo + (hi - lo) / 2; int sz = hi - lo + 1; ...

 
3:17 PM
@DJMcMayhem What 'n how
 
You can use a moose by default. And you can also set what the moose can affect with :se mouse
Err wait
Default on for Windows and GUI I guess
 
 
3 hours later…
6:05 PM
0
Q: Fastest way to make data frame of mean and standard deviation by time variable across partitions of high dimensional dataset

NumbersI don't care what language. Just make it work. I write in R. I want to generate means and standard deviations by hour on different subsets of data that partition the dataset. In a small dataset, this is simple, just run the code I have below as an example. In a large dataset, my method isn't ef...

 
6:54 PM
@DJMcMayhem moose! :P
 
7:29 PM
 
8:04 PM
@Sherlock9 Ha!
 
 
1 hour later…
9:17 PM
I hope you consider coming back – if not now, then when they make changes.
 
Yes, I saw.
It's a big step in the right direction.
 

« first day (3172 days earlier)      last day (1670 days later) »