Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ii8 committed Oct 28, 2023
1 parent 4823eb6 commit 7abee36
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions Lang.gren.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type alias Language =
, concurrency : Array Concurrency
, runtime : Array Runtime

, elegance : Elegance
, orthogonality : Orthogonality
, example : String
}

Expand Down Expand Up @@ -188,9 +188,9 @@ def(Runtime, runtime,
Hotswapping, Hotswapping, Parts of the program can be updated while it is running,
VirtualMachine, Virtual Machine, The program is executed inside a virtual machine)

def(Elegance, elegance,
Elegance,
«Disagree? Too bad, you're wrong»,
def(Orthogonality, ortho,
Orthogonality,
The language is consistent with few exceptions and few primitive constructs relative to it's expressive power,
Impressive, Impressive, The work of a genius,
Acceptable, Acceptable, Works well enough,
Embarrassing, Embarrassing, Design by committee or by fool)
12 changes: 6 additions & 6 deletions Main.gren
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type alias Query =
, features : Dict String Trilean
, concurrency : Dict String Trilean
, runtime : Dict String Trilean
, elegance : Array Lang.Elegance
, ortho : Array Lang.Orthogonality
, helloworld : Int
}

Expand All @@ -71,7 +71,7 @@ emptyQuery =
, features = Dict.empty
, concurrency = Dict.empty
, runtime = Dict.empty
, elegance = []
, ortho = []
, helloworld = 1000
}

Expand Down Expand Up @@ -123,7 +123,7 @@ type Msg
| ToggleFeature Lang.Feature
| ToggleConcurrency Lang.Concurrency
| ToggleRuntime Lang.Runtime
| ToggleElegance Lang.Elegance
| ToggleOrtho Lang.Orthogonality
| DragHelloWorld Int

select : a -> Maybe a -> Maybe a
Expand Down Expand Up @@ -185,7 +185,7 @@ update msg model =
ToggleFeature o -> query model (\q -> { q | features = toggle3 (Lang.featName o) q.features })
ToggleConcurrency o -> query model (\q -> { q | concurrency = toggle3 (Lang.concurrencyName o) q.concurrency })
ToggleRuntime o -> query model (\q -> { q | runtime = toggle3 (Lang.runtimeName o) q.runtime })
ToggleElegance o -> query model (\q -> { q | elegance = toggle o q.elegance })
ToggleOrtho o -> query model (\q -> { q | ortho = toggle o q.ortho })
DragHelloWorld i -> query model (\q -> { q | helloworld = i })


Expand Down Expand Up @@ -230,7 +230,7 @@ view m =
, selectArray m.query.status Lang.status ToggleStatus
, selectArray m.query.platform Lang.platform TogglePlatform
, selectArray m.query.spec Lang.spec ToggleSpec
, selectArray m.query.elegance Lang.elegance ToggleElegance
, selectArray m.query.ortho Lang.ortho ToggleOrtho
, selectArray m.query.everything Lang.everything ToggleEverything
, div [ class "grow pr-1" ] [ ]
]
Expand Down Expand Up @@ -461,7 +461,7 @@ filter q l
&& filterAll q.features l.features Lang.featName
&& filterAll q.concurrency l.concurrency Lang.concurrencyName
&& filterAll q.runtime l.runtime Lang.runtimeName
&& filterAny q.elegance l.elegance
&& filterAny q.ortho l.orthogonality
&& filterHelloWorld q l

filterDomain : Query -> Language -> Bool
Expand Down
2 changes: 1 addition & 1 deletion lang/c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ Goto, Macros, MutableState, NominalTyping ]
concurrency = [ HardwareThreads ]
runtime = [ Stack ]

elegance = Embarrassing
orthogonality = Embarrassing
example =
"""
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion lang/go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ Goto, MutableState, NominalTyping, TypeInference, Introspection ]
concurrency = [ HardwareThreads, Coroutines, Channels ]
runtime = [ Stack, Scheduler, GarbageCollector, ErrorHandling ]

elegance = Embarrassing
orthogonality = Embarrassing
example =
"""
package main
Expand Down
2 changes: 1 addition & 1 deletion lang/haskell
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ Closures, TypeInference, NominalTyping, Lazy, OffSideRule ]
concurrency = [ STM ]
runtime = [ Stack, Scheduler, GarbageCollector, ErrorHandling, Abstraction ]

elegance = Acceptable
orthogonality = Acceptable
example =
"""
import qualified Data.Time as Time
Expand Down
2 changes: 1 addition & 1 deletion lang/java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ MutableState, NominalTyping, Exceptions, Introspection, AdHocPoly ]
concurrency = [ HardwareThreads ]
runtime = [ Stack, Interpreter, Scheduler, GarbageCollector, ErrorHandling, Abstraction, VirtualMachine ]

elegance = Embarrassing
orthogonality = Embarrassing
example =
"""
public class Antiprime {
Expand Down
2 changes: 1 addition & 1 deletion lang/lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ Goto, Closures, MutableState ]
concurrency = [ Coroutines ]
runtime = [ Stack, Interpreter, Scheduler, GarbageCollector, ErrorHandling, Abstraction, VirtualMachine ]

elegance = Acceptable
orthogonality = Acceptable
example =
"""
local num = tonumber(arg[1]) or 4
Expand Down
2 changes: 1 addition & 1 deletion lang/mercury
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ Exceptions, TypeInference, NominalTyping, Closures ]
concurrency = []
runtime = [ Stack, ErrorHandling, Unifier, Solver, GarbageCollector ]

elegance = Acceptable
orthogonality = Acceptable
example =
"""
:- module beer.
Expand Down
2 changes: 1 addition & 1 deletion lang/pony
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ MutableState, NominalTyping, StructuralTyping, Exceptions, Parametr
concurrency = [ Actors, MessagePassing ]
runtime = [ Stack, Scheduler, GarbageCollector, ErrorHandling, Abstraction ]

elegance = Impressive
orthogonality = Impressive
example =
"""
use "collections"
Expand Down
2 changes: 1 addition & 1 deletion lang/twelf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ NominalTyping, TypeInference, Dependent ]
concurrency = [ ]
runtime = [ Interpreter, Unifier, Solver ]

elegance = Impressive
orthogonality = Impressive
example =
"""
%% natural numbers
Expand Down
2 changes: 1 addition & 1 deletion lang/x86-64
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ features = [ Goto, Macros, MutableState, Reflection, Introspection ]
concurrency = [ HardwareThreads ]
runtime = [ ]

elegance = Embarrassing
orthogonality = Embarrassing
example =
"""
.globl _start
Expand Down

0 comments on commit 7abee36

Please sign in to comment.