« first day (3837 days earlier)      last day (1006 days later) » 

8:03 PM
@cairdcoinheringaahing Adám is probably the only one we can verify
Oh wait, totallyhuman is totally a human and not a cyborg :P
 
@user Idk, Adam looks more like a disembodied head and shoulders than a full person to me :P
 
Well, I'm a real person, and I'd be happy to help out :P
 
As would I :P
 
> help out
Doesn't that mean being thrown into lava? :P
 
No, it means pushing someone in :P
@user Wow, what a nice drawing! I'd be willing to pay good money for that
 
8:09 PM
I'll pay evil money for it
 
@ruse Why, thank you! That'll be $200 for you and $10 for TNB regulars because I'm a nice person
@cairdcoinheringaahing Great, please give me $10 in blood money
 
I'll pay evil money too, please give it to me! I must have such a wondrous drawing!
 
@user What's the exchange rate between first-born children and blood money?
 
green:red
 
@ruse caird, you hear that? I'll have to give it to ruse if you don't pay me soon
@cairdcoinheringaahing 1 first-born child = $1000 blood money
I don't accept children though - please trade them in yourself before buying art from me
 
8:12 PM
@user In which case, can you accept 1/100th of my first born child for it?
 
No, see above
 
@cairdcoinheringaahing which part?
 
My cousin runs a great organ harvesting business, though, I suggest you go there to get a good exchange rate
 
@rak1507 Seller's choice :P
 
lol
 
8:16 PM
rak, would you like a high-quality painting of a chicken swearing while wearing G-Pants?
Too bold for y'all, eh?
 
Not for me! Here, I'll pay you a million dollars for it!
 
*sigh* Alright, here you go. You lost your chance to become the proud owner of an original "user", caird and rak
 
Wait! I'll bid a million and one.
 
You know what, since you're a TNB regular, I'll cancel ruse's order and give it to you
Here is your exclusive picture that nobody else can access now
 
Haha, I've successfully scammed you! I never specified the unit, and I bid a million and one bytes. You can claim them here.
 
8:33 PM
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!
@ruse I'm so sorry
 
@user Look at this wealthy fella, throwing bytes around like they're nothing
 
@lyxal Time to deploy the chicken business and get back at Redwolf
You know what they say: "Bytes can't buy happiness"
 
@user Redwolf's got an automated chicken farm and has already put you out of business
 
We have two-door cars to counter Redwolf...
 
@user Whoever said that has never done code golf :P
 
8:35 PM
Don't you mean code-bowling?
 
No, code golf = bytes, everyone knows that :P
 
Aight
Tell you what, I'll add some extra bytes to your next Jelly answer because I'm nice :P
 
0
Q: Calculate the integer square root of a matrix

caird coinheringaahingLet \$A\$ be a square matrix that is at least \$2 \times 2\$ where each element is an integer. \$A^2 = A \times A\$ will then have the same dimensions as \$A\$, and will have integer elements. For example, let $$A = \left[ \begin{matrix} -3 & 2 \\ 0 & -1 \end{matrix} \right]$$ Therefore, $$\beg...

 
9:00 PM
@PyGamer0 Yesssssss!
QBasic is an outdated language that's missing a lot of capability, but I still maintain that it's a really good language for programming beginners.
(Plus, writing programs in white text on a blue background makes you feel so gloriously nerdy)
 
Like in Powershell? :P
 
I mean, it's not the right color of blue, but sure. ;P
 
@cairdcoinheringaahing does the output have to only be integers too?
 
@rak1507 You can have floats with .0 after them, but otherwise, yes
> output any n×n integer matrix A such that A^22=B
 
ah yeah
damn :P my method produces float answers :(
 
9:07 PM
Was it to take the matrix to the 0.5th power?
 
no
it was using a convergence thing
(2÷⍨⊢+⌹)⍣≡⍨ in APL
wish dyalog extended had a one byte 'half' function
 
 
9:30 PM
@rak1507 I've been contemplating the vocabulary of primitives for a potential BQN-inspired LPA. Since negation and reciprocal are easily achieved with xׯ1 or x-⍨0 and x*¯1 or x÷⍨1, I've been thinking of making monadic +, -, ×, and ÷ into increment, decrement, double, and halve.
Then again, those are of course easy to do in LPA too…
 
Is LPA just APL but interpreted left-to-right?
 
Almost. Some primitives would need reconsideration.
 
interesting, I feel like outside of maths and golf those operations aren't really all that common, monadic + could definitely be increment as conjugate is definitely a rare operation
 
E.g. I don't think x- would be good for negations.
 
I feel like monadic - × and ÷ already have good and useful meanings though
 
9:32 PM
Yes, but that's in APL. It doesn't work well in LPA.
 
If you reassign monadic -, then you could allow a high-minus to act in a monadic fashion and mean negate
 
High minus is part of a literal constant. It isn't a function.
 
Does it mean anything on it's own?
 
In some APLs it is the literal constant infinity.
 
Like, Jelly couldn't let - by itself be a function, as it means -1. But if the actual high minus symbol must be followed with digits to be meaningful, why not overload it as a function?
(I suppose - is a function in Jelly, in that it's a constant function that always returns -1. But still)
 
9:35 PM
Hm, I'm trying to think if it would work syntactically.
For one, it would need a space between it and any adjacent digit. I really don't like spaces between tokens altering the meaning. That is one of the things I dislike about J and K.
Still, I would find it very odd to have a postfix negation function.
 
Don't think of it as postfix, think of it as "right-to-left prefix" :P
Big brain way of creating a prefix lang, for anyone who doesn't want to do parsing: make a postfix interpreter, but just reverse the source code before interpreting :P
 
These are just so nice:
x+ ←→ x+1
x- ←→ x-1
x× ←→ x×2
x÷ ←→ x÷2
n!k and x!
otoh, having postfix named functions (user-defined or from libraries) will take a lot of getting used to, for me at least.
 
@cairdcoinheringaahing "Why is my Hello World program printing !dlroW ,olleH?" :P
 
But I suspect it is simply a matter of being used to it. Why are f(x) and f x and x.f() fine, but x f isn't?
 
x f works in Scala under certain circumstances, actually
Guess it's a matter of tradition
 
9:45 PM
I'm definitely more of a fan of Jelly's infix + postfix style, but that's probably because I use it the most
I hate that you can't easily define your own infix functions in Python tho
 
Being able to define your own operators is amazing, but it gets annoying in languages where you have to remember the precedence for each new operator. Don't get me wrong, it can be super useful in DSLs to set your own precedence, but having to look at the docs just to see how something is parsed is annoying
That's one thing that's nice about APL, although the right-associativeness takes some getting used to
 
So many things become better with left-associative everything-has-the-same-precedence.
 
^
 
It means you can read the algorithm in reading order. No need to look ahead (unless there's a paren, but those should be avoided other than for trivial things anyway).
 
it also makes writing the parser easier :P
 
9:50 PM
It means that the evaluation progresses in a predictable way. RtL makes for some funky jumping around if you have multiple consecutive inline multi-line functions.
 
Stack-based languages are kinda like that, although it gets annoying when you want to look at the bigger structure and you can't tell where the condition for the if statement began
 
Yeah, I don't like stack based languages, because they separate the data acted upon from what is acting upon them. Infix with pre/post-fix keeps things adjacent.
 
@cairdcoinheringaahing Here :)
 
> easily
I want to be able to do 5 ? 4 :P
 
? might become a reserved thingy soon to represent ignored values
 
9:56 PM
I think |'?'| is a "valid" infix function by that method tho :P
@user Yeah, valueless variables IIRC
Like for index, ? in enumerate(array)
 
@cairdcoinheringaahing Oh dear
 
sounds like you'd like haskell tio.run/##y0gszk7Nyfn/PzcxM0/…
 
@cairdcoinheringaahing Nope, can't redefine | on strings :/
@rak1507 Haskell looks interesting, but it's slightly too functional for me :P
 
do you prefer your languages to be dysfunctional? :P
 
I use Python, so... :P
 
9:59 PM
Yes, she uses Jelly
 
haskell is easy, so imperative tio.run/##y0gszk7Nyfn/PzcxM0/…
basically python
 
@rak1507 I use Python, Jelly and my languages, and I speak English. Can it be more obvious that I like dysfunctional languages? :P
 
lol
haskell is easy if you just read the types, but until then it seems impossible
 
Yeah, I've read about Monads, so I'm kind of scared of Haskell :P
I like Jelly monads, not Haskell monads. Category theory is whack
 
10:03 PM
> which we will denote \wedge
My dude, there is all of unicode to choose from. This is the worst option :P
 
does it not render as ∧ ?
 
oh
 
Look guys, it's Java!
 
10:04 PM
lmao
 
> Monads are no scarier than trees or DAGs or maps
I don't like trees, DAGs or maps :P
 
> Monads are made way scarier than they are
> a∧b=b∧a
Math is scary
 
Anything more complicated than a bit accumulator is too complicated :P
 
I just think of monads as boxes even though they're apparently "computational contexts" or something fancy like that
Whenever I see someone say that (->) r has a Monad instance, I just close my eyes
 
Reminder that Community Ads close tomorrow, including new ads, edits, votes, etc, so if you have anything you'd like to finalize or vote on, make sure to do that soon!
 
10:08 PM
@user lol
 
Hi Redwolf, you just missed a discussion about Haskell and monads
 
(>>=) :: m a -> (a -> m b) -> m b
((->) r a) -> (a -> (->) r b) -> ((->) r b)
(r -> a) -> (a -> (r -> b)) -> (r -> b)
(r -> a) -> (a -> r -> b) -> r -> b
(>>=) x y z = y (x z) z
@user happy?
 
Terrified
Arrows everywhere
 
(g>>=f) x = (f x) `g` x -- haskell
(f g ⊢) x = (f x) g x       ⍝ apl
 
S combinator but backwards, cool (well, not backwards, but x(yz)z)
 
10:15 PM
yea, slightly different
 
@user i was surprised until i remembered that there's also an Applicative instance which i attempt to abuse regularly
 
f<*>g ?
 
@UnrelatedString You know what they say: The best way to learn something is to abuse it
 
10:32 PM
@user time to learn children
 
Ma grandpaw used to say, "The best way tuh learn one of them brats is to whup 'em till they listen to ya"
My grandpaw's in jail now
 
@user For tax evasion, the child whupping is unrelated :P
 
(that's a joke btw)
@cairdcoinheringaahing It's a shame how they Grandpaw Al on stupid taxes :P
tmw the SVMs and random forests and extra trees classifiers take 5 minutes and still perform worse than the logistic regression model that takes less than a minute
 
10:59 PM
@user Think you're missing a verb there :P
 
@user Add a few layers of neural networks and you must get a much better model than a single logistic regression :P
 
@user ighto, you tell me when
 
@cairdcoinheringaahing Um, I hereby dub "Grandpaw" a verb :P
@cairdcoinheringaahing Ah, thanks
 
11:04 PM
@user "to grandfather" already is: merriam-webster.com/dictionary/grandfather
 
Huh, interesting
@lyxal The next time Redwolf's in TNB
 
Have people seen this?
 
yeah like 57 times :P
 
7 hours ago, by pxeger
9 hours ago, by pxeger
Announcement: Langjam, a weekend-long code jam event to create a programming language, starting on August 20th
 
Oh, haha
 
11:06 PM
Yup, I made a room if anyone wants to join
 
Wait sorry, lol
 
@rak1507 You got a photographic memory or smth? :P
 
Who made it? Was it @pxeger?
 
@user not quite :P
it's decent though
 
11:08 PM
Oh, I didn't know you could do that!
Do we know anyone?
 
Someone else needs to watch that repo :P
 
@cairdcoinheringaahing Wait, I just came up with one:
ಠoಠ
Or
ಠOಠ
Ehhh...
 
It looks like the mouth is between the eyes there
 
Yeah
 
11:10 PM
No way!! That's really funny
I like this for some reason
ಠ/ಠ
Not sure why
 
I quite like this one (sorry for the large image):
 
Hahaha, true
 
Feel the disapproval stare you down :P
 
Oh no, it was such a friendly face before
Now I can't unsee it
I've finally decided to screw it with rewriting everything into JS. I'm thinking of setting up a server thing
Has anyone done it before or have any thoughts?
 
Biggest pet peeve: showing the trailer of a movie just before you're about to watch that movie ಠ_ಠ
 
11:17 PM
@AviFS that's a very sensible choice :p
 
Mine is when the trailer is nothing like the movie itself
 
I try to avoid watching trailers as much as I can
Either it'll tell me nothing new about the movie, or it'll spoil it
 
tbh the plot summary often spoils or misrepresents the movie anyway
 
@cairdcoinheringaahing oh really?
 
But I have to read the plot summary before watching a movie because then I might end up watching some random romcom
 
11:19 PM
What are you going to do now caird?
Look at all these trailers you have to avoid looking at
 
:p
 
Oh dear, caird can no longer watch "Southern USA"
 
Aw dang
 
Let me just pull a pro gamer move :P
 
11:20 PM
I think you accidentally moved that :P
 
Damn, y'all keep ruining the movie for me :P
@user I'm not going to abuse my RO powers more :P
 
time for me to do a pro gamer move
 
Oh no
 
Uh oh, TNB's about to get nuked :P
 
Wait, nothing happened
 
11:23 PM
Just before hyper kills us all, where's this month's lotm post?
 
12
A: Nominations for Language of the Month, 2021 edition

BubblerK K is a member of APL-family languages, originally created by Arthur Whitney. Arthur's K has many versions; the latest version as of June 2021 is Shakti (also commonly called K9), which is still under development. While official K versions were made for commercial purposes, multiple open-source ...

 
@Bubbler You ok to write it up?
 
Ha
That's funny
> you (o)k to write it up
 
@hyper-neutrino What did you do?
@lyxal There's a k called oK afaik
 
That's even funnier
 
11:25 PM
It's oK IIRC
 
Yes, that's exactly what I said :P
 
@cairdcoinheringaahing Cool, but what's it called
 
@lyxal Who's on third?
 
Sure
 
@cairdcoinheringaahing Joe
 
11:30 PM
@cairdcoinheringaahing Oh right, totally forgot it. Will post shortly
 
Sorry lost internet connection.
Anyone know anything about setting up a server?
I'm not even sure what to look up; I keep getting web hosting stuff
 
Try PythonAnywhere, it's what Vyxal uses and it's pretty nice. lyxal probably knows more
 
True, but that's just Python
 
@AviFS I think you mean running your own server machine at home or something?
 
Although if I could only choose one lang, it'd def be that
@Bubbler Idk, I thought I meant letting someone else run a server machine
Eg. what does TIO use?
 
11:33 PM
IIRC TIO uses DigitalOcean
 
It must be renting computational whatever from some org?
 
Yes, and it costs some money
 
> TIO is powered by . Their virtual private servers are affordable, fast, scalable, and (most importantly) professionally managed.

If you're looking for a VPS and decide to rent one from DigitalOcean, you can sign up by clicking the link above. You'll get $100 in DO credit for using my referral link and, as soon as you spend the minimum amount on their products, I'll get $25 credit myself to help cover my server costs.
From tio.run/# (click the logo in the search page)
 
Ooh, thanks!
But yeah, if it looks too pricey, I might use my own computer as a server.
What do I look up to figure out how to do that?
 
Wait, you can turn PCs into servers?
 
11:37 PM
I think so, there's no reason you can't through eg ssh/tmux
 
Huh, never really thought about it
 
@Bubbler I was thinking that maybe there'd be some where you give credit card info up front, but they only charge you if you use >X cpu/ram per month
 
Yeah, there are tutorials about building your own server machine at home, though it takes more effort than you may think and may not be possible depending on your ISP (internet service provider)
 
For instance, there's a translating service (DeepL) where the first 50,000 words every month via their API are free
 
Also there are some services that can host your server application on GitHub (or other public repos) for free up to certain amount of traffic or computation time
e.g. Netlify
 
11:41 PM
@Bubbler That's exactly what I was thinking, thanks!
Yeah, I haven't yet had to pay for translations
And I won't so long as I don't translate more than 50k/month
 
@cairdcoinheringaahing Wait, is someone still paying for TIO then?
 
Dyalog is still contributing IIRC
 
Ah
 
GitHub Pages is easier to set up (obvious because it's part of GitHub) but only allows static page applications
 
in talk.tryitonline.net, Jun 6 '18 at 7:23, by Adám
@Dennis Dyalog's CEO approved a USD 500 yearly donation to TIO.
in talk.tryitonline.net, Jun 6 '18 at 13:42, by Dennis
@Adám Wow! That's almost covers TIO's entire operational cost. o_O
 
11:45 PM
@Bubbler Yeah, that I have for like all my repos
But I'm spending wayyy to much time translating everything into js these days
Or figuring out how to compile it into js
 
The easy solution is to just put malware on your site that injects your interpreter onto the user's computer and runs it
3
 
Lol yeah, literally everything compiles to JS these days but it's actually far from easy to use them for webpages
 
@Bubbler Really? Mind saying more
What makes it hard to use for webpages?
 
You can compile a lot of languages to WebAssembly (Wasm)
 
I'd rather you say it was easy to do and that I was just doing it wrong
True, do you guys think it is a sustainable way to do it?
 
11:50 PM
Because using in a webpage means making a whole lot of frontend JS-Wasm bridge if it compiles to Wasm, or frontend JS-whateverlang bridge or it directly compiles to JS
and not having them automated means almost unusable
 
What if you don't touch the compiled files very often?
 
I don't get what you mean
 
I mainly just want to reuse a lot of existing FOSS interpreters for what I'm doing
So I'd compile them, and hide them in folder somewhere
And then in principle I could just keep doing it with GH pages, statically
 
What's this for?
 
You still need to code some kind of bridge yourself in order to call the interpreter function from your page
 
11:53 PM
@RedwolfPrograms It's a surprise for a tad longer
 
@user @lyxal Redwolf's here, deploy the chickens :P
 
@Bubbler You can't compile to wasm with a simple front-facing main?
 
@cairdcoinheringaahing Yes, I'm 7 mins late, i don't care :P
 
@AviFS Also if the interpreter uses stdin/stdout/command-line args, you need to basically rewrite the interpreter into a function that takes and returns strings instead
 
@cairdcoinheringaahing Ooh, is this the unveiling of their plans for the hivemind to invest in the chicken and two doored car industry?
 
11:56 PM
@Bubbler Ouchy...
It's not that bad for one, but I can see how it would quickly get out of hand
Especially since eg 05ab1e is written in elixir, which... I know less well than others
 
Are you trying to make an online interpreter?
 
@AviFS So I'm googol% sure that your plan is far from trivial :P
 
@user do you want to do it or shall I?
 
0
Q: Language of the Month for August 2021: K

BubblerIn accordance with our meta agreement, since one candidate received more votes than the others, we have a new featured language! Throughout August 2021, our Language of the Month will be: K What's a Language of the Month? See the meta post for nominations. In short, during August, those who wis...

 

« first day (3837 days earlier)      last day (1006 days later) »