Questions tagged [metalanguage]
27 questions
12
votes
1 answer
Understanding foldl in ML
I need to write a function that takes a list of strings and finds the largest string in the list. The catch is it needs to iterate through the list using List.foldl and cannot use recursive calls except for those in the library function of…

Andrew McLaughlin
- 141
- 1
- 2
- 4
8
votes
1 answer
Module meta-language in Racket
I'm trying to write in Racket a module meta-language mylang, which accepts a second language to which is passes the modified body, such that:
(module foo mylang typed/racket body)
is equivalent to:
(module foo typed/racket transformed-body)
where…

Suzanne Soy
- 3,027
- 6
- 38
- 56
4
votes
1 answer
Strategies for sharing common business logic across different programming languages
Having a monolithic business application with complex business logic implemented in Visual Dataflex, we are facing the challenge of maintaining our business logic across programming languages as certain features are written in other programming…

Ola Eldøy
- 5,720
- 7
- 49
- 82
4
votes
3 answers
Best way to implement a meta language compiling down to PHP
I've been working on the specification / kitchensink for a meta language that can compile down to PHP for some time now. Now I want to begin building the thing. Before I have implemented tiny DSL's using PHP_Lexergenerator and PHP_Parsergenerator…

Rune Kaagaard
- 6,643
- 2
- 38
- 29
3
votes
2 answers
Metalanguage to define workflow of HTML application
I'm searching for an way to language independently express the workflow of an HTML application. If a user fills in certain values in a form, another form should be displayed.
Further if values are filled in, in this child-forms new parts of these…

Jeremy S.
- 6,423
- 13
- 48
- 67
3
votes
1 answer
Fragment function seems properly written but Metal complains
TL;DR: Metal doesn't seem to detect what my vertex shader returns
I have these two functions written in MSL :
vertex float4 base_image_rect(constant float4 *pos [[buffer(0)]],
uint vid [[vertex_id]]) {
…

Pop Flamingo
- 3,023
- 2
- 26
- 64
2
votes
2 answers
Why is ML called Meta-Language?
How is ML (and its variants e.g. SML) a metalanguage. What is the object language that ML describes? Is it just because functions are considered values, therefore code is treated in the same way as data?

Gepapado
- 333
- 2
- 5
- 11
2
votes
3 answers
Metalanaguage to describe the Model from MVC to generate identical client and server side code
I am looking for a powerful meta-language to describa behaviour for an application i intend to use in offline mode (google-gears + javascript) and server side sqlite + (php/ruby/java etc) and looking for a good format to describe the model's…

Czimi
- 2,494
- 17
- 14
2
votes
0 answers
MTLPixelFormatInvalid in XCode8 Swift 2.2
I have created a simple metal code to display some 3D object. Now the code is working fine in my mac.
When I shifted it to another Identical Mac machine with same xcode 8 installed, its giving me the following…

sabby
- 99
- 7
2
votes
0 answers
Silhouette Outline Shader Modifier via Metal in SceneKit
Shader modifiers have multiple entry points. Following this: http://wiki.unity3d.com/index.php?title=Silhouette-Outlined_Diffuse I should have two entry points, one after the Vertex shader (SCNShaderModifierEntryPointSurface) and the frag shader…

Oxcug
- 6,524
- 2
- 31
- 46
2
votes
2 answers
Programmatically convert synchronous code to asynchronous code
I am writing a parser for a metalanguage to be run in the browser. The metalanguage is blocking, but needs to be converted to nonblocking in the interpreter due to the limitations of javascript.
For example, the metalanguage code might look…

twinlakes
- 9,438
- 6
- 31
- 42
1
vote
1 answer
Understanding "let" & "in" in ML programming
My teacher recently went over a function in ML that uses "let" & "in" but the body of the function is confusing to me as I dont understand how they work together to produce the result. The function takes a list of vegetables in your garden and…

Muu
- 21
- 1
- 5
1
vote
1 answer
How do I put the code `cons[A;B]` in a repl, run it, and see the output `(A . B)`?
I found a LISP 1.5 Manual with some code in it.
This one is from Section 1.2
Examples
cons[A;B]=(A . B)
From reading through the manual it looks like the function cons is taking two atoms as input arguments, A and B, and outputting an…

mbigras
- 7,664
- 11
- 50
- 111
1
vote
1 answer
Is there a complete metalanguage?
Just asking a rather simple question, but my search in google was.. unsuccessful. I'm searching right now for a programming metalanguage who'd be complete. In short, is there any such language in which every other programming language (java, c,…

Lusheez
- 77
- 8
1
vote
2 answers
@result_list = grep { test($_) } @unfiltered_list in other languages?
One of the features I love in Perl is the LISP-inspired (?) ability to filter content out of a list of things with the simple syntax
@result_list = grep { test($_) } @unfiltered_list;
where test function will be applied to all the items of…

PypeBros
- 2,607
- 24
- 37