[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [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]


is Red the answer to a parens-less lisp-like language?
> homoiconicity
> code-as-data
> metaprogramming
> extensibility (dialects driven)
> minimal syntax (blocks)

https://www.red-lang.org/p/about.html
>>
Does an LLM know how to write it
>>
>>110283943
Not quite but also not completely clueless about it. But I assume it won't take much for a LLM to learn how to program with it
>>
Bump
>>
>>110283930
What's wrong with lisp?
>>
>>110285196
What's wrong with (((LISP)))?
>>
>>110283930
No. Opendylan exists.
Red is disgusting, also slow. Opendylan is beautiful (but not as fast as it could be).
>>
>>110285196
Nowadays lisp is fully vibecoded. I don't know of any compiler devs who didn't decide to vibeslop theirs. Even sbcl and ccl.

Parentheses really are an overblown problem, but still something to consider I guess.

Aside from that, the problem of ancestral bloat. Do we really need mapcar and maplist? There are 300 variants of that around. They're just footguns in practice. Similarly, the macro language can be cleaned up a lot with modern constructs that allow more power for less (compiler) code.
>>
>>110285300
you mean, they are (((jews)))?
>>
>inventing a new language
>after everyone moved to writing software in english
>>
>>110285418
>inventing a new language
The Red project started in 2011
>after everyone moved to writing software in english
The point is that by having the output of your llm a minimal in a simple language that **aims** to be suitable from kernel drivers to user application makes the testing phase made by the human more effective
>>
>>110285465
It aims to be suitable like javascript aims to be in your kernel.
>>
>>110285331
opendylan is ok but its syntax is a little bit obnoxious
 
define class <car> (<object>)
slot serial-number :: <integer> = unique-serial-number();
slot model-name :: <string>,
required-init-keyword: model:;
slot has-sunroof? :: <boolean>,
init-keyword: sunroof?:,
init-value: #f;
end class <car>;

define variable *unique-serial-number* = 0;

define function unique-serial-number() => (usn :: <integer>)
let serial = *unique-serial-number*;
*unique-serial-number* := *unique-serial-number* + 1;
serial;
end function;

define constant $blue-car = make(<canr>, model: "Viper");
define constant $black-car = make(<car>, model: "Town Car", sunroof?: #t);
define constant $red-car = make(<car>, model: "F40", sunroof?: #f);


The class-based OOP is inferior to a good implementation of prototype based oop (although the CLOS inspiration compensate some of its warts respect to mainstream oop language)

Still the comparison is kinda moot, it's not a miminal language with code-as-data-driven foundation. I would put it in a different championship

>>110285589
The analogy doesn't make any sense. Red was build with this goal to begin with https://www.youtube.com/watch?v=-KqNO_sDqm4

posting is not mandatory, anon. There is no karma to gain here
>>
>>110285659
Again, red was built with this goal to begin with the same way js was built to be in the kernel to begin with (in the most retarded way possible that doesn't even begin to make sense if that truly is a goal).

Buy an ad.
>>
>>110285659
Opendylan is a full lisp, complete with full clos, full powered hygienic macros, and full code-as-data facilities.
>>
>>110285675
you keep commenting the same retarded statement and saying nothing

Feel free to explain yourself by posting the answer you'll receive on chatGPT
>>
>>110283930
seems like it
>>
little demo bump
 
# program header
Red [
title: demo
]

# blocks can be inspected/modified/evaluated
mydata: [10 20 [print "hello world!"] [a b c]


do pick mydata 3
#out: hello world!

# function definition
inc: function [n [integer!]] [
n + 1
]


# blocks are not strictly evaluated
# function composed by blocks in steps

my-args: [n [integer!]]

my-body: [ reuturn n + 2]

double: function my-args mybody

double 10
#out: 12

# change function body dynamically with pattern matching
change find body-of :double '+ '*

double 10
#out: 20

>>
>>110285353
>compiler devs who didn't decide to vibeslop
Guile
>>
>>110286360
They accept AI code so long as it can be shown not to violate licenses.
>>
>>110285353
Go back to C you fuckin cuck lol
>>
>>110288589
>loves cuck coding
>calls anyone else a cuck
>>
>>110288596
Why turn lisp into algol garbage, go back you fucking cuck
>>
>>110285353
Vibeslop is better than 90% of human coders.
>>
>>110288604
Literally not mentioned anywhere. Take your meds, unironic schizo.
>>
>>110288619
If by human you mean pajeets, but also only the ones who failed their degree (and considering that 95% of those who get their degree can't program at all).
>>
>>110288624
You're just a fucking R2D2 C autistic who wants to pretend to use lisp, take your drugs you fuckup
>>
>>110285353
honestly the latest frontier models are really good at writing solid code. i've been vibeslopping emacs packages for my own personal use and the results have honestly blown me away
>>
>>110288639
What AI psychosis does to a 2 IQ retard
>>
>>110288650
True, if your point of reference is your sub-65 IQ and poop covered jeet hands.
>>
>>110288717
Lol R2D2 autistic wants to turn everything into C, take your pills you washout, vibeGODS will snap your brittle spine
>>
>>110288650
They never tried the best models but they will still say that you are wrong.
>>
>>110286309
>no parentheses
>uses square brackets instead
gtfo
>>
>>110286309
Use case for reuturn?
>>
>>110290449
Turn 360 degrees and walk away
>>
>>110285196
(wrong-with? lisp)
>>
>>110291743
#f
>>
>>110289494
still way less parentheses than any s-expr language
>>
>>110290449
to show the amazing red ability of runtime function change
 
change find body-of :double 'reuturn 'return
# function now run correctly

wa la
>>
i like Logo



[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.