kiit
Exposed
kiit | Exposed | |
---|---|---|
9 | 28 | |
112 | 7,901 | |
0.0% | 0.9% | |
5.7 | 9.5 | |
4 months ago | 3 days ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kiit
-
what are you building with Kotlin?
I’ve been building a comprehensive Kotlin framework called https://www.slatekit.com/
-
What's your go-to web backend stack for 2021 ?
Tests : All unit-tests ( for now, will be cleaned up later )
-
Up to Date Resources for Learning Arrow / More Functional Kotlin
I don't use arrow or Category theory myself, but looking at the docs, they have valid reasons for deprecating Option ( from the docs and more so for creating type aliases for Either ). I'm doing this same approach with my implementation ( shameless plug ) of the **Result** type which is becoming somewhat universal for modeling successes and failures, and as an alternative to **Either**. You can easily type alias **Option = Result** and **Try = Result**. More details here. https://github.com/slatekit/slatekit/tree/main/src/lib/kotlin/slatekit-result
-
Using an Application Identity
This post discusses using an application identity ( a convention based unique name to identify any app ) to organize, identify an application, and properly link the identity to the logs, metrics, alerts, and other diagnostics of the application. This was designed for a Kotlin framework called Slate Kit; codebase at Git, and code for this component here at Identity.kt.
-
Anyone using any Actor Frameworks for Kotlin?
I’m building my own micro-actor library to support some of my own use cases. Specifically I need to have the ability to start, stop, pause, resume actors multiple times gracefully. My design is not fully ready but pretty close. https://github.com/slatekit/slatekit/tree/main/src/lib/kotlin/slatekit-actors
-
Ask HN: Scala vs. Kotlin?
Agree completely with everything you said and your observations regarding job market. I’ve been doing Scala for a few years and I also would not recommend it to anyone unless they have a deep desire to do pure FP(functional programming) on the JVM. The ecosystem/libraries are unnecessarily complex IMHO.
If you want FP-Lite, I recommend Kotlin, it’s very pragmatic, reasonably functional. I actually converted all my personal projects from Scala to Kotlin, including my framework https://github.com/slatekit/slatekit which took about a 4-6 weeks from the original code base.
-
Nice Kotlin Nullables and Where to Find Them. How to compose nullables, in an easy and clean way
I wish Kotlin designed their own Result type similarly to how Result is implemented in Rust or Swift, instead of defaulting the error type to Exception. I actually implemented my own version of Result for this specific reason (although I customized it to support a status field ). https://github.com/slatekit/slatekit/tree/main/src/lib/kotlin/slatekit-result
-
Create a Homebrew Installer
Well, thats finally it. I created a homebrew installer to allow for a command line tool to generate slatekit projects making it very easy for new users to get started quickly. It sounds like quite a lot at first, but there are only 3 concepts, the package( your script, app, tool), the tap (git repo for formulas), and the formula (installer). Hope this helps!
Exposed
-
Drizzle is just as unready for prime-time as Prisma, what else is there?
So is it like Exposed for Kotlin which is a typesafe Kotlin DSL for building sql queries? I’ve been looking for something like this in typescript! https://github.com/JetBrains/Exposed
-
Database Testing with Testcontainers and Kotlin Exposed ORM
object TestDatabase { private val mySQLContainer: MySQLContainer = MySQLContainer("mysql:8.0.26").apply { withDatabaseName("test-db") withUsername("test-user") withPassword("test-password") start() // Start the container } init { val config = HikariConfig().apply { jdbcUrl = mySQLContainer.jdbcUrl username = mySQLContainer.username password = mySQLContainer.password driverClassName = "com.mysql.cj.jdbc.Driver" maximumPoolSize = 10 } val dataSource = HikariDataSource(config) // This doesn't connect to the database but provides a descriptor for future use // In the main app, we would do this on system start up // https://github.com/JetBrains/Exposed/wiki/Database-and-DataSource Database.connect(dataSource) // Create the schema transaction { SchemaUtils.create(Users) } } }
-
I'm creating a REST API using KTOR. What's the best ORM to go with KTOR ?
Exposed SQL is pretty good.
-
speed of a left join with millions of rows
I am using Kotlins Exposed DSL to access my postgreSQL database. I am running an SQL query which involves doing a one-to-many left join, with the first table having tens of thousands of rows and the second table having millions of rows. The database is stored locally on the machine. I would expect the returned query to be less than one thousand rows.
-
Return a nested list of child table using Kotlin Exposed Dao
I understand that `referrersOn` and `referencedOn` can be used, however in the documentations StarWars example, the child table needs to have a column indicating the parent_id row it is joined to. This does not work in my case as my child table can be associated to multiple parent_ids.
-
Replicating Jetbrains Exposed Star Wars Example in IntelliJ Scratch file
I am following this wiki to learn kotlin exposed. It contains an example of 'Referencing' using Star Wars data. I would like to create a scratch and/or console file in IntelliJ which reproduces this simple example. However When I try to run the code I get errors (see below). Is there something I am missing here?
-
How are you all handling database persistence?
Exposed by JetBrains https://github.com/JetBrains/Exposed
-
Why people don't like Java?
Alternatively there are... hybrid solutions like Kotlin's https://github.com/JetBrains/Exposed or https://jdbi.org/ that don't quite... do all the heavy lifting for querying but allow you to sorta stitch queries together manually.
-
Using PostgreSQL as an Append-only Datastore with Kotlin and Exposed
In our last episode (https://youtu.be/Uza\_dWsNMUs) we worked out how to save stock items in PostgreSQL (https://www.postgresql.org/) using the JetBrains Exposed library (https://github.com/JetBrains/Exposed). This time we refactor our existing file-based storage, extracting an interface that we can implement with files, in-memory, or with Exposed. For the database version, instead of replacing items in a table when they change, we choose to implement an append-only datastore. This keeps all the old versions of every row, using a query to select the latest versions when we want to see the current state. This has the advantage that we can rebuild the state of our system if things go wrong, and may also be faster than amending when we consider transactions. This is part 62 of an exploration of where a Test Driven Development implementation of the Gilded Rose stock control system might take us in Kotlin. You can see the whole series as a playlist https://www.youtube.com/playlist?list=PL1ssMPpyqociJNwykAOB9\_KEZVW7BW7m2 and the code on GitHub https://github.com/dmcg/gilded-rose-tdd If you like this, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style. I have some free time between producing videos and working for team Gilded Rose. If you like these videos I'd like to work with you - please get in touch - [email protected]
-
Writing to db
I have used hikari and exposed to do this in the past with postgres, although other dialects are supported.
What are some alternatives?
valiktor - Valiktor is a type-safe, powerful and extensible fluent DSL to validate objects in Kotlin
Ktorm - A lightweight ORM framework for Kotlin with strong-typed SQL DSL and sequence APIs.
littlekt - A multiplatform 2D game framework written in Kotlin. Build your own game engine on top.
SQLDelight - SQLDelight - Generates typesafe Kotlin APIs from SQL
javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]
kotlin-jpa-specification-dsl - This library provides a fluent DSL for querying spring data JPA repositories using spring data Specifications (i.e. the JPA Criteria API), without boilerplate code or a generated metamodel.
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
requery - requery - modern SQL based query & persistence for Java / Kotlin / Android
ktor_chatting_application - Server/Client Chatting application that allows to choose to chat in a group chat or privately to a specific connected user
kwery - Kwery is an SQL library for Kotlin
sdk-for-android - [READ-ONLY] Official Appwrite Android SDK 💚 🤖
kotlin-nosql - NoSQL database query and access library for Kotlin