C++26 might be more beautiful than Haskell ♥️
The |> pipeline operator that
@BarryRevzin
proposes for C++26 will make this possible. No need to know that <*> is the S combinator, just pipe % twice. No locals needed either ♥️
Pretty amazing that
@cppcast
has more episodes than every
@rustlang
podcast combined. The C++ community owes
@robwirving
and
@lefticus
a huge deft of gratitude for all of their effort, especially considering almost all of their episodes involved guests (which is a ton of work).
Arthur Whitney for the first time ever has open sourced (under MIT license) K. This K is not the full K9 but is known as "K Junior." 4 files, 270 lines, 17K characters. You can find the zipped folder on but I have put it on GitHub:
TIL about
@rustlang
:
1) No default function arguments
2) No function overloading
☹️
According to , you usually make separate functions:
foo(),
foo_mut(),
try_foo(),
foo_with_bar().
Coming from C++, that definitely makes me sad.
Today I realized that the "permutations formula" is shorter in APL than it is in mathematics notation. This is thanks to the Φ1 (dyadic fork), Ψ (over) and KI (left) combinators that exist in APL. Truly beautiful ❤️
Hello! If you are a
@SwiftLang
,
@rustlang
,
#haskell
or
@D_Programming
developer && are free on Tues Nov 10, I will be giving a practice run of my
@meetingcpp
talk and would love to get feedback! I definitely don't want to misrepresent any languages 😀
Typing out this C++ code is heartbreaking. The fact that std::plus, std::minus, etc work but std::max & std::min fail and need to be wrapped in a lambda is 💔 And if C++ algorithms were well-named/consistent this would be std::scan_copy and there would also be a std::scan 💔
Sad not to have a new
@cppcast
episode in my queue this morning 😢 I listened to every episode, some twice.
@robwirving
and
@lefticus
have been a part of my Friday mornings since February 2018. Thank you for all the effort and time you put into the podcast! You will be missed 💙
My "Functional vs Array Programming" talk just crossed 40k views 🔥 My fourth most viewed video of all time. If I had known referencing papers from the 1920s on combinatory logic was what the people wanted I would have done it sooner!
Excited to be presenting my 2nd ever
@cppcon
talk () in two weeks from today on the Structure and Interpretation of Computer Programs, one of the best (if not the best) CS text books of all time 🧑🎓🎉 Looking forward to chatting with folks virtually 🙂
Wow,
#Haskell
's Hoogle is one of the coolest things in programming I have come across. TIL about
@rustlang
's Roogle ...
... maybe it really is time to switch to Rust
Just listened to this episode. Oxide and Friends is quickly jumping to the top of my favorite podcasts list. Obective-(C|C++), Swift, C++, Rust and the Objective-C HOPL paper are all discussed 🔥 Listening to
@bcantrill
and friends is inspiring
After seeing
@ben_deane
's "Me at 20" code tweet, I decided to take out the hard drive with my university files to see if I wrote any code in late 2010. Jackpot! I wrote this for my Risk Theory course 🤣😂🤣
#lmao
So much for "no raw loops."
#fail
#python
sighs ... still laughing
Just watched this talk by Rob Pike on what was done right & wrong in creating
@golang
! Love that he started off with the
#gopher
! Followed by the spec, multiple compiler implementations, portability, the standard library, fast compile times, gofmt, & more!
Literally can't believe what I just watched ... a talk from 2011 entitled: "What is Functional Programming?" by John Scholes and Roger Hui. Hui refers to combinators as ... combinators (not trains or operators) and uses lego to describe them 🤯🤯🤯
I added Uiua to my Array Language Comparison repo. It is officially my second favorite programming language after BQN! Maybe soon to be
#1
. This language is seriously awesome!
C++ Twitter? Have you seen in a talk or given a talk with the following code example? ⬇️ I swear I have seen this 3 or 4 times in different talks but can't find any (after checking ~10).
@ben_deane
@phil_nash
@tristanbrindle
@odinthenerd
Three talks I've watched in the last week I would recommend:
1)
@strangeloop_stl
2023 - The Economics of Programming Languages by
@evancz
:
2)
@InfoQ
2019 - Three Things I Wish I Knew When I Started Designing Languages by
@palvaro
:
This example from my
@CppNorth
Twin Algorithms talk (and later
@BarryRevzin
's pipeline 🍕 operator paper) is now implemented in
@seanbax
's Circle compiler.
So. Freaking. Cool.
Sean, you are a wizard 🧙♂️
📃 Link:
Just submitted my new talk "Enter the Matrix" to
@strangeloop_stl
2022! 🤞 Fingers crossed it will be accepted. This is the talk that will explain the history of combinators & combinatory logic and how array languages have silently been the best combinator languages for 30 yrs!
"I believe that it is the moral responsibility of long-time C++ programmers to discourage the young generation from making C++ their profession pretty much as it is the moral responsibility of alcoholics who can’t quit to warn the youth about the danger."
Working on a website that determines
#programminglanguage
rankings by averaging other programming language ranking websites. Hopefully should be up by the end of the weekend.🥳
Did you know all 3 co-creators of
@golang
implemented an APL at one point? This week on
@arraycast
, we interview
@rob_pike
, co-creator of Go, UTF-8 and Plan 9 to talk about his array language inspired Ivy calculator and his thoughts on array languages! 🥳
Excited to be speaking at
@code_dive_pl
in 2 days. Will be giving a talk entitled "Beautiful Python Refactoring II", a sequel to my
@pycon
2020 talk. So far, my favorite slide is this
@rustlang
code 😁
An awesome introductory talk to APL by
@mathsppblog
at
@FnConf
2022! Shows both
@dyalogapl
code and
#Python
code and how
#APL
can influence the way you think and code in other languages! 🥳 Extremely beautiful slides, fonts and color theme as well ❤️
Looks like I found my first C++ compiler bug (in GCC) 🙃
✅ MSVC 19.32 - Works
♾ GCC 12.1 - Runs infinitely
❌ Clang 14.0 - Doesn't even compile
@ericniebler
@BarryRevzin
@CoderCasey
BQN is now a ranked language 🥳 Let the leaderboard climbing begin.
Also, another July 2024 highlight is that
@gleamlang
surpassed
@elmlang
in popularity, closing in on a top 10 functional language
lmao 😂
I read this whole article thinking ... "wtf, is this person delusional? half of these statements are just blatantly wrong" ... then I went to the reddit comments and was reminded it was April 1st 🤦♂️
Honestly, first two days of
#AoC2023
have been pretty bad. So much unnecessary parsing. But Python's Counter collection is quite nice, and doing Counter comparisons (Part A) and a min reduction over Counters (Part B) for Day 2 is really nice 🥳
#norawloops
Just submitted my
@cppnow
2020 talk submission, a talk I am calling "The Twin Algorithms." Please C++ gods - let me give this talk - I am more excited about this talk than I have been about anything else in my career.
#cpp
#cplusplus
I have decided to give an unofficial
@strangeloop_stl
2021 virtual talk entitled "Functional vs Array Programming" this coming Saturday, October 2. Will post livestream link towards the end of the week.
Also, I apologize for my above average number of tweets 🐦 today, but this table of Greek/Latin words for describing function arity will be necessary for a future talk.
The Ê combinator is "tetradic"
Unary/Monadic
Binary/Dyadic
Ternary/Triadic
Quaternary/Tetradic
What are the odds that 8 days ago I discover the most beautiful line of code I have seen in my life (Kadane's algorithm in
#APL
*) and then I see the C++ version from
@ilpropheta
during
@italiancpp
today (I am finally getting around to watching
@SeanParent
's keynote)
#awesome
It took me less characters of code to solve the *WHOLE* TicTacToe challenge from 7L7W in APL then it did just to encode the indices array in
@scala_lang
🤦♀️
APL Solution: 83 characters
Scala Indices Array: 110 characters
Scala Solution: 808 Characters
One of the highlights of
@NVIDIAGTC
2022 was
@science_dot
's talk comparing CUDA
#Python
, CUDA C++, CUDA
#Fortran
, CuPy, Standard C++, OpenMP, OpenACC, and so much more! If you are curious which gets you the most perf, check it out:
#cpp
#cuda
Category Theory & Combinatory Logic in the park ☀️ I have to say my enthusiasm for combinator birds 🐦 dwarfs my enthusiasm for functors and natural transformations 🙃
You can find my Beautiful Python Refactoring II talk at 3h:33m of this
@code_dive_pl
YouTube stream if you don't want to wait for the polished release 🙂 I had an absolute blast at this conference!