[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: fbcursed.png (57 KB, 790x1104)
57 KB
57 KB PNG
I wonder how many people here made their own programming language(s) and what was the original vision for it.
I'm working on a Python clone with better parallelism, goto/jump support and lack of objects.
Picrel is FizzBuzz in it, the two functions have similar performance. Nobody needs objects when you already have dict.
>>
>>100193108
>Nobody needs objects when you already have dict
An object is just a dict. https://streamable.com/nm3sk2
>>
>>100193108
Maybe I'm too much of a normie but I've never run into a situation where I felt I needed a programming language that didn't already exist
>>
>>100193108
Why did you change def to func?
>>
>>100193721
I prefer the Go way. After all, the lang is written in Go.
>>
I thought about making some shorthand flavor syntax for data constructs that would parse into other languages as needed, but the auto-complete felt like too much work and without that I didn't see the point.
>>
>>100193108
>goto
NGMI
>lack of objects
extremely based
>>
File: fizzbuzz-in-clojure.jpg (216 KB, 1049x678)
216 KB
216 KB JPG
>>100193108
>Nobody needs objects when you already have dict.
I think you might like some of Rich Hickey's ideas on language design
https://youtube.com/watch?v=aSEQfqNYNAc
>>
>>100193108
There are too many programming languages.
>>
>>100193992
Nice video. I was working on a GUI library for the lang and had to convert tkinter events into dicts (or pairings, which is how I name them in it).
>>
>>100193108
Made my own programming language for very highly parallel hardware. It sucked so much! It's best forgotten, especially as it is useless.
I've also written chunks of other languages. Not the original vision, but definitely contributions. There's a fair chance you've used code I've written today and don't know it.
My advice? Try to have only a small number of basic ideas, and make those ideas work together in expected ways as much as possible. If people want to put a goto in the middle of an expression and you can possibly assign some semantics to it, let them do so. It enables dumb stuff, but it also enables smart stuff that you've not yet thought of.
And really try to avoid mutable values (especially if shared). So many bugs come from that one thing.
>>
>>100194357
what does you syntax for "pairings" (not a fan of the name btw) look like?
>>
File: pairings.png (22 KB, 642x416)
22 KB
22 KB PNG
>>100194558
>>
>I'm working on a Python clone
already off to an irredeemable start
>with better parallelism,
ok
>goto/jump support
sure
>and lack of objects.
absolute retardation
>Nobody needs objects when you already have dict.
sorry I don't take advise from pyshit gay baby retards. of course a dumbfuck pyshitter diaper baby would say something so moronic.
>>
>>100194795
OOP is POO
>>
>>100194813
>objects = OOP
not a real programmer, got it. i assume you just parrot all opinions from that retard literally who youtuber with the shitty takes.
>>
>>100194795
>tfw saar did not redeem object
>>100194842
Having objects is confusing. Why should there be some weirdo data type that can have functions and variables when you already can have those just fine? Dicts are also not essential, but I thought having variable number of arguments in a function is worthy of implementation.
>>
>>100194813
filtered by OOP
wiped by POO
>>
>>100194888
>Dicts are also not essential
Having something to be a value that is a name-to-value mapping is quite useful. That's what a dict is. Conceptually, they could be done with a Lisp alist, but they suck so having a struct (for a fixed mapping) or a hashtable (variable mapping) is better.
>>
>>100193108
I'm making a lang that's a more modern objc/low level version of smalltalk. I don't like swift very much and I miss the brackets for sending messages. The latest thing I'm figuring out is wether I want a different syntax for functions and for procedures. It'd be () for pure functions and [] for impure functions. After some feedback it doesn't seem like it's worth it so everything within [] would be an expression.
>>
>>100193797
>the lang is written in Go
are you using participle to parse the syntax? just curious
>>
File: hashmaps.jpg (105 KB, 607x549)
105 KB
105 KB JPG
>>100194727
if you treat commas as whitespace and instead have people use parens or something if they want to use more complex expressions, you can save everyone a lot of typing.
>>
>>100194888
>having objects is confusing
having low IQ is not an argument
>>
>>100193108
>Nobody needs objects when you already have dict.
Lua already exists bro
>>
OP sounds like either a troll or a retard; most others ITT also
>>
Serious question, if an AI was programming itself, would it even need OOP?

I felt like OOP was only for massive collaboration to stay organized.
>>
>>100193833
I dont understand this trendy seething about objects. Obviously any tool is bad if you try using it for everything, but this should be obvious. Apart from faggots on youtube cashing out on fanning and feeding into this, I have yet to actually hear any substantial argument for why OOP shouldnt exist at all. Python is utter dogshit yet everyone creams their assless chaps over it, so make it make sense
>>
>>100194813
pajeets CANT STAND being filtered by the might of a language that doesnt wipe their ass for them
>>
>>100193711
My company internally has a really shit dynamic one with no error checking until the line is hit. This is an issue when you run a 48 hour simulation and your entire results set is nuked from a typo on the last line of your post processing.

I'm writing a statically typed language that compiles to the shit one.
>>
what's with the switch without a value in fizzbuzz? why is it called switch when it's just an if-else ladder?
is there a switch/match expression that can be assigned to a variable, returned from a function, etc.?
what happens if cases are not exhaustive?
why are you making a dynamically typed language in 2024? even python has yielded to static type supremacy



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.