Skip to content

Commit e2f6993

Browse files
committed
Make "Kotlin" live
Closes #151
1 parent 7fa9940 commit e2f6993

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

config/data/langs.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -975,13 +975,12 @@ example = '''
975975
'''
976976

977977
[Kotlin]
978-
args = [ '/kotlinc/bin/kotlin', '-e', '$code' ]
979-
env = [ 'LC_ALL=C.UTF-8', 'PATH=/usr/bin:/bin:/opt/jdk/openjdk/bin' ]
980-
experiment = 151
981-
size = '452 MiB'
982-
version = '2.0.21'
983-
website = 'https://kotlinlang.org'
984-
example = '''
978+
args = [ '/kotlinc/bin/kotlin', '-e', '$code' ]
979+
env = [ 'LC_ALL=C.UTF-8', 'PATH=/usr/bin:/bin:/opt/jdk/openjdk/bin' ]
980+
size = '452 MiB'
981+
version = '2.0.21'
982+
website = 'https://kotlinlang.org'
983+
example = '''
985984
// Printing
986985
println("Hello, World!")
987986

discord/bot.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ func init() {
6464
}
6565

6666
// TODO Make this dynamic based on hole/lang age.
67-
func channel(_ *config.Hole, _ *config.Lang) string {
67+
func channel(_ *config.Hole, lang *config.Lang) string {
68+
if lang.ID == "kotlin" {
69+
return chanFreshID
70+
}
6871
return chanSourID
6972
}
7073

sql/a-schema.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ CREATE TYPE lang AS ENUM (
6767
'civet', 'clojure', 'cpp', 'cobol', 'coconut', 'crystal', 'd', 'dart',
6868
'elixir', 'f-sharp', 'factor', 'fish', 'forth', 'fortran', 'go',
6969
'golfscript', 'haskell', 'hexagony', 'j', 'janet', 'java', 'javascript',
70-
'jq', 'julia', 'k', 'lisp', 'lua', 'nim', 'ocaml', 'pascal', 'perl',
71-
'php', 'powershell', 'prolog', 'python', 'r', 'raku', 'rockstar', 'ruby',
72-
'rust', 'scheme', 'sed', 'sql', 'swift', 'tcl', 'tex', 'v', 'viml',
73-
'wren', 'zig'
70+
'jq', 'julia', 'k', 'kotlin', 'lisp', 'lua', 'nim', 'ocaml', 'pascal',
71+
'perl', 'php', 'powershell', 'prolog', 'python', 'r', 'raku', 'rockstar',
72+
'ruby', 'rust', 'scheme', 'sed', 'sql', 'swift', 'tcl', 'tex', 'v',
73+
'viml', 'wren', 'zig'
7474
);
7575

7676
CREATE TYPE medal AS ENUM ('unicorn', 'diamond', 'gold', 'silver', 'bronze');

0 commit comments

Comments
 (0)