There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.ml

AzuleBlade , to cat in Company's Coming
@AzuleBlade@lemmy.world avatar

Back when I was a poor kid, our fancy cups were collectable Disney glasses from Burger King.

image

Smartboystupid ,

Tbh those are more fun than the regular Ikea glasses everybody has

AzuleBlade ,
@AzuleBlade@lemmy.world avatar

I’m heavily considering buying a set of them on eBay. I should probably sleep on it first.

Smartboystupid ,

Well if they somehow ended up becoming collectors items you probably should sleep on it, it’s a utility item in the end.

But fun utility items for sure, definitely if you have kids.

I am a grown dude and still prefer glasses with images from back in the days, although most of them are broken and gone by now lol

Rooki , to programmerhumor in Programming Languages

Python is rather the clown. As it is more Scratch than a programming language

Solumbran ,

Someone tried to learn python and failed.

Valmond ,

He mixed up spaces and tabs, threw the keyboard out the window.

Python is nice.

masterspace ,

One of us has spent the last three months trying to help their client untangle their massive python monolith that makes all their in house engineers quit.

Python is a good language for writing a data processing script, not for building a large piece of software.

Solumbran ,

Python is an overall robust language that allows you to do basically whatever you want, and does it pretty well. You can even use C extensions if you want to get peak performance.

The two domains that I believe Python cannot easily work with, are IoT where the interpreter would be a bit too cumbersome for a low-power system, and web programming, where it would still underperform Javascript and Webassembly (even though I am guessing that with a better webassembly support of the browsers, it would be possible to reach a rather efficient interpreter in-browser that would at least reach performances similar to javascript, if not better. And even if slower, the better syntax and lack of absurd rules would be a clear advantage on JavaScript).

masterspace ,

better syntax

<pre style="background-color:#ffffff;">
<span style="color:#323232;">Lol I was listening and intently considering what you had to say until this 
</span><span style="color:#323232;">  point.
</span>
Solumbran ,

Defending javascript syntax is not really a valid thing. Even js devs admit it.

masterspace ,

Is it perfect? No. Is it inherently better than a language that mistakenly thinks that whitespace is more readable than braces? Yes.

White space delimiting is awful and near impossible to scan in yaml config files, let alone a real programming language.

abraxas ,

even though I am guessing that with a better webassembly support of the browsers

Considering V8 overcame python in benchmarks nearly a decade ago, I’m not sure even some miraculous webassembly environment would put python faster than javascript in the browser of all places.

V8 does not quite compete with the big guns in the space (C, Rust, Go), but now that it’s only 2-4x slower than C++, it’s created this niche of “almost hardcore fast” for javascript that is just unlikely to be dethroned any time soon.

People fail to quite get how many leaps and bounds V8 has taken in the last 10-12 years. Javascript’s reputation of being “scripting language slow” is simply no longer the case and hasn’t been for an entire Era in software terms. Reasonably-written Javascript is now often faster than heavily-tuned Python, and well-written javascript is faster than reasonably-written C++. It’s not necessarily fair (like comparing modern solar to nuclear, with the absurd amount of money that’s gone into solar research), but I don’t see it changing any time soon.

potustheplant ,

It sounds like the issue was devs creating a crappy monolith, not the language itself.

salient_one ,
@salient_one@lemmy.villa-straylight.social avatar

Well, to be fair, Matz (the Ruby creator) called Python a toy language.

potustheplant ,

Yeah, in 1993.

salient_one ,
@salient_one@lemmy.villa-straylight.social avatar

That’s correct. I don’t think anyone would seriously call Python that today.

darcy ,
@darcy@sh.itjust.works avatar

dont listen to them my friend. python sucks. the only reason to use it is the libraries. otherwise use lua if you want a similar scripting language that doesnt care if you forget a space key

Solumbran ,

“Use lua if you want a language that allows you to code in a crappy way” is a good argument

darcy ,
@darcy@sh.itjust.works avatar

sure, but for small simple things (eg. something otherwise done in shell scripting), it is convenient and very simple, with consistent syntax. dont get me wrong: i love compiled languages

Ret2libsanity , to programmerhumor in Programming Languages

C is the sniper you don’t see

Maultasche ,

And just like in Metal Gear, he dies of old age if you wait a bit.

unicorn ,

C is old, ubiquitous and still does not have a good replacement for its low-level cross-platform usecases, so I’ll believe it when I see it 😄

Hazzia ,

I’m not too familiar with C, but I was under the impression that C++ was deceloped as a superset to C, and was capable of everything C could do. Is that not the case?

abessman ,

I mean yeah, if you restrict yourself to the C part of C++ it can do everything C can. But then you’re not getting any of the advantages of C++.

Once you start using things like classes and templates heavily, your program will quickly outgrow low-end hardware.

pedro ,

“Outgrow low-end hardware”?

What does a programming language have to do with this?

abessman ,

Everything.

Every programming language is an abstraction layer between the programmer and the machine that will run the code. But abstraction isn’t free. Generally speaking, the higher the abstraction, the less efficient the program.

C++ optionally provides a much higher level of abstraction than pure C, which makes C++ much nicer to work with. But the trade off is that the program will struggle to run in resource constrained environments, where a program written in C would run just fine.

And to be clear, when I say “low-end hardware”, I’m not talking about the atom-based netbook from 2008 you picked up for $15 at a yard sale. It will run C++ based programs just fine. I’m talking about 8- or 16-bit microcontrollers running at <100 MHz with a couple of hundred kB of RAM. Such machines are still common in many embedded applications, and they do not handle C++ applications gracefully.

nothacking ,

Compile times get insanely huge.

Ret2libsanity ,

Compile a c program with gcc then with g++.

You will quickly see the difference in size

nothacking ,

And speed too. A small program using only C features can compile 5x faster with a c compiler then a c++ one. (GCC will use c++ mode on a .cop file so make sure it is .c)

ursakhiin ,

Rust is doing a very decent job of low-level cross platform. C just has a very long history.

Ret2libsanity ,

Rust won’t replace c.

The programs are too bloated for many embedded systems where every byte counts because it’s in ROM or loaded jnto IRAM

All that memory safety and garbage collection, for example, comes at a big cost

Faresh ,

garbage collection

I don’t think Rust has a garbage collector.

jlh ,

At the same time, C is the only stable ABI available for Rust.

pingveno ,

That’s true, but they’re working on an ABI implementation. It’s no mean feat with a language like Rust. A quick search around the Internet found various possible candidates, though many of the discussion threads have petered out.

unicorn ,

Its cross-platform support (not just for using but also for building it) is not there yet, and it is quite huge and unstandardized with only one full implementation. I’d agree the last part will change with age, but given the frequent large changes and feature additions I am afraid it will be harder and harder and it is simply too complex and fast-moving for many low-level applications. It is closer to C++ than C in my eyes. I’d be happy seeing it replace C++ though for its memory safety benefits!

anewbeginning ,

Does it need replacing?

unicorn ,

I wouldn’t say “need”, but there are possible improvements to ergonomics and safety that wouldn’t make the language itself more complex or high level. I think it does its job quite well though and will be here for decades to come.

Rodeo ,

Ada has been around since 1983 and is objectively superior. Yes I will die on that hill.

It’s too bad programmers are all such egotards they think they can write bugfree programs in C, while whining about how “restrictive” a safe language like Ada is.

bear_with_a_hammer ,

And his companion is PHP, who wants to be just like his hero

hglman ,

C is back at HQ with 2 Stars and enough political capital to serve till they die.

ghariksforge , to programmerhumor in Programming Languages

We all know C# is the real clown.

gjoel ,

Why?

Rooki ,

Python is the clown of clowns

zbecker ,
@zbecker@mastodon.zbecker.cc avatar

@Rooki @ghariksforge

I mean, python is named after Monty Python.

MrJameGumb , to cat in Company's Coming

I have these glasses! I bought them on Amazon!

Facelikeapotato OP ,
@Facelikeapotato@lemmy.ml avatar

Arh! Thank you so much, I’m adding them to my wish list.

akariii , to programmerhumor in Programming Languages

non taken (I dislike JavaScript)

Boinketh , to programmerhumor in Programming Languages

Fuck excessive type coercion. All my homies hate excessive type coercion.

SergioFLS , to piracy in anti-piracy magazine ad from 1993
@SergioFLS@feddit.cl avatar
pseudonym , to programmerhumor in This took me 4 days.

Jeez this is so true. I struggle daily to stay on top of the code and docs I have to review, answer people who are pinging me in slack, and being in meetings… I want to actually get some shit done!

Blxter , to piracy in Where to watch UFC for free?
@Blxter@lemmy.zip avatar

Try mmastreams, my friend used it once I never have but he said it worked. redi2(dot)mmastreams(dot)cc was the url he used.

jonwyattphillips , to piracy in Where to watch UFC for free?

Sportsurge or streameast usually work for me

Zamotic , to programmerhumor in Follow me for more JS tips

Hah, I do the very same thing with an old perk book!

Catsrules , to memes in blee-bloo blbleebloo

She must be Overly Attached Girlfriend’s sister

Diabolo96 , to cat in Good hunting, Oliver

Half dead birds…🐦🥲

exapsy , to programmerhumor in The O(1) Fibonacci implementation

Dynamic programming /s

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines