Old thread: Lisp is the most powerful programming language.
Anime is degenerate.
/dpt/ - Daily Programming Thread
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
>anons force me to choose between lisp and anime, equally dogshit things
yikes
Third for anime.
Second for dogshit.
That is the fourth post, though. Also, why would you or OP be complaining about anime on an anime website?
This is the first post. Also, your waifu a shit.
lrn2 use macros
learn to not use them. The arc of history bends away from each project being written in its own incompatible variant of a language.
I like golang, rust and javascript.
And there's nothing you can do about it.
I like Swift!
public func clamp(_ value: T, min minValue: T, max maxValue: T) -> T {
return max(min(value, maxValue), minValue)
}
how good is swift-gtk? Is it even active?
I like nightly Rust and hypermordern C++!!
D and Nim too!
are you gay?
No. I'm very sexually active too.
Hydra: liking rust and being a tranny
Charybdis: liking golang and being retarded
you should cover up the embarrassing ishit icon in your selfies.
(I (like (Common Lisp) and (Python)))
every programming language is anime
What is lisp good for?
shitposting
Just like Rust, C, C++ and anime then.
people at least shitpost with code in Rust, C, C++, and anime.
/dpt/ doesn't write Lisp even to shitpost about it.
people actually use C and C++ to write stuff
I've seen the resident crazies write CL code, but it's rare.
epic fizzbuzzes have been written in a lisp, in the /dpt/
Lisp is not a programming language, it has nothing to do with programming, please go back to the thread that was created first and is programming related:
KYS DOLL TRANNY
>mfw faggots can't cope with facts
Lisp is a meme. Nobody made any projects in it. Useless. Garbage. Only old schizos like Stallman keep wailing about Lisp, which has become copypasta meme = Lisp was meme all along.
how is Swift doing?
what's its future?
this
I don't give a shit about Lisp. Take your doll faggotry and fuck off to lgbt
Need help on why my quicksort for string arrays is getting stuck. uniqueindict is a global array of strings (this is for school if you couldn't tell, idk why they always make you pull this shit for assignments).
void quicksort(int low, int high) {
if (low < high) {
int pi = partition(low, high);
quicksort(low, pi - 1);
quicksort(pi + 1, high);
}
}
int partition(int low, int high) {
string pivot = uniqueindict[high];
int i = (low - 1);
for (int j = low; j
we don't do your homework for you
that's pretty spectacularly bad code, even for a high school project. have you thought of becoming a waste disposal engineer?
how is that bad? thats what my quicksort function looks like
I think you mean )))))))))))))))))))))) ...
he's meming
>anime cumbrains started a threadwar just because the OP wasn't one of their degenerate dolls
christ this place is awful
at least now I know most of this general is just shitposting animetards instead of programmers.
what's the difference
>proper dpt goes up first
>meme lisper's feefees get hurt ouchies :(
>makes a thread regardless and keeps samefagging it
Lisp is not programming.
Fuck off, retard.
What the fuck does that disgusting mess even mean
Clamp is a function that, for any type T which is comparable, takes three values of type T, and returns a value of type T
Dealing with a linker error at work. Just posting here and thinking about maybe pooping on company time because I don't want to deal with it.
have you tried adding inline
>_ value: T, min minValue: T, max maxValue: T
what the fuck?
yeah, I'm getting duplicate symbols so it's not the problem :(
>the typical gotard/cnile reaction to generics
my best guess is that you have multiple definitions of something in the .cpp files
My cpp files are mostly empty. I think the problem is the CMake files which makes me want to debug even less lol
I'm a 'tard, trying to come up with my own recursive version of union. It's proving more difficult than I had anticipated.
t. blogpost
maybe it's for named parameters
Generics are not the problem here, I just don't know what this means. Why are there two identifiers before each type declaration?
templates
Anyone familiar with Qt here? I have a QTableWidget with 4 header items for 4 columns but I'd like to be able to toggle two of them on demand, can you somehow do that dynamically or do I essentially need to rebuild the entire table setup each time a column is toggled?
AnyIntegerVariable + "thing" = 100
what "thing" can I use to ensure that any integer value I use is multiplied/divided to 100?
what are you even asking?
An if statement?
void foo(int AnyIntegerVariable)
{
static const int thing = 12;
if (AnyIntegerVariable + thing > 100) {
return;
}
// AnyIntegerVariable + thing;
}
you mean a multiple of 100?
New to programming. Someone redpill me on Lisp.
It's garbage and suits a retard like you
Write an object/type that declares an addition operation for that type with an integer and define that addition operation to always return 100.
It's garbage shitposters love
samefag nigger
Reposting here too since you did two threads dumbos
Friend learned python and made this fizzbuzz in a day, thoughts?
tell your "friend" to learn the printscreen button too
Really neat language with simple, clear syntax and strongly encourages a functional style. Everything is a list and the basic means of data combination is with pairs, which leads to all sorts of cool things and naturally encourages recursive algorithms. Even the code you write are just lists (which underneath are just pairs) which makes symbolic manipulation and advanced macros super nice and easy.
Beautiful. Elegant, concise, extensible, everything good code should be. Your "friend" has a bright future ahead of them.
FUCK LISP
Told him :P
Thanks he seemed pretty happy about it
Also yeah i have a friend dont "" him lol
Why is ot not mainstream?
That guy is a fucking shill
Lisp is the programming language with the simplest possible implementation and it was popular ages ago in the 1970s but fell off in favour of languages that were more human orientated, Lisp requires you to write lots of macros to get anything done
Can I use it for unconventional projects?
I want a variable to be "100%" in relation to another variation, so like
MaxiumIntValue = 32
AnotherIntValue = 16
with some python mumbo-jumbo, I want it to say that "MaxiumIntValue" is 100% and "AnotherIntValue" is 50%
>ratios
>mumbo jumbo
go back to 5th grade you retard
But how is that not just AnotherIntValue / MaximumIntValue * 100??
You can use it for anything, doesn't make it a good choice though
Are you asking how to divide a number?
Never took off in industry because it was slow, and lisp ended up with multiple different interpreters that aren't compatible with each other (multiple interpreters with different semantics is partly by design). Industry wants something that works and is standardized. Lisp was never meant to be used to write entire software. An interpreter was meant to be embedded in software and support a domain specific dialect of lisp, like Emacs. This was not how industry preferred to operate. It was used extensively in academia, however, particularly at MIT, and especially for AI. It may still see use in that area, but I am not sure.
Why are you so angry? He wanted a description of Lisp so I gave it to him. Meanwhile you replied to him twice with two shut posts crying about your lisp boogeyman
There's no reason to not use Rust over C or even C++ anymore. I doubt anyone from here can even name 5 bad things that's not related to the community or trannies.
Your posts are incredibly biased
Lisp is not a useful language today
>I doubt anyone from here can even name 5 bad things that's not related to the community or trannies.
Borrow checker
Borrow checker
Borrow checker
Borrow checker
Borrow checker
Now name 4 more things. I'll wait.
Can't you count?
You listed one thing.
Extremely verbose.
No tail calls.
Borrow checker.
Slow compile times.
Rc
m8 I've been using emacs and emacs lisp for years
Also I never once said it was useful did I. I merely described the language objectively and then stated facts about its usage
>m8 I've been using emacs and emacs lisp for years
so?
>C
>Full of exploits, vulnerabilities, and UB
>costing tax payers probably billions in CVEs exploited over the years
>Ada
>Literally blew up a $370,000,000 rocket
>C++
>A joke used only in gaming, no direction, trying to be everyone and failing at it
>Rust
>Clean slate
>8 year track record of no issues
>actively tries to be a safe language and avoid CVEs found in C/C++
define useful
a subset of programming languages in which Lisp doesn't appear
you forgot
>Rust
>garbage nonsensical syntax
i prefer malbolge myself
>>A joke used only in gaming
Every major application uses C++
wrong, Java has long taken over enterprise and corporate world.
the first thread was posted before the thread limit, therefore it is invalid.