!hwycdBKpFIFYAthjRl:grin.hu

Scala Hungary

23 Members
Scala, a programozási nyelv. Összekötve ezzel: http://scalahungary.slack.com/ Tér (space): #magyarul:matrix.org #programozok:matrix.org Közösség (community, flair) +magyarul:matrix.org +programozas:matrix.org | Hungarian/magyar5 Servers

Load older messages


SenderMessageTime
8 Sep 2020
@qp:grin.huqp * I am fascinated by the number of choices, on JVM I only found AWT, JavaFX and Swing23:27:16
9 Sep 2020
@bkil:grin.hubkil
In reply to @qp:grin.hu
I am fascinated by the number of choices, on JVM I only found AWT, JavaFX and Swing

Then there's also JWT

Also don't forget that you can use anything that your platform offers if you went over JNI if that wouldn't be enough.

07:01:48
@bkil:grin.hubkilAnd anyway, when you're building a GUI, it sufficient if you are given primitives for drawing pixels, trigger on keyboard and mouse actions and you can build the rest on top of it. This is just what Swing had done, and similarly, probably almost all user interface toolkits you find over on Hackage are built on top of GTK+ and they are just experimenting with different abstractions. You could mind as well roll your own in Scala if you got inspired by one of the functional reactive programming ones and would like to write "purely functional" if you're not satisfied with ScalaFX. You may also find it entertaining that there is no such thing as "the native widget toolkit subsystem" on Linux. https://en.wikipedia.org/wiki/File:Xlib_and_XCB_in_the_X_Window_System_graphics_stack.svg07:14:27
@_slack_scalahungary_UAUPBUMEU:matrix.orgtorcsiimage.png
Download image.png
09:01:08
@_slack_scalahungary_UAUPBUMEU:matrix.orgtorcsi electron with 0.5gb? It is a “well written” electron app with react 😄 09:01:11
@bkil:grin.hubkil * And anyway, when you're building a GUI, it is sufficient if you are given primitives for drawing pixels, trigger on keyboard and mouse actions and you can build the rest on top of it. This is just what Swing had done, and similarly, probably almost all user interface toolkits you find over on Hackage are built on top of GTK+ and they are just experimenting with different abstractions. You could mind as well roll your own in Scala if you got inspired by one of the functional reactive programming ones and would like to write "purely functional" if you're not satisfied with ScalaFX. You may also find it entertaining that there is no such thing as "the native widget toolkit subsystem" on Linux. https://en.wikipedia.org/wiki/File:Xlib_and_XCB_in_the_X_Window_System_graphics_stack.svg09:02:28
@_slack_scalahungary_UAUPBUMEU:matrix.orgtorcsi btw if you want to build a gui app, I would try flutter, as I tried out its really interesting 09:04:10
@l.arnold:grin.hu@l.arnold:grin.hu left the room.09:45:39
@bkil:matrix.orgbkil joined the room.10:00:50
@bkil:grin.hubkilchanged room power levels.10:01:00
@bkil:grin.hubkil 🇭🇺 By the way, it was also raised what language we should use here. We did have a few English speaker guests on some earlier meetups. Do we have anyone here who does not speak Hungarian?11:22:26
10 Sep 2020
@bkil:grin.hubkil
println("Akkor üdvözlet Magyarországról!")
10:48:35
11 Sep 2020
@qp:grin.huqpscalaban implicititekkel kezelik azt hogyha egy tipushoz tobb typeclass kotheto, haskellben newtypepal ha jol sejtem azert preferaljak implicitet mert kevesebb kod? (nem kell belerakni a tipusba majd megint kivenni?)00:34:16
@_slack_scalahungary_UC31E1ABB:matrix.orgEnpassant
In reply to@qp:grin.hu
scalaban implicititekkel kezelik azt hogyha egy tipushoz tobb typeclass kotheto, haskellben newtypepalha jol sejtem azert preferaljak implicitet mert kevesebb kod? (nem kell belerakni a tipusba majd megint kivenni?)
Scala-ban jelenleg csak implicittel lehet Type class-t csinálni. Scala 3-ban ezt fel fogja váltani a given. Ami kevesebb kód lesz és tisztább szárazabb érzés. 😉 https://heikoseeberger.rocks/2019/12/10/2019-12-10-dotty-3/
04:46:57
@_slack_scalahungary_U01B711S7FS:matrix.org_slack_scalahungary_U01B711S7FS joined the room.09:32:00
@bkil:grin.hubkilhttps://en.wikipedia.org/wiki/Dhoti 👖22:11:11
16 Sep 2020
@bkil:grin.hubkil qp: Tudnál kérlek küldeni egy előadáscímet és pár sor kedvcsináló előzetes leírást a Scala előadásodhoz? 23:14:34
17 Sep 2020
@qp:grin.huqpholnap este irok egyet02:35:13
@qp:grin.huqp * ma este irok egyet02:45:02
@qp:grin.huqp

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot generál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
  <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

Either<Integer, String> l = Eithers.left(-1);
int intValue = Eithers.
        caseOf(l)
        .left(Function.identity())
        .right(String::length);
21:20:38
@qp:grin.huqp *

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot generál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
  <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

int intValue =
        Eithers.caseOf(l)
                .left(Function.identity())
                .right(String::length);
21:23:01
@qp:grin.huqp *

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot generál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
    <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

int intValue =
        Eithers.caseOf(l)
                .left(Function.identity())
                .right(String::length);
21:26:48
@qp:grin.huqp *

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot generál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
  <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

int intValue =
        Eithers.caseOf(l)
                .left(Function.identity())
                .right(String::length);
21:30:14
@bkil:grin.hubkil
In reply to @qp:grin.hu

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot generál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
  <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

int intValue =
        Eithers.caseOf(l)
                .left(Function.identity())
                .right(String::length);
És október 6 18:00 mindenkinek jó lesz?
21:50:39
@qp:grin.huqpnekem jó21:50:51
@qp:grin.huqp *

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot generál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
  <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

int value = Eithers.caseOf(l).left(identity()).right(String::length);
21:51:26
@qp:grin.huqp *

derive4j - Java 8 annotation processor és framework pattern-matching és algebrai adattípusok deriválása interfészekből

Aki ismeri lombokot annak a módszer nem idegen: egy program java kódot derivál java kódból a nyelv hiányosságainak kiküszöbölése érdekében.
Kedvcsináló:

// Either ADT és pattern-matching deriválása egy egysoros interfészből
@Data
interface Either<A, B> {
  <X> X match(Function<A, X> left, Function<B, X> right);
}

példa használatra:

int value = Eithers.caseOf(l).left(identity()).right(String::length);
21:52:49
@qp:grin.huqp
"But I don't want to go among mad people," Alice remarked.
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad. You're mad."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
--Lewis Carroll, "Alice's Adventures in Wonderland"
23:02:34
@qp:grin.huqp
type FutureEitherOption[A] = OptionT[EitherT[Future, String, *], A]
23:10:11
23 Sep 2020
@bkil:grin.hubkil invited @macho314:matrix.org@macho314:matrix.org.14:18:27

Show newer messages


Back to Room ListRoom Version: 5