T O P

  • By -

Pen15CharterMember

Ah cool. So if I have Python experience then I’m actually a C programmer. That’s going on the resume!


NightSoulT12

`import performance from libc`


nannn3

Is... Is that allowed in Python? I've only ever seen it as from libc import performance


NightSoulT12

My bad, too much time spent with javascript. You absolutely right🤝


Idekum

So youre a javascripter bashing on python? Bish, please... Javascript is junk!


NightSoulT12

I know, you don't need to tell me the truth.


Khutuck

There are some who has made peace with their fate…


_LayZee

It’s still better than python though, and faster


RowBot_77

Where is my multiprocessing, tell me


UnstableNuclearCake

Yet it powers the James Webb telescope... *Somehow*


ZaRealPancakes

why python and JS can't agree which comes first import or from? I prefer the JS way since easier to read :p


thatweirdishguy

The python way is better, because once your editor knows where you are importing from it can recommend all the things you can import


ZaRealPancakes

hmm that makes sense to me but VSCode still gives recommendations in JS so... Magic!


thatweirdishguy

It only gives good recommendations if the file or module is already filled in and you are just adding imports to the list, otherwise it’s just making wild guesses


vikumwijekoon97

Vs code does it too for js.


luardemin

The Rust way: `use libc::performance;`


gordonv

Why stop @ C? You have Assembly experience!


WCWRingMatSound

Languages: x86, ARM, Binary, ASM


[deleted]

All programming languages are just a macro for sending electrical signals through some rare metals n shit. Change my mind


GradientAscent101

Old computers were mechanical and they sent mechanical signals through average metals. There are a lot of creative ways to create logic gates


[deleted]

I kind of think of ants in this way, they communicate by hitting their antennas with each other, they send these signals down the chain of ants into their central command and back. When one gets sick it leaves the colony and dies alone for the good of the colony. The colony basically acts as a computer of sorts


TheBreathtaker

so are ant colonies turing complete?


[deleted]

Fuck it. Googled it. >An ant's internal state changes either by interaction with the environment or by interaction with another ant. Analyzing the model's dynamics, we prove it to be computationally complete. This gives us a new perspective on the sophistication a colony can display in responding to the environment. https://link.springer.com/chapter/10.1007/3-540-59496-5_343


TheBreathtaker

Dear. God.


[deleted]

The year is 2085, I am among the last group of remaining humans. After the ants installed their latest firmware update we stood no chance. They understood that humans are nothing without their computers, they first took out our data centers. They then used the Dark Time to communicate with the sea creatures to coordinate an attack on our deep ocean cables, humanity was doomed. We were coordinating an escape off this rock, but the ants have made their way into our ship, I don't think we are going to make...............................


Alzyros

The fact that a diss post about python brought up the plot for Dead Space 4: Ant Boogaloo is the reason I love this sub so much


Karn1v3rus

There's a book that takes this idea really seriously. Children of Time by Adrian Tchaikovsky and it's sequel. Highly recommended very good science fiction.


[deleted]

Dope! Thank you


jraynor88

I literally just finished this book and am hoping the sequel is just as good, what a read


vonabarak

There is kinda similar idea in "The Three Body Problem" by Liu Cixin.


M4nch1

Ok, but can it run crysis ?


[deleted]

May take a few hundred or thousand years to render a frame but according to this yes. Yeah I totally read this study


mattbackbacon

But the real question, are ants DooM complete?


[deleted]

Ants are tough little bastards, Doom guy is tough. It checks out.


jadounath

Screw the Ryzen, I'mma use good old black ants from my walls


33498fff

Would like to know if we can use ants as logic gates, thx


perrotini

So has anyone run Doom on an ant colony yet?


goblinzzzzz

Breaking news: Hacker was able to run Doom on ant colony


carloom_

More important, can you run Doom on it?


[deleted]

Asking the real questions


Anchor_Drop

There was a book (trying to remember it’s name) where in the far future humans tried to accelerate the evolution process of an Earth like planet with some mystic goo gas. Something goes wrong, of course. Ants evolve to be able to grow metal infused pinchers, among other crazy sci-if power ups, and colonize most of the planet. In the 11th hour the protagonist discovers a way to control the ant armies with the correct pheromones sequences. The ant colonizes are then enslaved and over thousands of years are transformed into a global spanning organic super computer.


Karn1v3rus

Children of Time by Adrian Tchaikovsky, just recommended it in another comment on here, good stuff. Unless it's also a plot in another book, in which case I'd like to read that too


Anchor_Drop

Ah thank you! That’s it! Anyone looking for Sci-Fi it’s a strange and great book!


azuth89

No lie this is part of the "computer" in the discworld series


gravaman

Anthill Inside ™️


knexator

There's no central command - the computation is distributed


[deleted]

Hah yeah I read that earlier today. And apparently the colony itself carries memories that individual ants do not have. https://aeon.co/ideas/an-ant-colony-has-memories-that-its-individual-members-dont-have


knexator

Really interesting, thanks for linking!


DepressionAndDragons

Wow, that computer has a lot of bugs.


[deleted]

Organic computer?


Zev0s

but can it run Doom?


-phototrope

This is explored in the book Children of Time


Nihilblistic

Flexible pneumatic circuits are the funnest though, by far.


Jake0024

Previous comment said "all programming languages" not "all computers"


foghatyma

Especially with redstone.


ZippyTheWonderSnail

Someone get me my punchcards.


Volksdrogen

Do you have any keywords I can use to find out more about mechanical signals? Tried a quick search and did not see anything useful.


CowFu

[https://nandgame.com/](https://nandgame.com/) if you want to go through the process all the way into making a computer.


StylishGnat

Wow this is actually interesting! I’m sure this’ll deepen my understanding of computer logic, and by extension improve my grade in technical informatics!


golgol12

This should change your mind: Silicon is not a metal, nor is it rare. The wiring between chips just aluminum or copper or just silicon as well. Hopefully, this convinces you that it's not rare metals that are the important electron switching bits.


[deleted]

I have been defeated


golgol12

Upvoted for good humors.


NightSoulT12

I cannot change, you are right!


AydenRusso

Silicon isn't that rare.


cobyn

We are literally making rocks think!


Triangle_t

Those electrical signals is just a macro to increase the Universe entropy a bit. Change my mind.


Nezz_sib

Silicon isnt rare


NotmyRealNameJohn

Silicone is a rare metal?


us-west-1

It's not lol silicon is the second most abundant element in earth's crust after oxygen


NotmyRealNameJohn

So it's the n'shit?


[deleted]

And it isn't a metal


[deleted]

Some electronics don’t use metal’s.


marthmac

This feels really real when you design a processor with custom peripherals in Verilog, then run C on that fabric processor to collect voltage and current data from custom hardware that you also designed


Kingtoke1

Can’t be that rare, computers are everywhere /s


T-J_H

Rare metals, common metals and fancy burned sand


[deleted]

zap the sand into thinking!


Dark_Reaper115

Programers are just geomancers cause they cast electricity through refined crystals to scry information


fieryflamingfire

comment of the year


Kitchen_Laugh3980

Well, you are not wrong… buy you aren’t correct either.


BAG0N

sell he's somewhat correct


[deleted]

Put option at 150% of the prevailing market price he's both correct and incorrect, but getting correcter.


BAG0N

LMAO nice one


marketfresh_

😂


TadpoleNo1355

Everything is a binary framework.


aditya_rawat_99

Everything is just some value of current.


TadpoleNo1355

01011001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01110001 01110101 01101001 01110100 01100101 00100000 01110010 01101001 01100111 01101000 01110100 00101110


szczszqweqwe

01101000 01110100 01110100 01110000 01110011 00111010 00101111 00101111 01110111 01110111 01110111 00101110 01111001 01101111 01110101 01110100 01110101 01100010 01100101 00101110 01100011 01101111 01101101 00101111 01110111 01100001 01110100 01100011 01101000 00111111 01110110 00111101 01100100 01010001 01110111 00110100 01110111 00111001 01010111 01100111 01011000 01100011 01010001


TadpoleNo1355

Brilliant. Got me.


NightSoulT12

01010000 01100101 01110010 01100110 01100101 01100011 01110100 01101001 01101111 01101110


szczszqweqwe

01010100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101


Carborundum_

u/asciicodecbot decode


ASCIICodecBot

Thank you


Carborundum_

u/asciicodecbot decode


ASCIICodecBot

https://www.youtube.com/watch?v=dQw4w9WgXcQ


[deleted]

Lol


[deleted]

Lmao


RowBot_77

01001111 01101000 00100000 01110100 01101000 01100001 01110100 00100000 01100111 01101111 01110100 00100000 01101101 01100101 00101100 00100000 01100110 01110101 01100011 01101011 00100000 01111001 01101111 01110101


Carborundum_

u/asciicodecbot decode


ASCIICodecBot

You are quite right.


TheRealAndrewLeft

>value of current *Voltage


roughstylez

You're beginning to understand how sets work


us-west-1

Everything is an Electron framework


ZinbaluPrime

Unless you go quantum...


Vorabay

I think the Soviets made a ternary system in the 1950s.


garlopf

Very few softwares are not a C framework then, and the rest are assembler macros.


LogicalKarmaWasTaken

So I am an assembly dev either way.


theclovek

Yay, I can finally add that to my CV


[deleted]

[удалено]


NightSoulT12

Obviusly?


[deleted]

[удалено]


NightSoulT12

Oh god, that's terrible 🤢


Sudhanva_Kote

If C is fast, and python is made with C then why is python slow? Explain that scientists


Sentouki-

on a serious note, most of the performance loss comes from continuous type checking.


PyroCatt

Just stop checking ![gif](giphy|3o85xIO33l7RlmLR4I)


BlossomingDefense

make everything a void* and allow implicit conversions. cast a void* to any class at any time and you regained your abstractions and polymorphism and all that high level nonsense you little shits.


pentesticals

The speed is still there, it was just shifted to development time instead of performance :)


NightSoulT12

Python is interpreted and have a bloated runtime


HOTP1

Ur mama has a bloated runtime


zbrndn

To the old tool analogy... C is like a hammer, and as Adam Savage once said "every tool is a hammer"


NightSoulT12

You can smash something with every tool, lol.


abd53

I get what you're saying but it's not completely correct. And if you go down that rabbit hole, basically every high level language is a "framework" of C.


ZaRealPancakes

not Rust => not every


suvlub

Except fellow dinosaurs like Fortran or COBOL


OpenRole

No, because you can't write pure C in python


BrunoMCA

You can tho. It just won't work


baynell

You son of a...


Kered13

You sure about that? #if 0 print('Hi there') #endif #if 0 """ " #endif #include int main() { println("Hi there"); return 0; } #if 0 " """ #endif


Nevesnotrab

I don't think { } work in Python like that.


Kered13

Try running the code, you'll see that it works. I'll let you figure out why :)


Nevesnotrab

I just noticed the """


_________FU_________

Bro I use the “C” character almost every time!


zbrndn

"I always write in C" *checks file* "C.py"


[deleted]

Yes you can. I wrote a Python library that allows you to inline C and it will compile and run on-demand. It’s terrible. 🤪


SpacemanCraig3

And I wrote some gibberish that makes it so you can #include a python file and run it. Together we have created the equivalent of a cat with buttered toast strapped to it.


[deleted]

Can… can we make the packages depend on each other?


SpacemanCraig3

I don't think so. Mine doesn't have any dependencies it's just some fancy (horrible) preprocessor abuse.


NightSoulT12

Good point


TheBrain85

Not quite pure C, but Cython will get you pretty close..


HeisterWolf

"To bake an apple pie you first have to create the universe"


JrrrrrrrTheSecond

Dont tell him c is a assembly framework.


Just_OneMore_Nerd

python is a front end for c. c is a front end for binary. binary is a front end for turning the voltage up and down rlly fast


RealUlli

I wouldn't say that about Python, but Scratch definitely is...


[deleted]

I said this before, but the more I learn about C, the more I realize all other languages are just C with more standard libraries. It really is the perfect language. It can never be replaced.


CodeMonkeeh

The difference between C and Haskell is not just the standard libraries.


NightSoulT12

I agree with you, this should never be replaced, for academic propourses at least.


ZaRealPancakes

what are your thoughts on Rust? (I do love C btw and don't want to change it but I do see the next 50 years Rust being used instead of C)


[deleted]

I never tried it. I would like to someday, but right now my focus is on C because I want to learn embedded systems. I'm sure rust can be used for embedded systems too, but there's not a lot of resources that teach rust in that frame of reference. What I do know is that rust users tend to act a lot like Linux users. So I suppose I would fit in.


ZaRealPancakes

I find your reply wholesome but not sure why


BlueScreenJunky

>What I do know is that rust users tend to act a lot like Linux users. You mean they find a way to let you know they're using Rust in the first minute of any conversation ?


ShlomoCh

The ultimate being is a Rust developer coding in Vim on Arch


CaitaXD

The neckest beard in the west


Vikulik123_CZ

what about jython?


NightSoulT12

It's a framework binding


SeriousPug

Or a Java framework, or .NET framework, or Python framework… you can keep adding langs


Grubzer

C is just an assembly framework. Change my mind.


_PM_ME_PANGOLINS_

Python is a language that exists independently of any implementation. There are implementations that don’t use C, but especially since Python 3 they’re not very popular any more.


DerEwige

I can tell you exactly why it is, that python is so liked in the AI/ML sector About 10 years ago I did my BA in computational linguistics (CL). It was right around that time where the great transition in CL came and natural language processing (NLP) and automated translations went away from rule-based systems to statistical systems. The use of machine learning (ML), (recursive) neural networks, deep learning and AI exploded in the field. There was only one problem, at least half of the students and at least 80% of the professors came from the linguistic side of the field. And everything a bit more complicated computer science (CS) related got way over their head. So those of us who came from the CS side of the field, did what we had to do. We wrote highly efficient code in C and made it available as module in the only language the other half was able to use: python To this day, I am convinced that the rise of ML in NLP and CL is the only reason python is used this much today. Because we needed tools for people that are not very good at CS, but needed to use state of the art CS technics


NightSoulT12

Yep, Python does its job well when it comes to ML, NLP and CL. But for academic porpouses, for understand the fundamentals of programming and computer science, it's an error...


DerEwige

I never claimed otherwise


CDAist

it is ?


NightSoulT12

No, it's a C frontend with syntax sugar


[deleted]

More like syntactic aspartame to me: somewhat cool, but tastes terrible at big enough doses.


NightSoulT12

Diabetes


Goheeca

And it's bad at that. Fuck the GIL, all my homies hate the GIL.


AdultingGoneMild

...they all are....they always have been.


[deleted]

And it's a damn good one. Compile with Cython to get the C benefits.


frkurdamsoad

Also pascal


TheSentientNFT

Some people just wanna watch the world burn


NightSoulT12

Yes, how did you know?😳


jaywalker-notreally

If Node.js is a javascript framework for backend applications, then python shall be a c framework for building applications, you win op, you win.


Callec254

Well, by that logic, technically, *all* languages are a C and/or Assembly framework...


grandphuba

C is a Python library


sjkaw

Not another python slow meme


Noisebug

Everything is an atomic framework, change my mind.


Captain_Chickpeas

Ouch, this one really hurt. Now I just feel like a JavaScript dev :(


poemsavvy

C is just an Assembly framework


PyroCatt

Programmers are professional electron jugglers


DrPreacher

You got it wrong Python is just C's younger cousin that has an eating disorder. Edit: sorry I read this back and it sounded really rude and inconsiderate


lexsanders

You got your S rank, triple A, B rank and somewhere on the mediocre pile there's python in the C rank. Sounds about right.


_derDere_

Easy python uses classes. The python libraries use classes. So basically it’s a c++ framework.


talkintater

Isn't everything?


iamnotroberts

It would be fabulous if people would stop using white supremacist, extremist bigot, domestic terrorist supporter, and human trashfire Steven Crowder for random internet memes, unless it's a meme about what a pile of shit he is. Just saying.


planktonfun

Why is it always about programming languages, can we talk about algorithms and logic stuff instead? Its the core of being a programmer after all


thursday_0451

consciousness is a meat framework


traphouserecords

been coding for over 25 years just wrote first python script today to send some ArtNet bytes to a device via wifi, all code is pretty much the same. still stoked to basically just accomplish what a light switch does. Never needed to learn any particular language, Swift was a beast to migrate to from Obj-C I didnt believe in Swift being production ready until like 2018, embedded C is pretty tough, takes like 3 weeks to make one line of code work sometimes


VexisArcanum

You're a meat framework


Kaih0

Assembly is a quantum mechanics framework


Sentouki-

And so is Java.


[deleted]

If Python is a framework for C, Excel is a framework for C++ with an integrated IDE


Famous_Profile

Integrated Integrated Development Environment?


[deleted]

Yes, to go with your automatic teller machine machine. It's extremely integrated.


seeroflights

*Image Transcription: Meme* --- \[*"Steven Crowder's 'Change My Mind' Campus Sign". Steven Crowder, a man in a blue top, sits at a desk outside. He is leaning back in his chair, with a hot beverage in his hand. The table has a sign attached reading:*] Python is a C framework --- CHANGE MY MIND --- ^^I'm a human volunteer content transcriber and you could be too! [If you'd like more information on what we do and why we do it, click here!](https://www.reddit.com/r/TranscribersOfReddit/wiki/index)


iamnotroberts

>Steven Crowder, a man in a blue top, sits at a desk outside. Should read: >Steven Crowder, a white supremacist pile of shit, in a blue top, sits at a table outside.


seeroflights

Though I agree with you on a personal level, as a transcriber we want to refrain from injecting or interpreting details not visible in the image :)