« first day (2019 days earlier)      last day (2842 days later) » 

8:00 PM
@quartata doesn't it have limited recursion?
 
@TùxCräftîñg Not a subset in history. A subset in scope, power, and general structure.
 
@ConorO'Brien I think it's still broken
 
Does Cheddar compile to JS or something?
 
ven
8:01 PM
@Adnan actually... I still can't take X from the docs and paste it into my editor. I have to find it in the source code, paste the "\u..." Somewhere, and use that instead...
 
@Lynn No it's interpreted.
 
I see
 
@flawr pls stahp
 
ven
@Lynn well, that or a giant runST :)
 
@BusinessCat Vehicle crashes are in his blood. That would be like asking you or me to stop breathing
 
8:02 PM
@ven Yes! :D
 
@quartata confirmed, recursion is still broken
 
ven
@Lynn don't they say Haskell is the best imperative proglang?... Probably not; but they could (:
 
it's why neoscript is better
 
@El'endiaStarman I read a fair bit of CS Lewis growing up. He was possibly more averse to separating different mythologies than anyone I've heard of. I liked how The Cosmic Trilogy managed to combine several into a coherent storyline
 
I’ve heard that said / I’ve joked that it’s my favorite imperative language before.
 
8:03 PM
@trichoplax Wait, you actually read That Hideous Strength?!
 
Yup. It was that or revise for my GCSE exams...
 
@ven What do you mean?
Do you want to find a command in the source code?
 
Of all the things I could get immortalised... I apologise for being a bad influence. All of you doing GCSEs, revision is important! :P
 
@trichoplax Lolz. That book was one of the only books I've ever had to start multiple times. It really took some willpower to push through the excruciatingly boring beginning.
 
ven
@Adnan it's the only choice I have. I tried opening Info.txt in both vimpager and TextEdit, but if I do that, (almost?) any command I paste (non-ASCII) is incorrect. The greator one was normal, but the same just happened for "last" and "a[0:-1]"
 
ven
I admit I.. Don't enjoy 05AB1E's source code that much to spend my life in it
 
It's not too bad.
I've seen far worse (unfortunately)
 
ven
Uhm..
 
Everything's "not too bad" when you've seen Snowman
 
Oh, and you are trying to retrieve that command in 05AB1E.py?
 
ven
8:09 PM
Well, I havn't, so...
@Adnan when I do retrieve the command from the .py file, it works (and it's a different char indeed)
 
@ven By default it uses CP1252 FYI
I would use the online interpreter. That takes the code as Unicode
 
ven
@quartata question is, does Info.txt use it or not
 
Lemme check that
 
ven
Aaah, so I should always use -c?
 
@ven It's encoded in CP1252 yes
If you view it on GH it'll change it to Unicode for you
 
ven
8:11 PM
(If I want to use Info.txt, Should I use the -c flag?)
Well, I only have internet on mobile, so no online interpreter fun...
 
I always edit Info.txt in notepad
Info.txt is encoded in ANSI btw
 
ven
@Adnan question is -- if I copy/paste commands from Info.txt, do I need the -c flag?
 
That depends if your file is encoded in CP1252
If it is, use -c. If it's encoded in UTF-8, then no
 
@flawr How do you find all these?? Are you signed up to a crash themed newsletter?
 
@trichoplax Uhm, not really=)
 
ven
8:16 PM
... Then I just don't understand how I'm supposed to use Info.txt, I guess. I'm going to continue looking at the source code to pick the \u... :(
 
@trichoplax Reddit + interest in aviation
 
Just use -c
If you cloned Info.txt from Github it's encoded in CP1252
Although actually...
If you copy-paste how will it handle the encoding
 
ven
such confuzz.
(I did clone it from github, back when I contributed a tiny feature)
 
@trichoplax Maybe I shoud start one!
 
@flawr You're almost all of the way there :P
 
ven
8:22 PM
On another note, no idea how to write [a[0],a[-1]](or +) in 05AB1E.
 
@AlexA. ಠ_ಠ
 
good night
 
@ven Oh, thought that was [a[0], a[1]] :P
 
shift right, reverse, extract first two?
 
Whoa, Dennis just got outgolfed.
2
 
ven
8:27 PM
@ConorO'Brien cool idea. Now to know if it's possible in 05AB1E :)
@TimmyD and you won't even provide a link? :P
 
^
rep is 12021 :D
 
@ven Well it should be ¬¹¤‚ but it doesn't seem to be working for some reason?
@Adnan
 
ven
Now... How do I type that on my computer..:(
 
Copy and paste it and run it without -c?
 
ven
I'm on mobile. Computer doesn't have internet access.
 
8:29 PM
look for respective alt codes?
 
1
A: Slices of triangular alphabets

LynnJelly, 20 bytes &2’× ḶÇÞ‘Øaḣ³¤ṫW€UGU Port of my Python answer.

In Jelly, no less
 
Run iconv on info.txt and copy paste
 
ven
@quartata well, I just need to find them in maze that's Info.txt :P
 
@ven copy the result of [172, 185, 164].map(function(e){return String.fromCharCode(e)}).join("")
if all else fails
 
ven
@ConorO'Brien .map(String.fromCharCode) works, but thanks :D. Amazin
 
8:32 PM
@ven no, it doesn't.
no problem tho.
that approach leaves two unprintable bytes after each character.
 
ven
Does it really take the index/stringified array? Lol
 
1
Q: I've been alphabet hunting for a while

Conor O'BrienY'know, we've had a lot of "alphabet" challenges recently. (one two three four.) While I love a good challenge, and those challenges were very fun, I think it's time for a change of pace. We need to exclude such challenges in the future. It's time for automation! You're going to find some alphab...

 
ven
"Fuck eta reduction" - JavaScript
 
@ven yeah
@ven ?
 
@quartata Depends, what are you trying to do?
 
ven
8:36 PM
Eta expansion/reduction, if it were fine in JS, would mean no diff. between "b=a.b;b()" and "b=function(){a.b()};b()"
@Adnan ah, it's a bit long--any idea how to write a[0]+len(a)+a[-1], then?
 
@ven there is no difference.
String.fromCharCode takes N arguments.
String.fromCharCode(172, 185, 164)
^ also works
 
@ven Shortest I can come up with right now is 05ab1e.tryitonline.net/#code=wqxzwqRzZ3NK&input=MTIzNDU2
With three swaps, that's ugly
 
ven
@Adnan yeah that's what I was trying to avoid :/. Maybe register
 
@Adnan [a[0],a[-1]] was what he asked for
 
8:41 PM
@ven That would probably be longer
 
ven
4 mins ago, by ven
@Adnan ah, it's a bit long--any idea how to write a[0]+len(a)+a[-1], then?
 
It's definitely the bad side of a stack based language
 
ven
Hehe, yeah. "Run all these operations on the same thing"...
 
@Adnan does 05-- have meta functions?
 
ven
Okay, so, now, I need to find how to write these on my computer :(
 
8:42 PM
which ones?
 
@Dennis: TIO feature request: some way to copy [Try it online!](link) to the clipboard.
15
 
Berkerly made a language called Pyth and it's not the same one:
 
Like a Save Markdown button…?
 
@quartata ¬ pops a and a[0]
 
8:44 PM
Or maybe shift-clicking the Save button.
 
@ven String.fromCharCode(172, 115, 164, 115, 103, 115, 74)
 
ven
@Adnan ...then join by len(a)? :P
 
@ConorO'Brien What are meta functions?
 
@Adnan functions that operator on functions. like, function composition
 
8:46 PM
@ven That can easily be done with the Alt Gr button on Windows
@ven Ohh, nice idea
@ConorO'Brien I have thought about that, but decided not to implement that
Might change in the future though
 
@Adnan okay, cool. then here's my idea: say you have a string that's terminated by ¤, as in "...¤. Then you could interpret the contents of said string as a series of functions to apply on the TOS, After, concatenate the results together.
 
pl was going to have something similar.
 
ven
^love it. Or maybe make a list out of them :-)
Okay, so my numeronym is almost done. i just need to split by space+foreach now.
 
@ConorO'Brien Ohhh, that is a brilliant idea
I'm definitely gonna do that
 
@Adnan thanks! you can also use different chars to signify different things... if you have any more ideas ;)
I want 10% of all profit yielded by the languages tho!!! </sarc>
 
8:52 PM
I feel like Osable could use some better control flow structures
 
ven
@Adnan does 05AB1E have something like.. "Blocks"? (Aka "how2Ä")
 
It doesn't have anything like blocks
 
@Lynn Or if it fills out the standard header #<language name and link>, <n> bytes... <code>... <try it online! Link>
3
 
The closest is [...]
 
Blocks?
 
8:53 PM
(infinite loop)
 
@DJMcMayhem OMG, even better.
 
@Adnan {...} in CJam
 
ven
@Adnan fuction, block of code, etc. I.e. How to run a function for each element in a list
 
Oh, you can do a for each loop
 
ven
(And by "function" I mean more than 1 instruction)
 
8:54 PM
That's vy[commands]}
 
@DJMcMayhem except TIO doesn't count bytes
 
Maybe also a code page link for languages that always trigger the "That's multiple bytes!" Argument
 
Whereas y is each elements
 
TIO could probably store a code page for each language
 
ven
8:55 PM
@ConorO'Brien ❤️
 
@quartata There are a lot of variables in osabie though
 
Actually, thinking about this has got me really excited. I might throw together a user script for it.
 
@Lynn Dennis said he'd do that a while ago
@Dennis By the way, have you been keeping TIO's Pyth up to date?
It has implicit input so it must be some recent version
 
@DJMcMayhem Yeah, that sounds doable.
 
but since I don't usually see isaac pinging you every commit I was wondering how you were keeping track
 
8:57 PM
\o/
 
@quartata Not really. I pulled it once a couple of weeks ago because somebody complained about a non-working feature, but since nobody tells me to pull, I rarely remember.
 
CMC: given a number N, print multiples of that number N, starting at N, forever.
 
f n=[n,2*n..] (haskell)
 
@Dennis feature request: add a button to TIO that writes an explanation of your code and any interesting golf tricks you used so that you don't need to write anything at all, just copy and paste.
 
ven
8:59 PM
Feature request: add a button to TIO that takes a question as input and output golfed code in any and every language it knows
4
 
@ConorO'Brien Ṅ+³ß
 
@ConorO'Brien You mean like this: 05ab1e.tryitonline.net/#code=Wz1EKw&input=NA?
 
@ven I'm not sharing my algorithm.
17
 
@Adnan no, I rather meant what Dennis did.
 
@ConorO'Brien ¼0µ¹¾*,¼
 
9:01 PM
in...?
 
Osable
 
@ConorO'Brien It doesn't say all multiples though.
 
@Dennis it does say "starting at N".
 
Adnan's answer starts at N.
 
I do suppose it is vague
 
9:01 PM
Hahaha
 
closed as unclear what you're asking
 
I leaned on implication >_<
@Dennis why? of course I meant any multiple!!
 
1 min ago, by Conor O'Brien
I do suppose it is vague
 
@quartata Oh nice!
 
@Dennis eh?? who supposed that??
 
@Adnan It can be much shorter
The allure of the counting loop lead me astray
@Adnan Yeah, that's what I should have done
lol, just got enthusiast on SO
 
Yeah, variables in loops are kind of hidden in 05AB1E :p
 
set numin
set numout
get
jmp
  jmp, sub 1, fwd 1, add 1, fwd 1, add 1, rwd 2, jnz
  fwd 2, put, rwd 1
  jmp, sub 1, rwd 1, add 1, fwd 1, jnz
  rwd 1
jnz
Compiles to 9 bytes of Sesos.
 
ven
@Adnan ... Why does .join() in osable clear the stack? O.o
 
What's the challenge?
 
9:06 PM
That happens when you join the stack
 
Print n, 2n, 3n… ad infinitum, given n.
 
That doesn't happen when you join an arrayh
 
Embedded strawpoll: Should a numeric, non-integer type in a recreational programming language use base 2 or base 10?
 
ven
@Adnan ... Hmmm
 
ywò@"<C-a> plus a byte for the -d flag.
 
ven
9:08 PM
Then I'm gonna go ahead and say your code to "join by length" joins the stack :P
 
Doesn't work on TIO
 
@ven It joins the stack by length yes
 
Oh hey, thought of a good Cinnamon Gum solution
 
ven
And I have no idea how to make so that it doesn't join the stack, but joins an array instead.
 
@ConorO'Brien Is output in unary OK?
 
9:09 PM
What code do you have now
 
ven
@Adnan yeah but now that I need a for loop (for each word) I need something else haha
 
What is the challenge?
 
@quartata how about "your languages default number type"
ind:a=>.a+v
      ^ pd<
 
ven
I can't copypaste code. There's no challenge, I'm just writing a numeronym
 
@ConorO'Brien That is my language's default number type
 
9:09 PM
@quartata go ahead.
 
Does it exrex.generate the regex (11…1)+? :D
 
@Dennis Clearly these are the same option stated twice ;)
 
ven
... I don't really care about challenges :c. More so about languages..
 
@Lynn Yeah, I was going to do h1{%d}+
h is basically f`g
 
@FryAmTheEggman >_>
 
9:11 PM
This one doesn't join the stack
 
ven
@Adnan thanks :3
 
np :)
 
@Dennis :D If you mean literals I think decimal is better.
 
@Dennis Base 64?
(52 letters, 10 digits, plus a couple of characters)
 
9:13 PM
Ugh, I need parens around it. rip
 
Oh actually it is non-integer right? Could do base e or something really fancy.
 
ven
@Adnan it all works \o/ perfect, thanks!💙
 
No problem :)
 
@FryAmTheEggman No, the type itself. I'm implementing a Number type and using binary right now, with a fixed amount of digits after the comma (1024). That works nice and all, but Number('1000.1').exp() has a huge absolute rounding error. Switching to decimal would fix that.
 
Can I see the code :3
 
9:15 PM
@Dennis base -1 + i
 
@trichoplax I didn't mean the literals, but the internal type I'm working on.
@ConorO'Brien >_>
 
@Dennis I don't think there's a nice way to get around the cases where one has little error but the other doesn't. I think you could have a "decimal" type in addition and rely on the user knowing what they are doing?
 
@Dennis I get it now - from your message to Fry. I guess you lose some numbers either way?
 
@FryAmTheEggman @trichoplax All numbers that can be represented exactly in binary can be represented exactly in decimal.
 
ven
9:17 PM
@Adnan i'd need to retype everything on mobile :(
 
Really? I though 1/10 was a repeating decimal in binary?
 
oh okay nevermind then
 
Something is borked.
 
@FryAmTheEggman Got that backwards.
Typing is hard.
 
eh oh well P`g(1~)+ is shorter anyways
 
Whatttt
It never used to do that
 
Decimal? Why stop there? Use base 2*3*5*7*11*13*17.
2
 
That must be a new change
Grrr
Thanks for the heads up
 
@Dennis So decimal is more "expressive" in that sense? Maybe a highly composite base then?
Ninjad...
 
@ConorO'Brien Why is ZABCDEFGHIJKLMNOPQRSTUVWXYghijklmnopqrstuvwxyzabcdef truthy?
 
9:19 PM
Nah, highly composite numbers have multiples of the same factor so they are wasteful.
Gotta use primorial.
 
Good point
 
Yeah, I'm not sure enough about how the tradeoffs work beyond that to be able to say anything useful about which to use.
 
@Adnan ZABCDEFGHIJKLMNOPQRSTUVWXY => ABCDEFGHIJKLMNOPQRSTUVWXYZ
 
Oh, they can be separated
 
@ConorO'Brien Jellyfish, improved to 8 bytes: jellyfish.tryitonline.net/#code=XH4pcAowaSs&input=Nw
 
9:20 PM
@Zgarb oo, coo! :D
 
@feersum Does that easily extend to non-integers? Does it just use 1/2, 1/3, 1/5, ...?
 
@trichoplax WHat do you mean?
 
@Dennis Pull CG?
 
Base 30 might be a neat idea. Division by 3 is rather common.
@quartata Done.
 
9:22 PM
That sounds like it would be a good trade-off, getting the most common 3 divisors but not going totally off the wall :P
 
It does.
 
@feersum Right of the decimal point, for fractions. I need to read up on primorial base numbers...
 
It takes input in decimal
 
It's not different than any other base.
I don't mean mixed base or anything weird.
 
9:24 PM
@quartata oh. weird
 
@trichoplax It would be e.g. digit * (2*3*5...) ^ (-1 * spaces right from radix)
 
@ConorO'Brien Weird sums this language up all right
 
ven
@Adnan ah, damned, it almost works. :P i just need to replace the "recent_input" with "current element" (y).
 
You mean like input_1?
 
Oh I see - I was thinking of a different prime base for each column, but you meant pick a fixed primorial number and use that as the base?
 
9:26 PM
Oh wait, I misread that
 
@ConorO'Brien Shorter: cinnamon-gum.tryitonline.net/…
 
not bad
 
I should get around to finishing the modes list
 
ven
@Adnan was as simple as replaced "1" with "y". Amazin' :)
 
9:28 PM
:)
 
ven
@Adnan wrt "le function" - I'm not sure how I could do what I want with it. Like first,len-2,last. The "-2" part kills it...:(
 
Ahh, that might be a problem yes
Maybe functions seperated with a seperator.
 
@Dennis if you use 210 (2*3*5*7) then you could also use it as the base for literals, since it's less than 255...
Although then I guess you'd have to use some equivalent of quotes to denote numeric literals, or you'd have used up most of your available characters
 
in J, what's the shortest way of joining a numeric by a character? E.g. ';' join 1 4 5 7 => '1;4;5;7'
 
@trichoplax I'm not concerned with how literals should be encoded atm. Ideally, it would be a numeric library that could be used in a variety of languages, and - if I manage to make it fast enough - not necessarily for golfing.
 
9:37 PM
I see - real world useful. I forget programming can do that too... :)
 
Heh, it will probably too slow.
 
Will the benefits outweigh those of something like a rational number type?
 
ven
@ConorO'Brien joinstring?
 
How about a number type that shells out to Mathematica for all the operations
 
9:39 PM
@ven I never knew about that. thanks! :D
 
What is this conversation about anyway?
 
in Jelly, Feb 26 at 19:46, by Dennis
43 seconds to sum the inverses of the first 10,000 natural numbers...
 
ven
@ConorO'Brien another solution would be }.@:,@:(';'&,"0)
Ah, how I love J...
 
So I've been working on a BF/Sesos solution to codegolf.stackexchange.com/questions/89241/…, and I was wondering if anyone had a good idea on how to set the pointer to the maximum of a bounded set of cells
 
9:41 PM
@Dennis I'm out of context. How can the sum of the inverses of the first n natural numbers be greater than n?
 
ven
@ConorO'Brien (in my cases, I needed this because you can't `';'joinstring'abc')
 
@trichoplax It isn't. It's just very slow since adding two rational numbers involves GCD and whatnot, and numerator and denominator get huge rather quickly.
 
@Dennis Oh - I'm guessing there's a slash somewhere in the middle of all that - realisation has dawned...
 
What's a good hash function for a struct containing, say, 4 ints?
 
9:45 PM
@Dennis I see now. That does sound painfully slow. Could you get any speed up by storing the numerator and denominator as prime factorisations? Hope I'm not going to just repeat the previous conversation - I'll go and read it...
 
'You should use ',(":@(*/@:p:@i.)),')',~' (',[:;'*'joinstring[:<;._1' ',":@:p:@i.
 
ven
@ConorO'Brien that first atop @ should be implicit
 
without it, an extra space is created
 
@trichoplax Hm, that does sound like an interesting idea. The Rational type I brought up is sympy's, not my own.
 
fixed by removing a space
nvm, it doesn't work
 
9:49 PM
@Dennis Oh - I guess any optimisation I can think of has already been applied then...
 
ven
@ConorO'Brien considering the parens, whether it's a "@" or a space doesn't matter
 
@ven I mean, removing it yields, for 4, You should use 210, and for 1, You should use 2
 
@trichoplax Heh, sympy is known for a lot of things, but speed.isn't one of them. I'm not sure how to deal with prime factorizations when it comes to transcendental functions though...
Or plain rational.
I guess I'll just make the base variable and let it default to something sane.
 
You should use base */p:i.40x
plus or minus i
 
@Dennis I guess for cases like that you might have to recalculate the prime factorisations from scratch, so it might give a speed up for summing the inverses of the first 10,000 natural numbers, but a slow down for other tasks. I don't know how to get around that...
 
9:55 PM
Right now, real and imaginary part are stored independently. Although I guess absolute value and direction would have its perks. A pain for sum/difference though...
 
Is this about M?
 
Not really. I want to create a non-symbolic numeric type, among other things for Jelly.
M will keep using a symbolic type, if I ever get to develop it fully.
 
Do you want it to be able to represent anything other than rationals?
 
What's the distinction between non-symbolic and symbolic numeric types? Google is giving me advanced psychology papers, which I don't imagine are the right answer.
 
@trichoplax No. Even rational may be too much. I just want a single numeric type that can be used for everything (integers, non-integers, complex numbers, characters), so creating a language that can deal with all of them becomes easier.
@StevenH. In SymPy, exp(1) is just exp(1), not a numeric approximation of the value. Unless you ask it to evaluate, all computed numbers are represented exactly.
 
10:30 PM
Add unknown variables/symbols to the list :P
 
10:45 PM
my god
it becomes harder every day to hotlink images from imgur
 
I swear 99% of the bugs that take be 1+ hours to debug all come from be using the wrong variable >_>
 
question: Should dictionaries be allowed to have keys of different types?
e.g. [1: 'a', @two: 'b']
 
By default yes, but you should be able to use generics to enforce a type
 
ok that's what i was thinking
 

« first day (2019 days earlier)      last day (2842 days later) »