Questions tagged [stackless]

Stackless refers to a code implementation that does not use a call stack. Haskell is an example of a stackless language

Stackless refers to a code implementation that does not use a call stack. Haskell is an example of a stackless language

46 questions
64
votes
8 answers

How does a stackless language work?

I've heard of stackless languages. However I don't have any idea how such a language would be implemented. Can someone explain?
rlbond
  • 65,341
  • 56
  • 178
  • 228
25
votes
7 answers

Are there stackless or heapless implementation of C++?

C++ standard does not mention anything about the stack or the heap, they are implementation specific, which is true. Even though they are not part of the C++ standard, we end up using them anyway, so much that it's like they are part of the language…
Mesop
  • 5,187
  • 4
  • 25
  • 42
22
votes
9 answers

Has the use of C to implement other languages constrained their designs in any way?

It seems that most new programming languages that have appeared in the last 20 years have been written in C. This makes complete sense as C can be seen as a sort of portable assembly language. But what I'm curious about is whether this has…
guidoism
  • 7,820
  • 8
  • 41
  • 59
18
votes
2 answers

What does it really mean that a programming language is stackless?

According to this answer https://stackoverflow.com/questions/551950/what-stackless-programming-languages-are-available/671296#671296 all of these programming languages are stackless Stackless Python PyPy Lisp Scheme Tcl Lua Parrot VM What does it…
tatsuhirosatou
  • 25,149
  • 14
  • 39
  • 40
10
votes
2 answers

Haskell implemented without a stack?

from How does a stackless language work? Haskell (as commonly implemented) does not have a call stack; evaluation is based on graph reduction. Really? That's interesting, because while I've never experienced it myself, I've read that if you don't…
TheIronKnuckle
  • 7,224
  • 4
  • 33
  • 56
10
votes
2 answers

blocking channels vs async message passing

I've noticed two methods to "message passing". One I've seen Erlang use and the other is from Stackless Python. From what I understand here's the difference Erlang Style - Messages are sent and queued into the mailbox of the receiving process. From…
Timothy Baldridge
  • 10,455
  • 1
  • 44
  • 80
9
votes
2 answers

Which programming languages support hot code swapping and/or sandboxing?

I would like to write a web based MMO game that will allow users to write AI and run it as part of the game. I plan to use Html5 for graphics and want this to be web based so it can be accessed from smartphones. I need to find a programming…
Xavier
  • 311
  • 1
  • 3
  • 5
8
votes
3 answers

Good python library for designing a mmo? Actor based design

i m trying to design a mmo game using python... I have evaluated stackless and since it is not the general python and it is a fork, i dont want to use it I am trying to chose between pysage candygram dramatis and parley any one try any of these…
user40019
  • 91
  • 2
  • 5
7
votes
2 answers

What C-integration problems arise with stackless VM implementations?

By stackless VM I mean implementation which maintains its own stack on the heap instead of using system "C-stack". This has a lot of advantages like continuations and serializable state, but also has some disadvantages when it comes to C-bindings,…
Oleg Andreev
  • 486
  • 3
  • 9
5
votes
1 answer

Stackless Python development using Python Tools for Visual Studio

Does the Python Tools for Visual Studio Beta, which includes support for CPython, allow you to develop in Stackless Python? If so, could you expand your answers to include any of the steps necessary to set a Stackless Python environment up beyond…
Kynth
  • 2,597
  • 1
  • 18
  • 24
4
votes
1 answer

Why PyPy 1.7 desn't implement "stackless" stack?

Default build of PyPy 1.7 with stackless included in, does not offer the ability to run with no recursion depth limit (in straight way). Why? Previus builds of PyPy with stackless support continuation style of function call and tail recursion. I'm…
4
votes
2 answers

How to track memory for a python script

We have a system that only has one interpreter. Many user scripts come through this interpreter. We want put a cap on each script's memory usage. There is only process, and that process invokes tasklets for each script. So since we only have one…
theRealWorld
  • 1,188
  • 2
  • 8
  • 23
4
votes
2 answers

In stackless Python, can you send a channel over a channel?

I do not have stackless currently running, so I can not try this myself. import stackless ch1 = stackless.channel() ch2 = stackless.channel() ch1.send(ch2) ch3 = ch1.receive() Are ch2 and ch3 then the same channel? Say: text =…
pi.
  • 21,112
  • 8
  • 38
  • 59
4
votes
4 answers

What challenges promote the use of parallel/concurrent architectures?

I am quite excited by the possibility of using languages which have parallelism / concurrency built in, such as stackless python and erlang, and have a firm belief that we'll all have to move in that direction before too long - or will want to…
Simon
  • 78,655
  • 25
  • 88
  • 118
4
votes
1 answer

What's the advantage of stack-less Python's microthread than Lua's coroutine in state machine implementation for game?

Any advantage on stack-less python implentation than Lua's coroutine? What's the difference of them?
eonil
  • 83,476
  • 81
  • 317
  • 516
1
2 3 4