Programming languages without dynamic memory allocation?

Out of curiosity:

Has anyone here witnessed a somewhat general purposey language that doesn't allow dynamic allocations or at least stack-only allocations? (Not including Forths and old Fortran but including scripting languages of some sorts, that is.)

Follow-ups:

  • Do you have interesting ideas for specific features?
  • Do you have an intuition on what the overhead of dynamic memory allocation typically is?
πŸ‘︎ 34
πŸ’¬︎
πŸ‘€︎ u/Quecksilberbarren
πŸ“…︎ Jan 08 2022
🚨︎ report
Why is Python relatively slow even compared to some dynamic programming languages?

I'm aware that a large part of why Python is slower as a programming language is because it is dynamically typed, which requires extra overhead for programs, but I'm still not quite sure as to why it's slow even compared to other dynamic programming languages (even for single threaded performance).

As an example, I looked at Javascript vs Python, and it seems like Javascript is blazing fast even for a dynamically typed language. It comes somewhat close to other statically typed languages like Java in terms of execution speed. Also comparing it to PHP, PHP tends to be a good amount faster than Python while also being dynamically typed.

While I'm aware that the reason Javascript is fast because it uses JIT compilation, it doesn't explain why even the equivalent PyPy program isn't close to as fast as Nodejs despite also using JIT compilation. I've had inconsistent differences in performance with PyPy, where scripts could be anywhere from 100x faster to 2-3x slower. Why isn't or hasn't Python been able to get on the same level of performance as some other dynamically typed languages like PHP or Javascript?

πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/siddsp
πŸ“…︎ Dec 29 2021
🚨︎ report
Why do people prefer Dynamic typed programming languages over typed programming languages?

My go to programming languages are Java and C++. They are what I know best, and am best a coding with. I've tried to dabble in Python and other "easy" languages, but the dynamic typed variables make life so much more difficult for me. I was wondering, why do people prefer dynamic typed programming languages over static typed programming languages? From what I've heard, the dynamic type part of python is part of what makes it so slow compared to other programming languages, and I just don't understand why people like dynamic types if they make life harder, and your code run slower. Please enlighten me, why do people prefer dynamic over static typed?

πŸ‘︎ 128
πŸ’¬︎
πŸ‘€︎ u/ILostAChromosome
πŸ“…︎ Sep 16 2021
🚨︎ report
How feasible would it be to build a dynamic runtime library of simple Qt features, which could be used from different programming languages, without any need to adapt those languages to Qt?

The source code of the dynamic library could use "extern C" for the interface to a bunch of commonly used Qt features. Most programming languages could invoke those features that way even if they weren't compatible with C++. Most programming languages can already use dynamic runtime libraries.

Would this be a good way to make simple Qt features easily available in programming languages that don't have any support for Qt?

Or does Qt already have something like this?

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/aiaor
πŸ“…︎ Nov 30 2021
🚨︎ report
A self learning collaborative robotic arm with real-time obstacle avoidance. DOBOT CR5 is a safe, flexible & Self-learning collaborative robot. Easy programming using visual, drag & drop and block-based programming language. Real-time obstacle avoidance with every-5ms dynamic monitoring. v.redd.it/33m6ybdgd9q71
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/Jay-Wevolver
πŸ“…︎ Sep 28 2021
🚨︎ report
imagine you are 20 and you would like to learn a programming lang to start your career. Would you choose Python ( more dynamic langs ) or languages like Java or C++? why?
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/latest_ali
πŸ“…︎ Jul 04 2021
🚨︎ report
Introducing Rune, a new stack-based dynamic programming language for Rust with async support. rune-rs.github.io/rune/
πŸ‘︎ 446
πŸ’¬︎
πŸ‘€︎ u/udoprog
πŸ“…︎ Sep 05 2020
🚨︎ report
Rune: Rust reimagined as a dynamic programming language rune-rs.github.io/rune/
πŸ‘︎ 23
πŸ’¬︎
πŸ‘€︎ u/Dhghomon
πŸ“…︎ Sep 08 2020
🚨︎ report
Designing a functional programming language: Yatta - dynamic, non-blocking language functional.blog/2020/05/2…
πŸ‘︎ 19
πŸ’¬︎
πŸ‘€︎ u/kovariadam
πŸ“…︎ May 25 2020
🚨︎ report
Designing a functional programming language: Yatta - dynamic, non-blocking language functional.blog/2020/05/2…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/MaoStevemao
πŸ“…︎ May 26 2020
🚨︎ report
"Dylan is a multi-paradigm functional and object-oriented programming language. It is dynamic while providing a programming model designed to support efficient machine code generation, including fine-grained control over dynamic and static behaviors." opendylan.org/
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/unquietwiki
πŸ“…︎ Jun 25 2020
🚨︎ report
Designing a functional programming language: Yatta - dynamic, non-blocking language functional.blog/2020/05/2…
πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/akovari
πŸ“…︎ May 25 2020
🚨︎ report
Simple Optimizing JIT Compilation of Higher-Order Dynamic Programming Languages hdl.handle.net/1866/22661
πŸ‘︎ 41
πŸ’¬︎
πŸ‘€︎ u/mttd
πŸ“…︎ Dec 04 2019
🚨︎ report
Compiling dynamic programming languages notes.eatonphil.com/compi…
πŸ‘︎ 55
πŸ’¬︎
πŸ‘€︎ u/eatonphil
πŸ“…︎ Sep 02 2018
🚨︎ report
Does anyone know what programming language is used to create the dynamic character sheets?

I am working on a college project and am starting to look into making a dynamic character sheet for a mobile app for my campaign, I am wondering if anybody knows the programming language roll20 used to create their sheet's or if people have any resources in regards to creating dynamic character sheets. Thanks in advance! :D

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Stubbsie2
πŸ“…︎ Oct 15 2019
🚨︎ report
To my understanding, JavaScript & Python are relatively similar languages (dynamic, functional, etc). Why then does it seem like the general programming community adores Python but constantly mocks JavaScript?

Python is often hailed as supremely readable and functional and is generally the default language recommended for a newbie to learn first (unless they have a specific problem they need solved).

JavaScript is also fully recommended as a first language because of its absolute dominance in the web-dev space.

My question is mostly this: what are the major differences between the two languages that causes such a huge rift in programmer-perception? I consistently see "lol JavaScript is bad" types of content but none for Python. It is my understanding that these two languages are relatively similar. So using that as a baseline, there must be some major differences between the languages that cause such a divide. I want to know what they are.

πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/IllegalThoughts
πŸ“…︎ Sep 28 2018
🚨︎ report
Programming in static languages is like designing a railway for trains, programming in dynamic languages is like designing a road for cars.

You don't know where the cars will go through at design time, and you don't know what type of cars go through each route. This means things might be slower, but are more flexible.

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/JohnnyElBravo
πŸ“…︎ Jan 22 2019
🚨︎ report
TaffyScript (1.9.1) - A Simple Dynamic .NET Programming Language github.com/mystborn/Taffy…
πŸ‘︎ 32
πŸ’¬︎
πŸ‘€︎ u/Mystb0rn
πŸ“…︎ Jun 22 2018
🚨︎ report
TIL about SuperCollider, a dynamic programming language and real-time audio synthesizer. It's used by both scientists and artists for acoustic research and to create algorithmic music en.wikipedia.org/wiki/Sup…
πŸ‘︎ 69
πŸ’¬︎
πŸ‘€︎ u/AbelBound
πŸ“…︎ Sep 07 2018
🚨︎ report
TaffyScript - A Simple Dynamic Programming Language Written in C# That Compiles to a CIL Assembly github.com/mystborn/Taffy…
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/Mystb0rn
πŸ“…︎ Mar 01 2018
🚨︎ report
What should I change in my mindset when develop in a dynamic programming language when I coming from a static programming language background?

Honestly I feel more comfortable working with static programming languages but lately I have received good job offers using some dynamic language, it is usually with python and just yesterday with elixir, that this last proposal is the one that motivates me to give it a new opportunity to dynamic programming languages, my first language of this type was javascript, honestly not the best first approach to dynamic programming languages, I was somewhat traumatized haha

People have told me that my problem is that I try to program in dynamic languages as if I were programming Java / C # with the help that their respective IDEs provide me. Instead of that I should be creating small functionalities and testing them in a REPL environment and that with dynamic programming languages I should learn test-driven development, what do you think of these tips?

And back to the title question: What should I change in my mindset when develop in a dynamic programming language when I coming from a static programming language background?

Any help would be appreciated, thanks in advance

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/Aslan-Ray
πŸ“…︎ Jan 25 2019
🚨︎ report
TaffyScript - A Simple Dynamic Programming Language Written in C# That Compiles to a CIL Assembly (x-post from r/csharp) github.com/mystborn/Taffy…
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/Mystb0rn
πŸ“…︎ Mar 02 2018
🚨︎ report
Why Dynamic Programming Languages Are Slow williamedwardscoder.tumbl…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/grauenwolf
πŸ“…︎ Mar 19 2012
🚨︎ report
The End of Dynamic Languages (x-post from /r/programming) elbenshira.com/blog/the-e…
πŸ‘︎ 14
πŸ’¬︎
πŸ‘€︎ u/drunkenfaggot
πŸ“…︎ Nov 24 2015
🚨︎ report
MANOOL: Practical homoiconic, dynamic programming language with expressive power and a functional core, under 10K LOC in C++11 - "MAnool is Not an Object-Oriented Language!" github.com/rusini/manool/…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/alex-manool
πŸ“…︎ Aug 03 2019
🚨︎ report
Does it matter if a language is dynamic typing in functional programming?

Some friends and I will make a functional programming study group. We are still in the stage of deciding what will be the first functional programming language that we will learn.
The two strongest candidates are F# and Elixir, the majority of my companions want the Elixir lang, my vote goes to F# because I come from the C#/.Net camp but mainly because I feel more confortable progamming with static typing is for me like a nice safety net.

My limited experience with dynamic typing is with Javascript and maybe that is why I try to avoid working with dynamic typing languages because is not so pleasure to me with all that mutability, and that last word made me wonder if my only problem with dynamic programming is mutability, does it matter in functional programmig which most of the time is immutable by default if a programming language is dynamic typing?

The other question would be Does dynamic programmig have any disadvantage in FP lang like in any imperative lang?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Aslan-Ray
πŸ“…︎ Jan 05 2018
🚨︎ report
Dynamic Programming in Haskell

Hi Reddit! I really enjoy writing Haskell code and maintain a small blog where I write about my experiences with coding. Today's post explores a way for implementing dynamic programming algorithms in an Haskell idiomatic manner. Take a look if this interests you!

https://fpunfold.com/2022/01/09/haskell-dp.html

πŸ‘︎ 21
πŸ’¬︎
πŸ‘€︎ u/RangerFinal
πŸ“…︎ Jan 09 2022
🚨︎ report
How to learn Dynamic Programming when practice is too difficult?

I have attempted several DP problems on leetcode, and I cannot solve them at all (except the ones that state or imply Fibonacci in the name). Some times I can't even come up with the brute force solution like you're supposed to at first, since it doesn't work or I end up blanking. I know the memoization and recurrence. This is incredibly discouraging and frustrating, and I end up having to look at the solution and then feel even more discouraged since the algorithm was not very difficult. I have briefly watched and read about DP processes and concepts, but I fear watching and reading more without being able to solve some of these "easy" and some of the easier "medium" leetcode DP problems will lead to further lack of understanding. Then, what should I do at this point if practice (through coding challenges) is not a feasible option?

πŸ‘︎ 75
πŸ’¬︎
πŸ‘€︎ u/ParadoxThief
πŸ“…︎ Jan 03 2022
🚨︎ report
C is one of the easiest programming languages
πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/4gbRAMisstupid
πŸ“…︎ Dec 23 2021
🚨︎ report
Are there any programming languages that allow both static and dynamic typing

I have noticed that there is a real trade off with static and dynamic typing languages.

For languages like C I like the speed that is offered by allowing commands to be executed immediately without having to interpret the input and then allocate the space needed, this way things like compression or calculations can be done way faster.

But on the other hand dynamic languages like python, JS and ruby allow more flexibility such as processing objects with an array of potential variables.

And I was thinking it would be great if there was a language that allows variables to be typed if specified such as intvar or something. But if not specified it creates a generic data type. I know JS kinda has that with some type casting for buffers, but it it seems more like an add on.

πŸ‘︎ 11
πŸ’¬︎
πŸ“…︎ Jul 10 2015
🚨︎ report
Zig programming language 0.9.0 released ziglang.org/download/0.9.…
πŸ‘︎ 920
πŸ’¬︎
πŸ‘€︎ u/dh44t
πŸ“…︎ Dec 21 2021
🚨︎ report
DerelictCUDA: dynamic bindings to the CUDA library for the D programming language github.com/derelictorg/de…
πŸ‘︎ 68
πŸ’¬︎
πŸ‘€︎ u/andralex
πŸ“…︎ Oct 17 2014
🚨︎ report
[OC] Which programming language is required to land a data job at Meta (Facebook)
πŸ‘︎ 15k
πŸ’¬︎
πŸ‘€︎ u/Left_Ad8361
πŸ“…︎ Nov 17 2021
🚨︎ report
Should i change programming language?

Im am 15 years old and i want to be a game developer but i have already started learning python which is not good for games. Should i switch to another language or keep going with python and why?

Edit : i want to thank all of you for your time and suggestions because it was hard to do it individually.

πŸ‘︎ 258
πŸ’¬︎
πŸ‘€︎ u/Nickolas0_0
πŸ“…︎ Jan 06 2022
🚨︎ report
Ask Programming.Reddit: Why is Lisp faster than other dynamic languages? programming.reddit.com/in…
πŸ‘︎ 39
πŸ’¬︎
πŸ‘€︎ u/mattculbreth
πŸ“…︎ Dec 26 2007
🚨︎ report
Compiling dynamic programming languages notes.eatonphil.com/compi…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/qznc_bot
πŸ“…︎ Sep 03 2018
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.