https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
science
  • b

    bjonnh

    03/01/2021, 7:02 PM
    Open Science with Kotlin: https://www.biorxiv.org/content/10.1101/2021.02.28.433265v1
    a
    • 2
    • 2
  • a

    altavir

    03/11/2021, 3:22 PM
    The recording of todays seminar on Gdml, visionforge and jupyter-kotlin:

    https://youtu.be/Nfq63dj5iPY▾

    .
    👍 3
    b
    • 2
    • 20
  • a

    altavir

    03/28/2021, 12:51 PM
    @Iaroslav Postovalov just discovered a Kotlin builder for TeX by@khud: https://github.com/kotexio/KoTeX. We've currently started a more ambitious project code-named Snark (as in Lewis Carroll's poem), which is aimed to provide document transformation and generation API as well as builders. I think it would make sense to cooperate on that. @Alex Gladkov is also stuying builders and Android rendering. The snark's code is not public yet, I need to add a few things first.
    k
    i
    • 3
    • 11
  • a

    altavir

    03/28/2021, 2:02 PM
    @roman.belov @Maria Khalusova I wonder if there is a historic data about the number of users in each of this slack's channels. I have a fealing that there are several different "modes" for each kotlin direction. First the channel lies dormant with only a few dedicated users, but at some moment the direction accumulates anough interest to go 💥 exponentially.
    r
    • 2
    • 3
  • f

    Filipe Duarte

    04/12/2021, 10:04 PM
    Does Multik support a random ndarray generator?
    p
    a
    • 3
    • 7
  • a

    altavir

    04/21/2021, 6:00 PM
    message has been deleted
    👍 4
    f
    • 2
    • 4
  • a

    altavir

    07/16/2021, 6:52 AM
    [JBR Seminar] A work seminar on Controls.kt inner implementation details. Alexander Nozik Description: Inner workings of Magix event loop. Usage of Kotlin SharedFlow as a loop implementation, integration with RSocket and ZMQ. Introduction to Controls.kt Sunday, July 18 · 17:00 – 18:00 Google Meet joining info Video call link: https://meet.google.com/zwe-rmow-wzh
    👍 1
    p
    • 2
    • 5
  • a

    altavir

    07/27/2021, 3:38 PM
    Just found a coroutine-based demo for eclipse-milo by @kevinherron: https://github.com/digitalpetri/opc-ua-demo-server. Really nice to find kotlin in IoT and SCADA already.
    👍 1
    :kotlinnew: 1
    🙌🏼 1
    k
    h
    • 3
    • 6
  • k

    kevinherron

    07/27/2021, 3:39 PM
    My background isn’t really in any kind of science, data or otherwise, but rather SCADA / industrial automation / controls.
    a
    • 2
    • 1
  • k

    kevinherron

    07/27/2021, 3:40 PM
    I work at Inductive Automation (a SCADA/HMI company) and I’m also the lead for the Eclipse Milo. If you have any questions about OPC UA stuff I can probably help 🙂
    a
    h
    • 3
    • 10
  • a

    altavir

    08/02/2021, 6:34 PM
    @kevinherron I decided to start with client. I am currently working slowly through your Java code and I already see why you took the idea of using kotlin so well. It could help a lot with code duplication and other things. My question is more about opc-ua stack. I currently can't see a way to encode key-value map. Also I can't see a way to interpret custom structure without knowing beforehand what it is. Is it possible to encode a map without using array of custom key-value structure?
    k
    • 2
    • 29
  • a

    altavir

    08/15/2021, 3:16 PM
    A demo of first physics "simulation" visualization in VisionForge: https://www.loom.com/share/fde7375039ba4cb9889f7f31bbdca159 Here is the whole code:
    val bouncingSphere = SolidGroup {
                sphere(5.0, "ball") {
                    detail = 16
                    color("red")
                    val h = 100.0
                    y = h
                    GlobalScope.launch {
                        val g = 10.0
                        val dt = 0.1
                        var time = 0.0
                        var velocity = 0.0
                        while (isActive) {
                            delay(20)
                            time += dt
                            velocity -= g * dt
                            y = y.toDouble() + velocity * dt
                            if (y.toDouble() <= 2.5){
                                velocity = sqrt(2*g*h)
                            }
                        }
                    }
                }
    
                box(200, 5, 200, name = "floor"){
                    y = -2.5
                }
            }
    • 1
    • 2
  • a

    altavir

    08/27/2021, 1:20 PM
    @elect I want to move the discussion to a more relevant chat. I've implemented basic plotly map API and will deploy dev version shortly. It does not have the quality you want yet. For it we need to use openstreeetmap API. I will return to it tomorrow.
    🔥 4
    :kotlin-intensifies: 7
    e
    • 2
    • 14
  • p

    Peter

    09/28/2021, 3:49 PM
    After a lot of development I finally released a first public beta of roboquant, an open source framework for algo-trading. Of course written in Kotlin, but also with great support for running it interactively on Jupyter Notebooks. You can see it in action here on Datalore It is still in beta, but any feedback it much appreciated. You can find out more about it at GitHub
    👍 2
    🔥 3
    i
    • 2
    • 17
  • a

    altavir

    10/28/2021, 2:11 PM
    During a seminar today, I've spontaneously made a nice pure kotlin demo for univariate distributions, point and range estimation: https://datalore.jetbrains.com/view/notebook/wr9C8wqmehowEVRWxtiS9Q. The code is not the best that could ever be, but it demonstrates some kotlin features. Feel free to use it as a demo.
    i
    • 2
    • 3
  • e

    elect

    11/01/2021, 11:16 AM
    Hello people 🙂 tomorrow at Casus (10am) we are gonna host a presentation followed by a short workshop with @holgerbrandl about Kotlin Automation and Scripting, he's known especially for

    his talk▾

    at KotlinConf '17 and his kscript
    👍 3
    a
    h
    • 3
    • 4
  • l

    louiscad

    11/02/2021, 6:38 PM
    Hello, for a side project where I have to find the right dimensions and shapes for physical parts, I started to write SI and geometry types in Kotlin as `value class`es, along with various functions for the various calculations I need to perform. FYI, "SI" means "Système International", which translates to "Internation System of Units", and includes all the science 7 base units like distance (in meters) and time (in seconds), and their derivatives like acceleration (m.s^-2), torque (I don't recall about that one)… It's not feature complete, I often find myself adding types, operators and functions, but I'm wondering if sharing such a library would still be useful. I also know it can never be really fully feature complete since the Kotlin type system isn't as flexible as the SI which allows infinte possibilities of derivative units. Has anyone made such a library yet? Do you have projects where it'd be useful to you?
    a
    • 2
    • 1
  • e

    elect

    11/12/2021, 8:35 AM
    https://de-rse.org/blog/2021/10/04/SE2022-RSE-Track-Call-for-contributions-en.html
    👍 2
    a
    • 2
    • 1
  • a

    altavir

    11/19/2021, 5:56 PM
    A demonstration for a hypothesis test from yesterday lecture: https://datalore.jetbrains.com/view/notebook/KHxo8B64QfRV9FrNzSvPIA We are creating two 2D point distribution and checking if they belong to the same distribution via custom statistic. Alexander Svetlichnyi is my deputy. He was present during the lecture and proposed the statistic, so we named it after him. Probably it was invented before with a different name.
    h
    • 2
    • 3
  • a

    altavir

    12/03/2021, 6:25 PM
    https://twitter.com/noraltavir/status/1466830469882863621?s=20
    🎉 3
    • 1
    • 1
  • a

    altavir

    01/07/2022, 9:25 AM
    I am putting finishing touches on a production release of VisionForge. You can see statically generated demo here: http://npm.mipt.ru/demos/VisionForgeDemo.html (WARNING: 6 MB JS bundle size). The page itself is generated with VisionForge and the code is attached. This is a static demo, but it also could be dynamic (receive updates from backend) and it works in Jupyter! As soon as I finally write an article about it, I will move forward to doing a data-driven report generator. Right now it is already quite easy to do dashboards. Also adding new plugins is quite easy (added tables yesterday). The JS bundling is still a bit of issue, but I think it will be easier in future. Comments are welcome.
    • 1
    • 1
  • a

    altavir

    05/15/2022, 7:50 AM
    message has been deleted
    h
    • 2
    • 1
  • a

    altavir

    07/11/2022, 7:05 AM
    Is somebody interested in Compose map component? I've done a prototype for several internal and external projects. It should be easy to port it to android. It is private right now, but if anybody is interested, I can open it.
  • d

    David Boney

    07/12/2022, 5:36 PM
    Meta just open-sourced an automatic differentiation framework for Kotlin! (https://diffkt.org/). It can compute higher-order and symbolic derivatives, supports user-defined types, and has compile-time shape checking. Examples include machine learning and physical simulations.
    a
    • 2
    • 1
  • p

    pambrose

    07/16/2022, 4:59 PM
    When I build my app using
    plotly-core
    locally, gradle has no problem getting the jar. However, when I try to build it on jitpack.io, I get this:
    Could not determine the dependencies of task ':kslides-examples:shadowJar'.
    > Could not resolve all files for configuration ':kslides-examples:runtimeClasspath'.
       > Could not download plotlykt-core-jvm-0.5.2-dev-2.jar (space.kscience:plotlykt-core-jvm:0.5.2-dev-2)
          > Could not get resource '<https://repo.kotlin.link/space/kscience/plotlykt-core-jvm/0.5.2-dev-2/plotlykt-core-jvm-0.5.2-dev-2.jar>'.
             > Could not GET '<https://pkg-cdn.eu-1.jetbrains.space/1409141240651199418/maven/5577247194344223755/space/kscience/plotlykt-core-jvm/0.5.2-dev-2/plotlykt-core-jvm-0.5.2-dev-2.jar?v=1ntCif1ntCif&Expires=1657991009&Signature=cgVRG4BK9yp~fnK5lCbGlFHA8ib0MuuqwYYcEAwFnVOLDPsQ-f5c~zSQPd3X2S05mmqSI22-TYn-O-VTbN8X-a0LbLPcLTBRMls3oHZMFlxvPQuAzP1sQ9Ib~bvZX216ctUiTXJWeXdVDsPWaER-LaV~OeHhlyO2RXvSrG5KflgeM1sfyVqY~wJvTZZScGFus9UCE-48SqswH0v-grV-hCDZ61FGDPkTDljIQiDFxthO-f6y3by8X0wd9YlHMACb2iro~mQJCdfrgG4L~MxpngPnCkSW81rQBnQzJZJPW9cps6cK06qWDA6-54tFIWyyLHgzYhsNQIwW1oRRhMlyRg__&Key-Pair-Id=APKAIBRFJQGZXNBTFYIA>'.
                > peer not authenticated
    The above uses:
    -Dhttps.protocols=SSLv3,TLSv1,TLSv1.1,TLSv1.2,TLSv1.3
    If do not specify a
    https.protocols
    value, I get:
    Could not determine the dependencies of task ':kslides-examples:shadowJar'.
    > Could not resolve all dependencies for configuration ':kslides-examples:runtimeClasspath'.
       > Could not resolve space.kscience:plotlykt-core:0.5.2-dev-2.
         Required by:
             project :kslides-examples
             project :kslides-examples > project :kslides-core
          > Could not resolve space.kscience:plotlykt-core:0.5.2-dev-2.
             > Could not get resource '<https://repo.kotlin.link/space/kscience/plotlykt-core/0.5.2-dev-2/plotlykt-core-0.5.2-dev-2.pom>'.
                > Could not GET '<https://repo.kotlin.link/space/kscience/plotlykt-core/0.5.2-dev-2/plotlykt-core-0.5.2-dev-2.pom>'.
                   > The server does not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: <https://docs.gradle.org/7.5/userguide/build_environment.html#gradle_system_properties>
                      > Received fatal alert: protocol_version
    Any thoughts would be much appreciated.
    a
    • 2
    • 7
  • a

    altavir

    08/16/2022, 2:06 PM
    Yesterday I've done a simple finite steps simulation of mixed linear model evolution for younger people from our lab chat: https://datalore.jetbrains.com/notebook/ptQDfQAcrjNxzIO0AEqovZ/wyWh7qFdXrP9OBWPIL7clW/. You can do population dynamics, stable processes or (like I've done) the decay of dictatorship regime (I won't add comments about that in the code). What I wanted to say is that it is already as easy to do in Kotlin as in Python.
  • a

    altavir

    08/17/2022, 6:10 PM
    https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1660759184455119
  • s

    Sharan Salian

    08/25/2022, 6:45 AM
    Hello, Topic: Computer Science Q: What is the time complexity of the standard library filter function? Context: I wrote an algorithm for Quick Sort but for large data sets I'm getting Time Limit Exceeded. Algorithm
    i
    • 2
    • 1
  • a

    altavir

    09/01/2022, 5:01 AM
    My github account was "suspended" because I work at MIPT, which is under US sanctions. All our important projects are alive, but I won't be able to maintain issues on the github. We will move to YouTrack instance soon for issues, but meanwhile write to me here.
  • j

    jamescodingnow

    11/15/2022, 2:02 AM
    I would like to help and support any scientific research with Kotlin language. How can I do it? Where should I start?
    a
    • 2
    • 3
Powered by Linen
Title
j

jamescodingnow

11/15/2022, 2:02 AM
I would like to help and support any scientific research with Kotlin language. How can I do it? Where should I start?
a

altavir

11/15/2022, 3:29 AM
The best way is to look at existing scientific libraries and contribute something mentioned on the issue list. Also you can start your own project and discuss it here. And the option to request some library or feature here is also quite useful.
j

jamescodingnow

11/20/2022, 7:58 PM
Thank you Alex, also do you know or recommend any tutorial about that: I would like to visualize data with Intellij IDEA IDE on my computer (because I do not want to use browser). So, how can I do it?
a

altavir

11/21/2022, 7:40 AM
Most of visualisation libraries are using browser. For non-browser plotting libraries, there are two relatively good choices: https://github.com/JetBrains/lets-plot-kotlin and https://www.jfree.org/jfreechart/. The second one is super-powerful but Java-based and has very archaic API. Another solution is to use Kotli jupyter inside the IDEA https://plugins.jetbrains.com/plugin/16340-kotlin-notebook. It allows to run browser-based visualisations inside the IDEA. It is complete yet (I did not manage to run in on windows), but it allows full exploratory analysis capabilities in theory.
View count: 2