[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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: powerful-abstractions.png (1.36 MB, 1752x897)
1.36 MB PNG
or, why worse is not better.

Why does /g/ judge programming languages like they’re benchmarking a memcpy implementation? C is a neat wrapper around the machine. Fine. Now look at what Lisp, Smalltalk or Haskell let you build and reason about. Lisp gives you programmable syntax, Smalltalk gives you a live object world you can inspect and change, and Haskell gives you pure composition backed by a powerful type system. Call this generative coherence: a handful of consistent ideas generate a whole range of useful capabilities. You still have to implement them, but the foundations do much of the conceptual work. “But C is faster” doesn’t answer whether sacrificing those capabilities was worth it.

That’s my problem with treating “worse is better” as an ideal. Making the runtime smaller can mean making every application reinvent what it leaves out. Congratulations, you moved the complexity into everyone else’s code. Speed matters when it enables something you need; it isn’t a universal score for software quality. And today’s implementation overhead isn’t proof of a permanent limit. Better compilers, representations and hardware can reduce it. Build something small and useful, sure, but aim for a coherent foundation that solves several problems together instead of calling every missing feature a victory for simplicity.
>>
File: orly.png (44 KB, 349x269)
44 KB PNG
>>
>>110439783
usecase for snca thread?
>>
>>110439841
To have high effort discussions on /g/
>>
>>110439865
next time dont use ai
>>
>>110439783
stop being an unlovable contrarian virgin incel chud and use rust.
>b-but
opus can write the code for you, just use rust, opus handles rust well and rust is fast.
>b-but how will i be an unlovable contrarian incel then?
ok
>>
File: 1607453774171.png (558 KB, 613x597)
558 KB PNG
>>110439841
old school sovl oalgo
>>
>>110439883
usecase for rust when c++ exists?
inb4. memory safe
C++ is memory safe is you use it correctly.
>>
>>110439890
usecase for seatbelt when motorbike exist?
inb4. safer
motorbike is safe when you use it correctly.
>>
>>110439872
fag
>>
>>110439900
geg, gem
>>
File: 17749404896920264070.png (43 KB, 900x700)
43 KB PNG
>>110439890
you pre-coped the post so hard i don't even need to say anything
>>
You still use programming languages? I prompt claude to write and compile the program for me and I even ask to not be shown the code so it doesn't waste tokens
>>
>>110439883
>stop being a chud, become a troon!
>>
>>110439921
>quick, i must come up with something contrarian!
this is why are an incel virgin

you have combative personality but you are also reactive, not proactive, so you come off like a completely unlovable chud.
>>
>>110439783
Fuck C and fuck LISP. I want better high level abstractions
>>
What is this unc thread? Ong we don't care about programming languages anymore fr fr, we just proompt Chat or Claude and it uses whatever and just works.
>>
>>110439783
has anyone ever used these games for gamedev? i assume lisp could have some uses as a high level script language instead of lua (lua itself is heavily influenced by scheme so it checks out)
>>
>>110440346
Smalltalk quite literally describes a live world of objects, so a game environment.
>>
>>110440346
these languages**
>>
>>110440354
isnt this what all languages do?
>>
>>110439783
OOP king.
But my coding agent uses what i see fits the usecase.
>>
>>110439783
Optimizing for performance is a classic noob trap, it's easy to see with some informal reasoning:
>Imagine you have a function f (for example sqrt)
>As long as your function is logically correct, meaning for some input it calculates the correct output, you can build bigger functions on top of it.
>If I build a function g that uses sqrt, function g will be logically correct if sqrt is logically correct (and I did no mistakes in writing function g). If the implementation of sqrt is slow, my function g will also be slow, but it doesn't influence its logical correctness.
>At *any point in the future* I can replace the implementation of sqrt with a faster one and everything I've built on top of it *wont have to change* and will become faster.
>*Any point in the future* could also be *never*.
This is the essence of black box abstraction and is also explained in the video lectures of SCIP. You should ONLY optimize performance when you are completely finished with your logic, which is very rarely ever the case. Or you are force to, because of physical limitations, speak: Computer is too slow to execute your program in reasonable time. If you don't have to, you shouldn't. You can always do it later. Or perhaps even never.

As another example: Imagine your task is to sum up the numbers from 1 to n. The naive way would be to start with 0 as an accumulator and add one number after the other, resulting in O(n) time. You, being a smart fellow, remember gauss summation formula and implement it that way. Great, O(1) time! Now the requirements change: You have to sum up the squares from 1 to n. This would have been a trivial change in the naive implementation but becomes a problem in the fast implementation. It would have been better to use the naive implementation and only replace with something faster at the *very* end.

This is basically the reasoning behind "premature optimization is the root of all evil".
>>
>>110439783
Regarding languages: You can easily rebuild object-oriented programming in functional languages but not the other way around. Therefore functional programming languages are more suited for general purpose programming.

I think Haskell is the closest we've come to as a perfect language. It has some mistakes, like typeclasses and many language extensions which are just there to dig bigger holes instead of being closed. I would rank OCaml as number one since OCaml has less amount of mistakes but it's major flaw is it being impure. One can reason that purity is not optional, but it's more difficult to see.

Haskell > OCaml > Rust > everything else
>>
File: lisp-tan_chomado.jpg (142 KB, 640x1135)
142 KB JPG
>>110440346
I don't really know about Smalltalk's use history there, and as far as I know, Haskell's gamedev history has been limited to programmer toys and Carmack labourously reimplementing Wolfenstein 3D inside it as an masochistic educational session. Speak of Carmack, IIRC he's on record as saying that using Scheme as an id Tech scripting language would have been a no-brainer had he known about it at the time, but I can't verify that because the Nitter instances I use are acting up.
As for Lisp, it's been used successfully in different ways. Abuse used an in-house version as a scripting language, and Naughty Dog's in-house Lisp dialects escalated from the scripting language in Crash Bandicoot to the sole language of their Jak and Daxter games. There's also Kandria, which is really only notable for being mostly written in Common Lisp (outside a bit of the audio code) and a couple papers about its development, so its tranny dev still lives with his parents while he fucks around online and fails to make money.
>>
billions of hours spent of LtU weenies promoting their blub but 0 usable software produced in a blub language
>>
>>110440611
Yes this is sound logic.
>>110440620
See I'm building a custom language but almost the other way around. Where objects come first and then objects may contain deterministic functions. Not sure if this is a good idea, but I'm just wandering in this direction.
>>
>>110439823
https://yapcjapan.org/2026tokyo/
>>
>>110440611
That's only true at the lowest level. Also in favor of this argument, note that the meta back in the days was to program in an interpreted language and compile only the hot loops (often by hand). Of course "professionals" didn't do that, but everyone else did, including those who built some of the greatest performance-sensitive software of the time (quality not property), such as AI systems, games, simulation software, etc.

However, in reality, you can't get the performance from this paradigm unless your entire data strategy and operation ordering is thought about from the start. Changing it a posteriori is very hard. Data oriented design etc.
>>
>>110440632
Learn about smalltalk before making more slop
>>
>>110439783
tribalism condenses big time spans of actual study that have yet to be studied
>>
>>110439783
>Why does /g/ judge programming languages
/g/ doesn't "judge" anything anymore other than laugh at you for not paying for claude
>>
Clojure mogs everything.
>but muh objects
objects are not how the world works, and bite you in the ass the moment you want concurrency, forcing you to adopt complicated locking constructs that have been made obsolete decades ago using transaction systems, which often rely on immutability.
>but muh types
types are make-believe safety. you should be writing tests instead. types add LOC, make modification of code more difficult, and cannot represent so many different classes of logical faults. I'm quite certain your favorite statically-typed language doesn't have dependent types, so what are you even doing?
the only use case for types is optimization by preventing the computer from needing to box something, and Clojure supports this with type hints, records, and types (for when you want to get mutable in hot paths).
btw, the world is dynamic. communication with other servers is dynamic (you are sending byte streams to be interpreted in some way). version numbers across networks don't line up perfectly. embracing dynamic constructs produces more reliable systems.
>but muh runtime polymorphism
Clojure has multimethods, which BTFO even Common Lisp/Julia's multiple dispatch in capability, which themselves BTFO traits/abstract classes/interfaces.
I highly recommend watching
https://www.youtube.com/watch?v=-I-VpPMzG7c
I suck Rich Hickey's dick quite a bit in my posts, but it is because he really has fucking thought, quite deeply I might add, about many of the problems programmers experience in the development of complicated systems.
I also think that using any language that does not give you eval (access to a compiler at runtime) is retarded in 99% of cases.
>>
>>110440076
There is C in GigaChad for a reason
>>
>>110442005
also, I will add that getting static types out of a Lisp is trivial, you literally just write a macro.
a type system just analyzes code for inconsistencies. because code is data in Lisp, you can check code using Lisp. because you have eval, you can compile successfully type-checked code at runtime. the JVM, which is Clojure's primary target, is absolutely fucking excellent at runtime compilation.
https://typedclojure.org/
https://docs.racket-lang.org/ts-guide/
https://coalton-lang.github.io/
>>
>>110442005
Clojure is missing half the advantages of lisp, is stuck on the jvm which is slow and gay, and is broken by design. Learn real lisp.
>>
>>110442059
stupid fucking nigger
https://www.flow-storm.org/
>>
>>110442068
>needs 3rd party crapware to get 1/10th of what good lisp systems provide by default
lmao
>>
File: 1791751234147651.jpg (224 KB, 1600x1015)
224 KB JPG
>>110442087
the last time I argued seriously with a nigger like you, the nigger could not even admit the JVM beats SBCL in performance much of the time. in fact, the nigger seemed to not realize that
https://madnight.github.io/benchmarksgame/lisp.html
has a scrollbar
fuck off retarded nigger, or actually give some arguments.
>>
>>110442108
>unironically thinking benchmark game has anything to do with real life
>still gets btfo on perf anyway despite java being 4-6x faster than clojure
Clojureniggers are not sentient.
>>
File: file.png (196 KB, 2105x2016)
196 KB PNG
>>110439783
don't wanna touch haskell with long stick, but some time ago tried gleam
it was comfy and fun
but hated loops
>>
>>110442551
keep pushing. looping on the BEAM is wonderful because of TCO. it's a feature that I wish Clojure had.
>>
>>110442514
>still gets btfo on perf anyway despite java being 4-6x faster than clojure
https://web.archive.org/web/20161125094132/http://benchmarksgame.alioth.debian.org/u64q/clojure.html
btw, even if you were correct, you made a typo: despite->due to
>>
>>110442795
>clojure 30s
>java 8s
Cry about it but don't forget to take your meds unironically
>>
File: photo_2026-11-03_19-55-47.jpg (771 KB, 2560x2560)
771 KB JPG
>>110442933
you can literally take ANY Java code and port it near directly to Clojure by using Clojure's JVM interop, which is trivial. the code samples in the example you gave (which is the only example with that amount of difference in performance) are not at all identical. I guarantee you could port the Java example to Clojure and nearly match the performance.

I fucking hate having to argue with retards like you. noobs will read your posts and think that Common Lisp is actually a good idea when it is basically dead. notice that you have not given a single fucking argument for Common Lisp, which is what you started out trying to claim was better.
I don't even dislike Common Lisp, it's a great language that mogged everything else for decades, but Clojure seems better now.
this is the last message you will get from me
>>
>>110443046
Take your unironic meds
>>
>>110439783
>Speed matters when it enables something you need
Lisp and Haskell can execute blazingly fast, btw. In the same order of magnitude than C.
>>
>>110440620
>Rust > everything else
This is where you stop sounding like a reasonable person and you end up sounding like a troon.
>>
>>110443165
The problem with haskell isn't raw speed but rather that it's hard to predict its performance characteristics.
It has other program design issues (shared by all ml-family languages) but that's another question.
The problem with lisp is that it's too bloated. Common lisp is monstrous. Packed with features other languages only dream of, but that should really be libraries instead, powered by macros. Scheme makes optimization hard because of standard requirements arounds among other things continuations.
>>
>>110439783
>C is a neat wrapper around the machine.
C is a neat wrapper around what the machine used to be.
>>
>>110443183
>The problem with lisp is that it's too bloated. Common lisp is monstrous. Packed with features other languages only dream of, but that should really be libraries instead,
Current languages like Python or Golang have much more built-in features than Common Lisp. Using your reasoning they would be even more monstrous. Your argument is invalid. You're just repeating hearsay, basically.
>>
>>110443046
>this is the last message you will get from me
excellent, go away and never come back

>>110442059
>Clojure is missing half the advantages of lisp, is stuck on the jvm which is slow and gay, and is broken by design. Learn real lisp.
based lispchad
>>
>>110442005
also, there are numerous Clojure backends, not just the JVM:
JS (official):
https://clojurescript.org/
CLR (official):
https://clojure.org/about/clojureclr
SCI (embed Clojure into your Clojure, can replace things like Lua):
https://github.com/babashka/SCI
Babashka (instant starting interpreter with numerous useful libs built in, useful for replacing shell scripts, uses SCI internally):
https://babashka.org/
C++:
https://jank-lang.org/

I literally never have to write anything but Clojure (aside from SQL). fuck Bash, fuck JS, fuck all of the stupid shit.
I could probably replace SQL too, but I'm too deep into Postgres:
https://www.datomic.com/
https://www.xtdb.com/
>>
>>110443467
>also, there are numerous Clojure backends
they're useless, since most important Clojure libraries will depend on underlying JVM features or Java libraries.
Face it, Clojure is bound to the JVM forever, because Rich hickey chose to suck Java's cock.

If you want to use Java libraries from Common Lisp, it's trivial to do. While Lisp isn't tied at all with the JVM. If you want to call C from Common Lisp, that's also trivial to do.
>>
>>110439783
>Now look at what Lisp, Smalltalk or Haskell let you build and reason about
Smalltalk (in it's current versions, like Pharo or latest Squeak) is great but it runs very slow and will probably continue running slow forever due to its structure.

Haskell is full of accidental complexity, and I'd contend that choosing lazy evaluation as default wasn't a good idea. I think OCaml and, in some ways, Scala, are better.

Common Lisp is awesome when you use interactive development, and the main criticism i'd find is that it doesn't really have good (read: ultra solid, reliable, production-quality) support for green threads (coroutines). I think Erlang is the only platform that gives you massive concurrency (coroutines) WITH interactive programming. But the language (Erlang) needs improvements.

Thus, perhaps LFE (Lisp-Flavored Erlang) is the best.
>>
>>110443518
the JVM has virtual threads, accessible via Clojure. I've used Elixir a lot, and it is great, but lack of shared memory makes some things quite difficult when building for single-machine systems. also, immutable data structures are basically begging for shared memory, they're incredible at that.
>>
>>110442068
>https://www.flow-storm.org/
That fucking tool requires you to swap your official Clojure compiler by ClojureStorm...
So, in short, you mean i need to install a third-party, hacky compiler and runtime that will also make my system run far slower and potentially with unknown bugs, JUST TO BE ABLE to do what I can do out of the box in Lisp?
You clojurians are beyond retarded. But that's not a surprise since clojurians come from the Java world and ALL Java developers are either pajeets or retards.
>>
>>110443453
You have 0 clue what common lisp is or does lmao
>>
>>110443518
>Haskell is full of accidental complexity, and I'd contend that choosing lazy evaluation as default wasn't a good idea. I think OCaml and, in some ways, Scala, are better.
What do you think about languages like Lean and Rocq?
>>
>>110443518
>Haskell is full of accidental complexity,
haskell is a nice language actually, arguably the most interesting overall among the more "mainstream" ones
>>
>>110443723
>You have 0 clue what common lisp is or does lmao
I have a few common lisp libraries of my own, with their corresponding github stars. You're the one calling Lisp "monstruous", probably because of some skill issue. Maybe you still can't understand Generic functions, restarts, or something.
>>
>>110443576
>So, in short, you mean i need to install a third-party
correct, just like you need to for acquiring dependencies (not even cryptographically signed), having portable concurrency, and accessing persistent data structures with Common Lisp.
>>
>>110443812
Kek. This would not be believable if you said you once did a hello world in lisp given your bizarro world-tier statements. Literally claiming that you are a prof of math at MIT and 1+1=3 by the way.
>>
File: leaves.jpg (27 KB, 638x481)
27 KB JPG
>>110443967
>>
>>110443817
>correct, just like you need to for acquiring dependencies (not even cryptographically signed), having portable concurrency, and accessing persistent data structures with Common Lisp.
None of this requires replacing the compiler nor plugging into every function call. The fact that you have used such incorrect analogy makes me think you don't understand how a product like FlowStorm works.
>>
>>110443967
>Kek. This would not be believable if you said you once did a hello world in lisp given your bizarro world-tier statements. Literally claiming that you are a prof of math at MIT and 1+1=3 by the way.
Strawman argument. Let's get back to the central topic. You wrote:

"The problem with lisp is that it's too bloated. Common lisp is monstrous. Packed with features other languages only dream of, but that should really be libraries instead"

Tell me how "load" something like the Meta Object Protocol as a library in other language.

Hint: You can't.

So there are things that need to be built into the language.
Yet in Common Lisp most features are completely orthogonal to other features. Thus, not bloated at all. Want an example of bloated? C++.
>>
>>110444021
>get btfo
>backpedals at the speed of light
>moves goalposts faster than he backpedals
>no argument
I accept your surrender mr lisp genius who doesn't even know the first thing about lisp.

The answers are, among others, chicken's coops and guile's goops by the way.

Now cry me yet another river like the cnile bitch you are.
>>
>>110443482
>they're useless, since most important Clojure libraries will depend on underlying JVM features or Java libraries.
Bullshit.
>>
File: photo_2026-11-03_19-58-10.jpg (134 KB, 1280x1156)
134 KB JPG
>>110445803
we can only do so much to try and advertise Clojure. people that want to fling shit over stupid shit or shit they don't understand is no different from arguing with a Cnile about software development beyond construction of a linked list.
>>
Ada is the best language by all metrics.
>>
>>110446025
>more verbose than java
>slower than java
>fewer libraries than lisp
Ada is only downsides
>>
>>110439783
Cosmos is simply superior. Everything else is a blub. See, you're always missing something.
>functional programming
You're missing logic programming.
>logic programming (normally, non-Cosmos, probably stuck to Prolog-1 or Prolog-0 ISO)
You're missing functional programming.
It's just...not logic-functional prototype-based object-oriented typed white-space sensitive temporal scripting with modes and constraints.
>>
>>110446739
Kill yoursefl ai jeet
>>
>>110445965
Take your unironic meds
>>
If common lisp could compile to binaries and had an easy way to deal with all the dlls for ffis I wouldn't touch anything else.
>>
>>110440611
>just do the work twice bro, it's better that way trust me
lmao no
>>
>>110447197
Common lisp can compile to binaries and has an easy way to deal with all the dlls for ffis. Has since the 90s.
>>
>>110439783
Erlang is the best programming language.
>>
>>110447227
Not in my experience with sbcl.
>>
>>110447247
>1+1=3 in my experience
>>
>>110439783
What I'd like you to recognise is that no matter how much your kind glazes these "misunderstood" languages the truth is nothing of value was ever written in them.

- no operating systems
- no drivers
- no firmware
- no bootloaders
- no AAA game engines like Unreal
- no capable browsers like chrome or firefox
- no top of the line databases like postgres or mysql

exactly 0% of critical infrastructure depends on these languages

maybe it's worth asking yourself if nothing of importance was written in these languages in 70+ years then maybe they are not as good as you think.
>>
>>110447325
Wrong on literally all counts lmao. Except browsers.
>>
>>110447331
name them
>>
>>110447325
Have you considered maybe that the people behind those languages were talented geniuses and that the reason why they failed to gain adoption is because most people (hell, including people like me) are incapable retards? so no wonder the bar is so low with the likes of C?

Also, technically JavaScript is a Self clone and is the most successfully language on the planet, although it has been enshittified.
>>
>>110447354
successful
>>
Replace Haskell with Agda.



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