Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 16 2020 09:15
    weihsiu commented #31
  • Jan 16 2020 09:15

    weihsiu on master

    Add Scala Through Lenses resour… Merge pull request #31 from jir… (compare)

  • Jan 16 2020 09:15
    weihsiu closed #31
  • Jan 16 2020 08:49
    jirijakes opened #31
  • Jan 15 2020 06:33
    weihsiu commented #30
  • Jan 15 2020 06:32

    weihsiu on master

    add purely functional redis dri… Merge pull request #30 from yar… (compare)

  • Jan 15 2020 06:32
    weihsiu closed #30
  • Jan 15 2020 04:33
    yaroot synchronize #30
  • Jan 15 2020 04:22
    yaroot opened #30
  • Dec 18 2019 03:51

    weihsiu on master

    add FrameworkChoice finagle vs … Merge pull request #29 from che… (compare)

  • Dec 18 2019 03:51
    weihsiu closed #29
  • Dec 18 2019 03:51
    weihsiu commented #29
  • Dec 17 2019 23:55
    chenghsienwen opened #29
  • Nov 08 2019 01:01

    weihsiu on master

    Add slides of How to contribute… Add slides of Scala & Spark(1.6… Merge pull request #28 from jim… (compare)

  • Nov 08 2019 01:01
    weihsiu closed #28
  • Nov 07 2019 09:28
    jiminhsieh opened #28
  • Nov 07 2019 03:48
    weihsiu commented #27
  • Nov 07 2019 03:48

    weihsiu on master

    Move 2016's slides to folder 20… Move 2017's slides to folder 20… Move 2018's slides to folder 20… and 3 more (compare)

  • Nov 07 2019 03:48
    weihsiu closed #27
  • Nov 07 2019 02:48
    jiminhsieh opened #27
Vito Jeng
@vitojeng
:+1: Cool!
Jacob Wang
@jatcwang
For some libraries it may not be as simple. See the discussions in lampepfl/dotty#10244
Walter Chang
@weihsiu
here is the slides of my talk "Type-level Programming in Scala 3 ()" yesterday at JCConf. there isn't that much material in the slides. the meat of my talk is the example code at the github repo.
jirijakes
@jirijakes

Pretty cool examples!

How was the reception by Java folks? Did you get some questions or chance to talk to them after the presentation?

Walter Chang
@weihsiu
No, not really. I didn't have much time left either, though.
Walter Chang
@weihsiu
Before the much-anticipated meetup, let's warm up with a mokumoku next Saturday! https://meetu.ps/e/JySk0/rpSTs/d
jirijakes
@jirijakes
Cooool! :thumbsup:
chenghsienwen
@chenghsienwen
Howard
@Howard86
Thanks so much!
Walter Chang
@weihsiu
There are many more scala courses if that is what you are looking for. Here are some by odersky and company: https://www.coursera.org/specializations/scala
Walter Chang
@weihsiu
just in case you are contemplating on participating the latest geek obsession that is aoc 2020, contemplate no more! this library takes the drudgery of having to download the input files manually and let's you concentrate on what really matters, solving the problems and getting on the leaderboard!
Walter Chang
@weihsiu
hahaha, that's wonderful!
Walter Chang
@weihsiu
i think the inevitable mainstream adaptation of functional programming is finally upon us
Walter Chang
@weihsiu
a new language that takes the best of F#, Go, OCaml, Haskell, Rust, and Scala has arrived, and it's written in Scala!! https://flix.dev/
Yan
@yaroot
serious stuff this is
Walter Chang
@weihsiu
effect system and datalog!!
Walter Chang
@weihsiu
programming in scala 5th edition which covers scala 3 has 2 volumes!!! https://twitter.com/philip_schwarz/status/1342011126335361024?s=20
Vito Jeng
@vitojeng
Cool!
Walter Chang
@weihsiu
a new book on scala 3 is still in progress but most contents are there. enjoy and contribute back if you find problems. https://docs.scala-lang.org/scala3/book/introduction.html
Vito Jeng
@vitojeng

最近有找時間開始嘗試 Scala 3 語法, 用這個 example 切入還不錯:
https://github.com/scala/scala3-example-project

不過 intellij 的 scala 3 support 目前還不太行就是了... QQ

Walter Chang
@weihsiu
@vitojeng now that indigo has the latest version (0.6.0) cross compiled to scala 3.0.0-M3, it might be a fun way to get into scala 3 ;)
Vito Jeng
@vitojeng
@weihsiu Very interesting!
Vito Jeng
@vitojeng

來問問題了 ^^

在 Akka akka-stream-tests 裡看到 這一行, 關於 PartialFunction 的寫法:

為什麼會需要另外加上 : PartialFunction[Any, CompletionStrategy] ?
掃了一遍 akka-stream-tests 其他有用到 Source.actorRef 的地方, 似乎也沒有看到這樣寫...

Vito Jeng
@vitojeng
做了一下測試(Scala 2.13.4), 忽略了 : PartialFunction[Any, CompletionStrategy]
會導致 compiler failed:
missing parameter type for expanded function
The argument types of an anonymous function must be fully known. (SLS 8.5)
Expected type was: ?
              { case "done" => CompletionStrategy.draining },
Vito Jeng
@vitojeng
目前還沒有做更多的實驗...
按照以上 compiler 的訊息, 那 這一行 為什麼又不用加 ? 實在搞不懂...
Yan
@yaroot
it's a bit different, in the first case the T is specified but not in the second one (I'm a bit surprised that it works)
Vito Jeng
@vitojeng
Yes. It seems if T specified, we need to provide the type for the anonymous function. I still feel somethings I don’t understand. But anyway, now I know the key point is the T
Thanks @yaroot
Walter Chang
@weihsiu
and the light at the end of the tunnel :clap: :clap: :clap: https://dotty.epfl.ch/blog/2021/02/17/scala3-rc1.html
Yan
@yaroot
question for fs2 users, how do you normally pick the buffer size
I'm doing .chunks.buffer(<n>).flatMap(Stream.chunk) (n = 2 usually)
Vito Jeng
@vitojeng
@weihsiu
Very pleased to see the new import syntax and the new syntax uses a postfix *, instead of : _*
Yan
@yaroot
I always like that _ means whatever
Walter Chang
@weihsiu
Just in case anyone is interested in getting Programming in Scala 5th ed that covers scala 3, discount code "GITTERMARPINS5" will get you 15% off.
Walter Chang
@weihsiu
And it's volumn 1 of the book. Volumn 2 is coming right after vol. 1 is released.
Raymond Tay
@raymondtay
hello all, i wish everyone a happy new year ☺
Walter Chang
@weihsiu
@raymondtay happy lunar new year to you too!! hopefully we can travel soon...
Raymond Tay
@raymondtay
@weihsiu been on radio silence for a good 12 months or so
:) glad to hear that Taiwan community is rocking !
indeed, i wish we can travel soon :) i'm thirsty for the good ale of Taiwan !
恭喜發財!身體健康!
Walter Chang
@weihsiu
@raymondtay yeah, even though the virus is well contained in taiwan, people still cringe when it comes to indoor public gatherings, thus the absence of scala meetups since the beginning of last year. here is hoping that everything will be back to normal soon and we can all enjoy a well-deserved beer together!
Vito Jeng
@vitojeng
@raymondtay Nice to hear you. :beer: :coffee:
Yan
@yaroot
happy new year to you all
Walter Chang
@weihsiu
@yaroot to you as well and stay safe
Walter Chang
@weihsiu
scala taiwan mokumoku #13 is here! please come join us next sunday afternoon for some delicious beer or coffee, whichever is your poison, and some scala hacking/gossiping. https://www.meetup.com/Scala-Taiwan-Meetup/events/276706921/
Walter Chang
@weihsiu
@jirijakes I knew I could get you out of your cave somehow.
Walter Chang
@weihsiu
it looks like the release of the very first milestone of http4s that is built for scala 3 is imminent! this is a huge undertaking with many library dependencies that have to be scala 3 ready and many constructs in the library itself that have to be rewritten in scala 3. now i can finally write all my web applications in scala 3! :clap: :clap: :clap:
http4s/http4s@198e2ea
Walter Chang
@weihsiu
Vito Jeng
@vitojeng

Scala 3 Syntax Summary 可以找到所有的 syntax, 這個很好...但很可惜沒有進一步的 reference.

請問...大家有沒有什麼好方法可以針對 Scala 3 keywrod 查詢某個 keyword 的解釋(說明)? 尤其是一些 "符號"

例如 =>> 我弄了半天才找到原來在這裡 😂
Type Lambdas - More Details

Walter Chang
@weihsiu
Yes, that's a big problem. Also something like hoogle for haskell is dearly needed for scala. In hoogle, not only are you able to search for symbols, you can search for a particular function signature as well, and the search encompasses all haskell packages. Now that TASTy is available on both scala 2 and 3, it's high time for someone to make such search for scala.