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
  • c

    Czar

    12/20/2018, 10:24 PM
    Hi, I'm a backend developer, have been developing financial (banking, cards, e-transfer, e-commerce) software since 2006 in Java, currently mostly writing Kotlin and a bit of Java 8 (90/10% :kotlin:/:java: ). Joined this channel just because I'm interested in science (popular science level, mind you) and got curious about Kotlin used in the field. Regarding graphing, I haven't heard about anything Kotlin specific, but Java offers many possibilities and all of them can of course be used from Kotlin. There's also kotlin-native which opens the world of native libraries and tools, although native is a bit rough around the edges still, still JNA can be used instead, same as from java.
    👍 1
    t
    • 2
    • 1
  • g

    gaetan

    12/21/2018, 2:22 PM
    For native, we plan to add iOs to the rendering platforms. But I still find Kotlin/Native not efficient enough to work with. So I wait a little bit before doing that part.
    👍 1
    k
    • 2
    • 1
  • b

    bjonnh

    12/21/2018, 3:53 PM
    Another thing that I would like to see is a better browser than webview. I don't know how much it evolved this last year, but it was still somewhat limited
    g
    • 2
    • 4
  • b

    bjonnh

    12/23/2018, 12:05 AM
    @Pavel Apisov It highly depends which country you are in. You're talking about US? I've seen both approaches, entry level jobs and master degrees, being successful (in US) for people… Some took the entry level jobs and then did a master degree in parallel. So there are a lot of ways.
    p
    • 2
    • 1
  • c

    chi

    12/23/2018, 8:06 AM
    @Pavel Apisov you might find courses here - https://www.kadenze.com/ useful
    p
    • 2
    • 1
  • g

    gaetan

    12/27/2018, 10:12 AM
    Hi @altavir, I’m working on #data2viz and charts.kt libraries. What is your target platform? We planned to make charts.kt free for non commercial organizations and of course, schools and scientist research. Our biggest problem now is that we need to earn money for living, 😉. Even, if our main goal is to provide tools to help people understand data, at some point we need a little money. So the idea is to have data2viz open source and free for all usages, and charts.kt, a higher level tool, provided in exchange of a commercial licence for commercial usages (see highcharts.js). We think that the multiplatform nature of kotlin is a big asset and hope that a lot of developments will move to kotlin. Commercial licences could pay for the work on the library.
    a
    • 2
    • 7
  • a

    altavir

    12/27/2018, 4:05 PM
    - We want at least one package to follow Python conventions so it will be easy for Python guys to switch to Kotlin. It probably should still follow common API somewhere on lower level.
    👍 3
    k
    b
    +3
    • 6
    • 34
  • a

    altavir

    12/27/2018, 4:10 PM
    Those more or less sum it up. I propose to create two Keep-like repositories to track Design solutions for mathematics and visualization (I can do it right now).
    👍 2
    • 1
    • 1
  • g

    gaetan

    12/27/2018, 5:12 PM
    Have you heard about vega-lite? https://vega.github.io/vega-lite/
    👍 2
    a
    • 2
    • 1
  • a

    altavir

    12/29/2018, 1:50 PM
    We have a first pull request. Badly formed though. @Zelenyi wants multi-dimensional histograms which are used quite frequently in particle physics. Does someone have the similar experience?
    b
    • 2
    • 7
  • b

    bjonnh

    01/02/2019, 1:29 AM
    This is really nice. @thomasnield you can try to do your simulation in 3d now 😉
    😲 1
    a
    • 2
    • 4
  • t

    thomasnield

    01/02/2019, 5:49 PM
    But this warms me up to continuous modeling a little more, and reminds me that there is a time and place for both discrete and continuous.
    a
    • 2
    • 2
  • t

    thomasnield

    01/02/2019, 5:49 PM
    @altavir I'll keep that in mind. Thanks for doing this. Brilliant discussion
    a
    • 2
    • 2
  • t

    thomasnield

    01/02/2019, 8:29 PM
    @altavir why are you using a Poisson distribution for elapsed times between customer arrivals. Shouldn't it be
    Exponential
    ? like this?
    😳 1
    a
    • 2
    • 4
  • h

    hudsonb

    01/04/2019, 4:37 AM
    Anyone know of any kotlin libs for quaternion & versor functions?
    b
    a
    • 3
    • 3
  • a

    altavir

    01/05/2019, 8:47 AM
    Does anyone know actual use-case for integer nd-structures?
    k
    b
    • 3
    • 4
  • a

    altavir

    01/15/2019, 5:09 PM
    We just had a short discussion with @Vsevolod Tolstopyatov [JB] about coroutines new scheduler and its possible applications for heavy load scientific computations. My experiments with coroutines for lazy nd-structure transformations shows that making simple numeric operations with them won't work, the overhead for switching contexts is too large, but there is one application my group was working on for some time: Monte-Carlo simulation in particle physics. Simulation looks like follows: particle interacts (not very expensive but also not trivial computation). Upon interaction it could die or produce one or several particles that propagates further. Now we want to move computations to other threads to utilize multiple cores or even cluster. I can't create a thread for each computation, it is too expensive. Current engines use different types of really ugly and ineffective queuing. The idea is to use coroutines and channels for that. We have a prototype engine, but it requires further testing.
    b
    • 2
    • 2
  • p

    Percha

    01/20/2019, 10:40 AM
    I'm also working on a Tensorflow Kotlin idiomatic wrapper. Tensorflow is porting gradients to the C++ core so they are becoming available on other languages, making it posible to define the computation graph with a DSL and execute the training all in Kotlin. I'll be sharing that soon as well.
    a
    • 2
    • 3
  • t

    thomasnield

    01/22/2019, 1:23 PM
    @altavir I would like that a lot. I may not include some of the machine learning stuff in 2.0 at first, other than the naive Bayes classifier. But I do need to port all the core functionality that uses statistics distributions.
    a
    z
    • 3
    • 12
  • h

    hudsonb

    01/22/2019, 2:16 PM
    I realize kotlin-statistics has
    xxxBy
    methods, but it'd be handy to have extensions that'd work on the result of kotlin's
    groupBy
    . For example, it'd allow solving the "find sums by name length" example like so:
    val sumsByLengths = sequence
                    .groupBy { it.name.length }
                    .sumBy { it.value }
    t
    • 2
    • 3
  • t

    thomasnield

    01/26/2019, 7:19 PM
    @dalexander without digging into it, I highly doubt it. So you want JVM implementation to not use my own interface? That's ok.
    a
    b
    d
    • 4
    • 9
  • t

    thomasnield

    02/17/2019, 8:42 PM
    @altavir it's been awhile since I've used Spark with Kotlin. I've been out if the loop. Did you look at Sparklin and who is actively developing that?
    a
    • 2
    • 1
  • a

    altavir

    03/12/2019, 10:46 AM
    My poster from ongoing ACAT-2019 conference
    ACAT-2019.svg
    d
    n
    +2
    • 5
    • 16
  • a

    altavir

    04/21/2019, 12:56 PM
    Had to work on Julia for a bit with my student. For some time I was wondering if Kotlin is the right choice for scientific applications and whether we should consider Julia. Well, now I am sure. Julia maybe good as an idea, but on-demand compilation, dynamic typing and almost no tooling at all - it is terrible.
    t
    • 2
    • 1
  • t

    thomasnield

    04/21/2019, 1:40 PM
    I'm bringing in k-math for a personal project I'm messing with.
    a
    • 2
    • 2
  • a

    altavir

    04/21/2019, 1:40 PM
    Python at least has PyCharm and good plugin for VSCode.
    • 1
    • 1
  • t

    thomasnield

    04/21/2019, 1:41 PM
    That it does... but I still find PyCharm can only do so much in its meta analysis of the code.
    a
    • 2
    • 1
  • a

    altavir

    05/10/2019, 5:51 PM
    Guys, I hope you will like it. Here is the brand new plotly wrapper in pure kotlin+multiplatform (multiplatform is not yet fully capable): https://github.com/mipt-npm/plotly.kt It supports both static html export and dynamic server which handles all updates in the model. The documentation is quite thin for now. I am too tired today to expand it, but we will update it as soon as we can. We plan to add full dash functionality in future.
    👍 4
    📊 1
    d
    • 2
    • 2
  • t

    thomasnield

    05/26/2019, 1:29 AM
    Been messing around with kmath. Really cool, I like where this is going.
    -.kt
    🤗 1
    a
    • 2
    • 2
  • t

    thomasnield

    05/26/2019, 1:08 PM
    @altavir A lot of JVM-based linear algebra libraries like ojAlgo don't have
    pow()
    functions. Not sure about Numpy. I don't know if it's inherently clear whether that a "dot pow" either, or just an element-wise pow() operation.
    a
    • 2
    • 1
Powered by Linen
Title
t

thomasnield

05/26/2019, 1:08 PM
@altavir A lot of JVM-based linear algebra libraries like ojAlgo don't have
pow()
functions. Not sure about Numpy. I don't know if it's inherently clear whether that a "dot pow" either, or just an element-wise pow() operation.
a

altavir

05/26/2019, 1:28 PM
Well, in kmath the general logic is that operations are produced via context. The
MatrixContext
defines
dot
operation for any matrix so it is quite ease to extend it with power operations. It works like
context.run{ a dot b}
. The real matrix is a special case, where context is obvious and could be inferred. That is why
dot
operation is a top level. It slightly violates the general principle, but I can't think of a case where someone will need alternative dot operation on real matrices.
👍 1
View count: 1