Questions tagged [dynamic-languages]

Dynamic languages are a class of high-level programming languages whos behaviors is determined at runtime rather than compile time.

157 questions
7
votes
2 answers

Stack and heap in PHP?

I am learning about operating systems and the thing that I do not understand exactly are heaps and stacks. I know the benefits and how each works, but in the case of dynamic languages I can not figure out how is the stack allocated. In static typed…
gorgi93
  • 2,457
  • 8
  • 30
  • 53
7
votes
2 answers

How to access locals through stack trace? (Mimicking dynamic scope)

Background Even though it's possible to compile C# code at runtime, it's impossible to include and run the generated code in the current scope. Instead all variables have to be passed as explicit parameters. Compared with dynamic programming…
Dario
  • 48,658
  • 8
  • 97
  • 130
7
votes
5 answers

What is the difference between dynamic languages and functional languages?

I often find developers use the terms functional language and dynamic language together, and wonder why are they always being put together. What are the differences between them? Can a language be both dynamic and functional? Do they complement…
Abraham Shilon
6
votes
1 answer

Overload Resolution in C# 4.0 using dynamic types

I don't have access to the C# 4.0 preview yet. But I am curious, what does the C# 4.0 runtime do when invoking an overloaded method in the following case. Does it resolve to the generic overload ... or the specialized overload. public class…
LBushkin
  • 129,300
  • 32
  • 216
  • 265
6
votes
3 answers

Dynamic vs Static Compiler (JavaScript)

I'm currently writing a JavaScript compiler in ANTLR+Java. I've read questions here on Stack Overflow on how to proceed with the execution - and the answer is always that it would be way too hard to do a static compilation (without JIT-information)…
6
votes
3 answers

top gotchas for someone moving from a static lang (java/c#) to dynamic language like python

What are the top gotchas for someone moving from a static lang (java/c#) to dynamic language like python? It seems cool how things can be done, but renaming a method, or adding/removing parameters seems so risky! Is the only solution to write tests…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
6
votes
5 answers

Why is the "Dynamic" part of Dynamic languages so good?

Jon Skeet posted this blog post, in which he states that he is going to be asking why the dynamic part of languages are so good. So i thought i'd preemptively ask on his behalf: What makes them so good?
RCIX
  • 38,647
  • 50
  • 150
  • 207
6
votes
10 answers

Under what circumstances are dynamic languages not appropriate?

What factors indicate that a project's solution should not be coded in a dynamic language?
Rory Becker
  • 15,551
  • 16
  • 69
  • 94
6
votes
1 answer

programmatically add property do ActionScript Object (metaprogramming)

I have an AS3 Object: {p1:"..", p2:".."} I want con create another object that contains the first one in a property whose name is defined by a variable: var propertyName:String = "myName"; var myObj = new…
luca
  • 12,311
  • 15
  • 70
  • 103
5
votes
4 answers

can anybody explain C C++ Java regarding dynamic or static language

can anybody explain C C++ Java regarding dynamic typed or static typed language. I read somewhere that C C++ and Java are all static language. But I recall there are other opinions about these. Very confused. Thanks!
Josh Morrison
  • 7,488
  • 25
  • 67
  • 86
5
votes
0 answers

Why is my perl script an order of magnitude faster than the equivalent python code

I've recently taken up Python3 and was stumped by how much slower than other comparable dynamic languages (mainly Perl) it is. While trying to learn Python I did several online coding challenges and Python would often be at least 10x slower than…
Annie May
  • 69
  • 11
5
votes
6 answers

Which Dynamic .NET language makes more sense to learn, Iron Ruby or Iron Python?

I'd like to take some time to learn more about dynamic languages built on top of the DLR and I'm not sure which language would be better to learn. Having limited time, I really only have time to look learn one of them. Any opinions on which of the…
5
votes
5 answers

Best dynamic language to pair with Java on a Java project

What is the best dynamic language to pair with Java on a large Java project? We are considering using a dynamic language for tests, controllers, services. Some options are Groovy, JRuby or Jython. What are the pros and cons of each for this? …
Alex Baranosky
  • 48,865
  • 44
  • 102
  • 150
5
votes
3 answers

Getting started programming in dynamic languages in Android ((J)Ruby, Clojure...)

I've been looking around, and I can't seem to find any definitive answer or headway that seems "up to date". I've seen some interesting projects like Mirah (formerly Duby), and am looking into it a bit. I've seen JRuby unsuccessfully used to…
Justin L.
  • 13,510
  • 5
  • 48
  • 83
5
votes
6 answers

Aside from performance concerns, why is Java still chosen over Groovy/JRuby etc.?

[This is an empirical question about the state-of-the-art: I am NOT asking if Java is cooler or less cool than the dynamic languages that work in the JVM.] Aside from cases where performance is a main decision factor, do companies/developers still…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421