Questions tagged [oz]

Oz is a multiparadigm programming language including logic, functional (both lazy and eager), imperative, object-oriented, constraint, distributed, and concurrent programming.

Oz is a multiparadigm programming language including logic, functional (both lazy and eager), imperative, object-oriented, constraint, distributed, and concurrent programming.

The major strengths of Oz are in constraint programming and distributed programming. Due to its factored design, Oz is able to successfully implement a network-transparent distributed programming model. This model makes it easy to program open, fault-tolerant applications within the language. For constraint programming, Oz introduces the idea of "computation spaces"; these allow user-defined search and distribution strategies orthogonal to the constraint domain.

A canonical book on Oz programming is Concepts, Techniques, and Models of Computer Programming.

For more information, see the Mozart programming system, which is a multiplatform implementation of the Oz programming language.

110 questions
2
votes
1 answer

Why do i get keep on getting variable not introduced in Oz programming?

I keep on getting an error, variable MainMirror Not introduced. How do I fix this? fun {MainMirror Int} local Mirror in fun {Mirror Int Acc} if Int == 0 then Acc else Acc + {Mirror (Int div 10) (Acc mod 10)} end …
user4905778
2
votes
1 answer

Missing else clause in Oz

The Oz Compiler launch an exception "Missing Else Clause" when I try to compile this code, can anybody tell me why? Here is my code : declare fun {Numero x y} local NumeroAux in fun {NumeroAux x y Acc} if {And (x == 0) (y == 0)} then…
anpar
  • 143
  • 7
2
votes
1 answer

Mozart Ozcar Debugger Error

So im studying, and i need to run Ozcar debugger including on Mozart, i go to Oz menu and first i pick feed buffer, after that i pick Start Debugger, the compiler show me the next message: local A B in A = 5 B = 6 {Browse A+B} end %…
mando100
  • 49
  • 2
  • 5
2
votes
1 answer

can't see output on emacs running oz (mozart 2)

I started an online course which requires using emacs editor with oz language. OS - Windows 7 when i feed the code, it seems as if the code is compiled correctly but nothing is showed in the emulator window. In the messages buffer i get the…
tamiros
  • 339
  • 1
  • 4
  • 10
2
votes
3 answers

Convert list to a string in Oz?

How to convert a list to a string in Oz? I have a list of characters I need to convert to a string and I didn't see any concatenation operator in the Oz documentation.
el diablo
  • 2,647
  • 2
  • 20
  • 22
2
votes
0 answers

Translating Python code to Oz

Can somebody help me in translating this piece of Python code to Oz language? def rep_subset_conditional(S, tset, index, t, count): for i in xrange(index, len(S)): tset += [S[i]] tsum = sum(tset) if tsum == t: …
batman
  • 703
  • 1
  • 9
  • 27
2
votes
1 answer

Is there a way to store function/procedure calls in Oz?

I want to know if there is a way to bind a whole function call in a variable in Oz. For example, I do have: fun {F1 A1 A2} A1+A2 end and a local variable X. What I want to do, is store the call (as-is) {F1 1 2} in X and not its result: 3, so…
2
votes
1 answer

Ports and Cells in Oz

I'm taking a teach-yourself course at the university at the moment and noticed I bitten off a bit more than I can chew. The course is about the Oz programming language and I'm reading an e-book about it to try to get to know it better and I'm trying…
RDM
  • 4,986
  • 4
  • 34
  • 43
1
vote
1 answer

Mozart Programming: Integer to Hexadecimal conversion in OZ

I'm learning Mozart and I have a question, Does anyone knows how to convert a Integer to an Hexadecimal without the manual-mathematical table conversion. Is there any included function/module to do that? I know how to convert the other way: …
1
vote
1 answer

Expression Evaluation Oz/Mozart

I am trying to create a function that takes an expression and evaluates it. Expressions can contain the following operations: Integers - described by a tuple int(N), where N is an integer. Addition - described by a tuple add(X Y), where both X and…
Nhabbott
  • 166
  • 1
  • 3
  • 13
1
vote
1 answer

Mozart/Oz configure issue on mac os x

I am trying to build Mozart/Oz on Mac os x Mojave using the following link: https://github.com/mozart/mozart and been getting the following configure error. GNU MP lib not found. I installed gmp using homebrew and also tried…
1
vote
0 answers

Helping functor environnement oz?

I got a parse error on the line 240 which is: GUI_port={GUI.portWindow}. I don't understand everything was getting well before. Can someone help me, there is not any other problem for compiling. functor import GUI at 'GUI.ozf' Input at…
1
vote
0 answers

Oz dictionary with composite typed keys

The CTM book says, "A dictionary is a mapping from simple constants (atoms, names, or integers) to partial values." As expected, when we execute this code: declare Memo = {NewDictionary} try {Dictionary.put Memo 3 1} catch E then skip end try…
prash
  • 324
  • 3
  • 14
1
vote
1 answer

Oz Installation Problems

I'm having to install Oz on my computer for a class. I have Windows 10. I have already installed emacs and it runs fine. However, when I try to to install Oz (the latest version from Sourceforge) it gives me an error "CoCreateInstance failed". No…
1
vote
1 answer

How to create non-numeric constraints in Mozart/Oz?

I want to implement a CSP with the variables' domain being non-numeric (something like [lisa ann mary joanna] ). Is there a way to achieve this in Mozart/Oz?
mhourdakis
  • 179
  • 8