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
10
votes
1 answer

How are dynamic languages JITted?

In dynamic languages, how is dynamically typed code JIT compiled into machine code? More specifically: does the compiler infer the types at some point? Or is it strictly interpreted in these cases? For example, if I have something like the following…
Dan
  • 12,409
  • 3
  • 50
  • 87
9
votes
9 answers

Are dynamic languages slower than static languages?

Are dynamic languages slower than static languages because, for example, the run-time has to check the type consistently?
Benny
  • 8,547
  • 9
  • 60
  • 93
9
votes
1 answer

Is there a language that allows both static and dynamic typing?

There are a lot of questions on SO about static vs dynamic typing, but I haven't found a lot about a language having both. Let me explain. It seems that dynamically typed languages have an edge when it comes to rapid prototyping, e.g. Python or…
jrouquie
  • 4,315
  • 4
  • 27
  • 43
9
votes
5 answers

Can Perl be "statically" parsed?

An article called "Perl cannot be parsed, a formal proof" is doing the rounds. So, does Perl decide the meaning of its parsed code at "run-time" or "compile-time"? In some discussions I've read, I get the impression the arguments stem from imprecise…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
8
votes
3 answers

Is adding attributes dynamically frowned upon in Python?

In Python, you can assign an arbitrary attribute from outside the defining class: class Profile(models.Model): user = models.OneToOneField(User) name = models.CharField(max_length=140) p = Profile() p.age = 42 The underlying mechanism…
Dan Abramov
  • 264,556
  • 84
  • 409
  • 511
8
votes
6 answers

Interpreters and Dynamically Typed Languages

Why are programs that have dynamically typed languages usually interpreted rather than compiled?
8
votes
3 answers

Interface in a dynamic language?

Interface (or an abstract class with all the methods abstract) is a powerful weapon in a static-typed language such as C#, JAVA. It allows different derived types to be used in a uniformed way. Design patterns encourage us to use interface as much…
Shuo
  • 4,749
  • 9
  • 45
  • 63
8
votes
4 answers

Domain Driven Design efforts in dynamic languages?

Are you aware of any DDD efforts in a dynamic language ? Practical resources on DDD tend to decrease quite dramatically when straying from enterprise-oriented solutions (a google search exluding C#, .NET, ASP and Java yields 10 times less results),…
julien
  • 1,879
  • 2
  • 20
  • 29
7
votes
2 answers

How do I attach a method to a dynamically-created C# type at runtime?

I have been saddled with using an in-house data access library that is effectively XML passed to a stored procedure, which returns XML. There is nothing I can do about this. I tried to get ActiveRecord approved, but my request was declined. However,…
Chris McCall
  • 10,317
  • 8
  • 49
  • 80
7
votes
2 answers

Is CouchDB best suited for dynamic languages?

I'm familiar with CouchDB and the idea of mapping its results to Scala objects, as well as find some natural way to iteract with it, came immediatly. But I see that Dynamic languages such as Ruby and Javascript do things very well with the…
paulosuzart
  • 1,082
  • 2
  • 13
  • 28
7
votes
4 answers

How to Make sure the code is still working after refactoring ( Dynamic language)

How to make sure that code is still working after refactoring ( i.e, after variable name change)? In static language, if a class is renamed but other referring class is not, then I will get a compilation error. But in dynamic language there is no…
Graviton
  • 81,782
  • 146
  • 424
  • 602
7
votes
13 answers

Uses for Dynamic Languages

My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without…
7
votes
2 answers

How programs written in interpreted languages are executed if they are never translated into machine language?

Computers can only understand machine language. Then how come interepreters execute a program directly without translating it into machine language? For example:
7
votes
3 answers

Making the Case for IronRuby and IronPython

I guess everyone has already heard the news about some key developers leaving the Dynamic Languages team due to what they perceive as waning support for Dynamic Languages at Microsoft. I'm quite fond of Python and try to use it often. So, by…
7
votes
7 answers

Scripting Languages

I am looking for a good scripting language to link to my program. I am looking for 2 important attributes: Scripting language should be hard linked into the executable (not requiring 3rd party installations). This is important to me to simplify…
1 2
3
10 11