Skip to content

Conversation

@ryleymao
Copy link

@ryleymao ryleymao commented Oct 30, 2025

Added language_basics.json for Kotlin 1.5 covering all basic language concepts.

Changes

  • Created /web/thesauruses/kotlin/1.5/language_basics.json
  • Documented type system, paradigms, abstraction level, execution method
  • Added memory management, entry points, comment styles
  • Included standard library and framework support examples
  • Added Hello World minimal program

Resolves #737

  • I claimed any associated issue(s) and they are not someone else's
  • I have looked at documentation to ensure I made any revisions correctly
  • I tested my changes locally to ensure they work
  • For language files, I have validated the edited files are valid JSON and data shows up correctly
  • For website code edits, I have added or edited any appropriate unit tests for my changes

Added language_basics.json for Kotlin 1.5 covering:
- Type system (statically typed)
- Paradigms (OOP, functional, procedural)
- Abstraction level (high-level)
- Execution method (compiled)
- Memory management (automatic/GC)
- Entry points (main function, script files)
- Comments (single-line, multi-line, KDoc, special)
- Library support (standard libs, frameworks)
- Hello World minimal program

Resolves #737
@geekygirlsarah
Copy link
Member

You took the checklist out of the PR template. Did you test this on your own first?

Copy link
Member

@geekygirlsarah geekygirlsarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can go back and edit the parts to show whether the language is or isn't, or has or hasn't have each of these concepts/features, I'd approve this!

If you can do it in the next few days, it should still count towards Hacktoberfest!

Comment on lines +8 to +61
"concepts": {
"statically_typed": {
"code": "val x: Int = 5"
},
"dynamically_typed": {
"not-implemented": true
},
"procedural_language": {
"code": "fun calculateSum(a: Int, b: Int): Int {\n return a + b\n}"
},
"functional_language": {
"code": "val numbers = listOf(1, 2, 3, 4, 5)\nval doubled = numbers.map { it * 2 }"
},
"object_oriented_language": {
"code": "class Person(val name: String, val age: Int)"
},
"low_level_language": {
"not-implemented": true
},
"high_level_language": {
"code": "println(\"Hello, World!\")"
},
"compiled_language": {
"code": "// Kotlin compiles to JVM bytecode or native code",
"comment": "Kotlin is compiled to JVM bytecode, JavaScript, or native binaries"
},
"interpreted_language": {
"not-implemented": true
},
"general_purpose_language": {
"code": "// Kotlin can be used for Android, web, server-side, desktop, etc."
},
"domain_specific_language": {
"not-implemented": true
},
"manual_management": {
"not-implemented": true
},
"automatic_management": {
"code": "// Kotlin uses JVM's garbage collector",
"comment": "Memory is managed automatically by the JVM garbage collector"
},
"first_generation": {
"not-implemented": true
},
"second_generation": {
"not-implemented": true
},
"third_generation": {
"code": "// Kotlin is a modern third-generation language"
},
"fourth_generation": {
"not-implemented": true
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this template, the intention is that these are more true/false types of things if the language supports it. So they would all have code blocks that specify true/false. (I realize no language has implemented this yet so you may not have known. The discussion behind is in #679 ).

@ryleymao ryleymao closed this by deleting the head repository Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Kotlin] Add language basics

2 participants