The Weirdest Language I've Ever Seen (I kinda love it...)
Вставка
- Опубліковано 17 чер 2024
- Everything about Dreamberd is beautiful. Todepond is a legend for this. And somehow DAN ABRAMOV IS INVOLVED??! Legendary.
FOLLOW TODEPOND @TodePond
Source
github.com/TodePond/DreamBerd
Check out my Twitch, Twitter, Discord more at t3.gg
S/O Ph4se0n3 for the awesome edit 🙏 - Наука та технологія
Satire aside, ending a statement with a question mark to print debug information honestly is so sick as an idea
var_dump()
atleast rust has debug macro
question mark is for resolving return type errors
you could define a macro in c++ to replace any line ending with ?, #PreProcessors
@@fionnlanghansduh
What says intuitive like realizing "union" is a keyword that defines a fUNctION
Also futon
I'm a fan of funion
so is IO
"FUC" is also a valid lne
"on"
31:16 "delete fun" is a thing that some languages just do by default.
too many "duh"'s
he said 'duh' 58 times.
duh!!!
[duh intensifies]
I suggest they change true == duh, and false == huh
@@prashantjha73duh i swear duh its so many more than duh 58 duh times duhhhhhhhhhh
Duh
16:00 I would make a habit of just using the keyword “unction” for all my functions, to heap blessings upon my code. This would also allow for some interesting usage of “on” as the function keyword before event handlers, “ui” before render functions in front end frameworks, and others…
It's a top meme language. This language allow people to declare function "fuct".
or just fuc
also fucn
@@michawhite7613 could you also use "nct" to make a function or would it have to be starting from the start of the word function?
@@lordender_kitty_official Yes that works too. Also "union" declares a function.
I hate that I kinda like the significant whitespace for arithmetic. Also, for someone who's had to install and uninstall the gigabyte-big "Visual Studio Installer" multiple times just to get one or two things, the "DreamBerd installer installer" hits close to home!
I like the question mark as "What the f* is this" operator
Not enough "duh"'s
Gd Theo, when did you become the funniest UA-camr?
Also, thank you for voicing a clear and firm stance on the rights of queer people. This is a scary time for lots of people, particularly transgender people, and I know the opinion of one person isn't make or break, but by collectively standing together and affirming that queer people deserve the same rights and respect as anybody, we can make the world a better place and I appreciate you doing your part.
Nobody:
Me calling all my functions "funion" because I can
ah yes, todepond reaction video
that const const const example was a mistake; now pi is permanently just 3 significant figures... that means we now need a pi2 with more significant figures....
I love how the const const, const var, ..., is actually a thing in rust its just like this:
let x: &mut str = ... //const const
let x: & str = ... //const var
let mut x: & str = ... //var const
let mut x: &mut str = ... //var var
You mixed up the first 2:
const const - let x: &str
const var - let x: &mut str
var const - let mut x: &str
var var - let mut x: &mut str
it's a thing in C too with constant variables and pointers to mutable data and vice versa :з
4:30 don't you think, 👍should be the boolean "True" and 👎should be the boolean "False"? It would be so much more international!
In Brazil, a thumbs-up is equivalent to flipping someone off.
It's just variable declaration. You can do for False also. Even use 🤔 for maybe 😂
ngl some concepts are really interesting. Questionmark at the end, previous/next. I actually like that.
const const const pi = 3.14!
Nothing can change this!
delete pi!
😂😂😂
var var pi = 3.1415!!
13:28 Common Lisp and Scheme (including Racket) and a bunch of other Lisps also have fractions. It's pretty nice.
In Scheme and Racket, there is a distinction between exact and inexact numbers --- 1/3 is exact, and you can turn it into the floating point approximation with the function "exact->inexact" (as far as I remember).
Racket's reference documentation about numbers is a pretty good read. An excerpt:
"All numbers are complex numbers. Some of them are real numbers, and all of the real numbers that can be represented are also rational numbers, except for +inf.0 (positive infinity), +inf.f (single-precision variant, when enabled via `read-single-flonum`), -inf.0 (negative infinity), -inf.f (single-precision variant, when enabled), +nan.0 (not-a-number), and +nan.f (single-precision variant, when enabled). Among the rational numbers, some are integers, because `round` applied to the number produces the same number."
Also c# has decimal type, that allow precise fraction arithmetic
brainrot language
const const const 3 = 3;
3 = 3 // maybe?
@@bloozy85 Use ! not ; Now you got the opposite of what you want :O
@@theunknown4834 😂😂👍👍
@@theunknown4834 i mean it still works for negative priority
This was great! Got a really good laugh. Thanks 👍
Lol it’s literally just the language that guy proposed in his talk about making the worst language
This was so much fun to watch, Love it!
I want the Theo "duh" sound byte as my morning alarm.
As for 'when', Tcl has this feature in form of the 'watch' command.
can someone give me a duh count
Someone replied above, saying 58.
Also "obvious" count, please
major props for the donation at the end
This looks so cool. I have honestly been wondering why we are sticking so closely with JS and why there isn't an evolution in front end language. we have 1000's of back end languages and 1 front end language.
The question mark is actually a really nice feature... Just type a character instead of having to set up debuggers and connections and ehat not in your IDE...
@t3dotgg I am using Next.js 14 with the app router. In my main layout file, I am fetching user data using a server component and then sharing that data with a client component. I have a context provider that passes this data to the context, allowing me to easily access the user data across all client components on different pages.
However, I am facing an issue: while I can easily access the user data from the context in client components on all pages, I need to access this data in a few server components on other pages as well. How can I achieve this? Should I use cookies on the server side for this, or is there a better approach?
Take a shot everytime Theo says "duh" or "obviously"
I am more hyped that a new Fortran is out!
My broccoli brain is now a balloon
"You could use their while instead"
Uh
Tail Call, recursion?
this language looks stupid
agreed. unironically funny tho thanks for this masterpiece!
Yeah, a smart language would use frogs and not birds
The language is not even out yet, but all the jobs require 2+ years of commercial experience with it...
I wish the "don't skip this section" section wasn't skipped. It's very important.
?
If it’s important make a PR and add more exclamation marks to the statement? Idk I haven’t read it either
5:17 Maybe some count as follows: 0, 1, the next one should be 2, but I ran out of them, so there are 2
In C/C++:
int i = 0;
while (cats >> cur) ++i;
You can use the for loop for 1-based counting, too. However, the variable would be incremented once more. So, if you move the declaration outside the loop, you get
int i;
for (i = 1; i
One and a half bits isn't enough for a three-valued variable though. That would log2(3), approx 1.585 bits.
If I use DreamBerd Enterprise Edition, do I need to use 'whilst' instead of 'when'?
I could see negative indents being useful for conditionals that with "maybe" keyword to write functions with multipurposes, like if the variable is not maybe, process the code block below including negative and positive indents, but if it is maybe, parse only the negative indents.
constconstconst writes a value to blockchain lol
I thought that was const const const const?
10:27 undefined is just property of window, you can do this: {const undefined='maybe';}
10:58 Fine, then I will:
In binary, the number of bits required to store a value that can take on up to N states is log2(N)
and log2(2) = 1
log2(4) = 2
thus log2(3) must be 1,5 saving half a bit for other data. This is great for cache locality, allowing the developer to fit more data into the processor's cache and increasing performance of the app.
Q.E.D.
make a PR Theo, you got so many idea to make this a better language.
Fuzzy keyword matching could be a thing.
Enjoyed it too much XD
The exporting thing, isn't that actually sort of what Java now does where you can define who can inherit a class? Or something like that
13:26 Wolfram Mathematica defaults to fractions until you pass to a numerical function.
the int array of digits got me
can u provide me the website link of all the programming lanugages that u show it in the first time
TodePond is great, makes awesome videos
as someone who calls functions methods, i would greatly appreciate if in this language, you could also use the same thing as the function keyword, but with method as well. so for instance, you could create a function using "meth" as a valid keyword.
alternatively, it could be made so that in the case that "meth" is used, all numbers written within the function will instead be random and/or swapped with each other.
Burp, please excuse my dear aunt sally
Brackets > Parenthesis > exponents > mult/divide > add/substract
The one thing i will never forget from 6th grade math class apparently.
I can already see developers pulling their hair and jumping out of the window..
Imagine dream bird becoming as popular as JavaScript
The whole "const" and "var" idea is actually pretty good ngl
did you know the best april fools jokes are not done on april first?
I just saw the thumbnail.
Did they think options are better
Why is it that every time I search for web technologies on UA-cam that UA-cam insists on spamming with Theo's videos?
Thank you for the video, it's a funny concept although I doubt this language is going to be practical. It's true that it kinda challenges the way we got used to code but the thing is there are reasons why we do a lot of things the way we do them. For instance, there are reasons why no language allows you to define lifetime duration for a variable: no code ever runs consistently, there's no telling how long a specific procedure will take on different cpus/systems/machines, even during different runs on the same machine; and if some piece of your code is dependent on a variable with a specific lifetime duration it may work one time and fail another time in the most unpredictable ways.
There are also a lot of features that look curious but make no real use, like the ability to redefine 5 and make it become 4. There is absolutely no use case when allowing that could do anything helpful but it definitely makes it easier to "shoot your leg with a -gun- cannon". And that can be said for a lot of other features of the language.
Anyways thanks for bringing it up
My programming language actually implements floating-point numbers as fractions (pgcl)
Imagine adding let to the equation
13:27 Haskell has a boatload of built-in numeric types, including Rational (aka Ratio Integer), which is for "arbitrary-precision rational numbers." You can even have a Complex Rational without requiring any packages!
everything is a string and a number
DreamBird: 🫴 Variable variables, 🫳 Float array indexes. 😂Lol
PHP: Can someone explain the joke?😦
14:59
jshell> String hi = new String(new byte[]{'h', 'e', 'l', 'l', 'o'});
hi ==> "hello"
jshell> String hello = "hello";
hello ==> "hello"
jshell> hi == hello
$3 ==> false
yoo my logo shows up because i was the second biggest contributor!
the DreamBerd installer installer hits home
Swift actually supports emoji in variable and method names i believe
Ok but the programming language Uiua is totally different to C, JS and even DreamBerd it implements a bunch of nice things and is genuinely a really useful and fun language. (and it uses ? for debug)
5:59 Here's how I think about it: It's not indexing, the possible indices for the list are now -1, 0, 0.5, and 1. Like Lua!
Soo.. const const const makes the file where the constant is defined readonly in the editor?
The new file tag seems a bit like Bamboo yaml spec "Document" tag... Its allready out there...
I wonder what percent of random Word documents are valid DreamBerd
This kind of videos needs its own special tag in title.
So those who don't need their daily dose of sarcasm won't waste time clicking on it.
It wouldn't be so bad if it wasn't so over the top. Sarcasm is fine, but it became annoying so quickly that I can't even finish the video lol
LISPs like Common Lisp, Racket, and Clojure have native rationals. 13:38
Parenthesis
Exponent
Multiplication
Divison
Addition
Subtraction
do not think multiplication comes before divison they are in the same step so for that you read left to right with the calculation of multiplication and division and the same is true for addition and subtraction, they are in the same step do left to right with the calculation.
In Godot, a const Dictionary is immutable, unlike a const Object. I don't _want_ immutability, I just want to prevent reassignment. The "const const" syntax from DreamBerd sounds like it would be great to have.
"loops are a complicated relic of archaic programming languages" reads a lot like "I don't want to spend the time to implement loops so deal with it" 🤣
How do you keep a straight face while reading this 😂
This language is very promising, but the interpreter needs to be Blazingly Fast to consider using it.
7:20 The lifetime of objects sounds like fun unexpected behavior between 'lifetime ended' and GC cleanup. Or should the interpreter check the time for each line which would be absurd to do lol
13:28 python3 has fractions module
Dude just casually threw 500 dollars at a charity on stream -unprompted- and I'm eternally thankful.
Edit: actually very much prompted but whatever
It is hard to form a proper response to this language. But 'laughable' comes to mind.
I don't need to learn the actor model, when I can just make an actor
No way setting a 20s timer for a variable would go wrong 👀👀
the language that all gameclam gamea are written in
Theo the fact that youre so obsessed with emogis as variables is wild. lol
i mean i get that you like it. thats fine.
but to say its "annoying" that a language doesnt support that is crazy.
its a programimng language, youre not texting your bff lol
love your content though, great video!
“Duh” is starting to sound like a tick
Todepond mentioned
Great satire, lets learn from it, here's what i like:
Declarations + but mixed var const is cursed, make use of numbers, so const3 instead of const const const, oh, and 'const' now means const2
Functions + but not like this, let me assign const4 fn= function (const4 means its a part of the language now)
Types + this helps support lexers, but allow it to restrict type, give me byte for int8 and Bigint for int300
Time + sometimes the client has their clock wrong and it affects synchronization, so just fix it :)
Ur sarcasm feels like sarcasm.
Feels like rust and fortran had a baby. I like it.
Theo nice you changed the title after you saw the comments? Lmao
why are they still using print(scores[0])!
instead of just scores[0]?
Only 11 months late
whoever owns this repo needs to be banished to the shadow realm.
15:21 I would actually try DreamBerd just because of this lmao
pov: you’re looking for the TodePond comment
In Swift you can actually use emojis as variable names. Any unicode goes: cyrilic, chineese, etc.
It can't start with numbers, though. Obviously ).