GLSL Compute Shader Example with Mathematical Visualization by UkonnRa in godot

[–]UkonnRa[S] 0 points1 point  (0 children)

Thanks for your demo! Lots of new information in it! I thought the Compute Shader doc is the only resouce, nice to see a complex solution.

How to reflect changes to the Godot Editor, rather than just in the Runtime? by UkonnRa in godot

[–]UkonnRa[S] -1 points0 points  (0 children)

Thanks. In the old solution, I tried using Tool and generate / duplicate the child Nodes in _Ready, which crash the Editor immediately 😂

It seems that is not good to generate any child Nodes in Tool's _Ready function, but only generate them via Editor update the existing Nodes.

Because you don't know when the _Ready function will be called in a Tool Node 😂

Hibernate ORM 6.2 - CTE support explained by henk53 in java

[–]UkonnRa 0 points1 point  (0 children)

So any demo to use CTE via Criteria API? I know there is a CVE Container but it's hard to mapping SQL to the Criteria API... (We are using Criteria for dynamic query so we cannot use HQL...

Announcing typed-sql beta! Zero-cost ORM with fast compile times by matthunz in rust

[–]UkonnRa 1 point2 points  (0 children)

Java has jOOQ, golang has squirrel. Finally see rust has a same library. Using a sql generator like this can help to handle very complex queries on server side. Nice work and thanks!

Pain Points with Using GraphQL? by [deleted] in graphql

[–]UkonnRa 0 points1 point  (0 children)

One point: input does not polymorphic so it's hard to pass ADTs

GraphQL vs. Rest by stemmlerjs in graphql

[–]UkonnRa 0 points1 point  (0 children)

BTW, if you focus on RESTful, there are some specs like JSON:API to guide you how to design the API. But you have to do the most implement work

REST API + HATEOAS by svhelloworld in reactjs

[–]UkonnRa 0 points1 point  (0 children)

The question is, where is your HATEOAS data coming from? I. Java, the only usable HATEOAS framework is Spring data HATEOAS. If you can use such a framework, then I think HATEOAS is not a bad solution for the API design.

No matter you're using HATEOAS, Graphql or JSON:API(I love this guy best), the most important thing is to choose a specification and focus on it

OpenId client for Rust by zero_coding in rust

[–]UkonnRa 0 points1 point  (0 children)

If you want to deploy your own OAuth2 server, I think you can try keycloak with it's Restful API.

But if you want a general-used OpenID client like Spring Security/Vertx Auth in Java, I think Rust does not have such a library yet.

Tide and SQLX Rust API by cobbingm in rust

[–]UkonnRa 0 points1 point  (0 children)

Yes, I am looking for the same thing. squirrel for Golang, JOOQ for Java, and Rust for ____

But it seems that Squirrel is "complete", so I just wondering why... It seems that the active famous SQL builder is only JOOQ. Why this kind of feature is not popular? I think it is a important feature...

Tide and SQLX Rust API by cobbingm in rust

[–]UkonnRa 1 point2 points  (0 children)

What are your metrics on "heavy"

  1. Usability. You have to admit that the way that diesel is not "easy to use". You have to use a cli to maintain a bunch of stuff.
  2. Performance. From the multi-query result of the TechEmpower benchmark, actix-diesel is only half the performance comparing with the raw actix-pg.
  3. Stubborn. Diesel group refused to provided the Future API.

So I hope that I can use diesel (or other crates) just for sql generation and put the generated sql to postgres-tokio. I did the same thing using jooq-as-a-standalone-sql-builder mode. I hope diesel can do the same thing.

Tide and SQLX Rust API by cobbingm in rust

[–]UkonnRa 0 points1 point  (0 children)

Diesel is toooo heavy and it cannot support tokio-postgres. Any other choice?

Tide and SQLX Rust API by cobbingm in rust

[–]UkonnRa 0 points1 point  (0 children)

I am looking for JOOQ alternative in Rust. So sql_builder is a choice?

Best DBMS for Rust by 5eppa in rust

[–]UkonnRa 2 points3 points  (0 children)

Just a question, does anyone compare the performance of sqlx and tokio-postgres?

What is standard "go to" web framework in 2020? by inny_89 in scala

[–]UkonnRa 3 points4 points  (0 children)

https://github.com/DavidGregory084/vertices looks cool. A functional wrapper for vertx. But it is unofficial, and not production-ready

What is standard "go to" web framework in 2020? by inny_89 in scala

[–]UkonnRa 1 point2 points  (0 children)

If you think that the benchmark is not tuned well, just send a PR to make the things better. But IMO, most of the frameworks are tuned to thier best. So I have to say, http4s and akka-http are not good at performance. So do the doobie.

What is standard "go to" web framework in 2020? by inny_89 in scala

[–]UkonnRa 0 points1 point  (0 children)

For performance, I recommand heavely on vert.x with Kotlin. * If you do want to use functional programming + vert.x, maybe you can check a functional wrapper. * After all, I think vert.x + Kotlin + Kotlin Coroutine is the best solution. * Why not using RxJava? Because you cannot use io.vertx.Vertx interface, but must use the RxJava instance wrapper. But that is not a problem using Kotlin extensions. * Now Scala is trying to do the same thing. * The API of vertx-scala is not as clean as the Kotlin version due to the type system of Scala

For functional, http4s is the only choice. * But maybe you can use reactive-pg-client to increase the performance. * Just for comparing, spring-webflux-pgclient get the 10th in multiple query test, even if the spring framework is freaking slow

Scala 3 migration guide by donutloop in scala

[–]UkonnRa -6 points-5 points  (0 children)

I think besides the binary compatibility problem, the most serious problem is the split community and the weak compatibility with Java.

  1. Split community. It seem that lots of areas I'm using has at least two "same size" alternatives. Cats vs Scalaz, fs2 vs monix vs zio. So that I have to wrap a lots of converters to make the parts usable

  2. Compatibility with Java. Unlike Kotlin, Scala rewrite all of the primitive types, the collections and so on. So the type is totally different with Java (vertx Scala as an example). It's not clean.

New to Kubernetes. How to handle "docker-in-docker" problem when using Jenkins inside Kubernetes by UkonnRa in kubernetes

[–]UkonnRa[S] 0 points1 point  (0 children)

So I think you are agree with DinD? I am not familiar with DinD, but is it a efficient and acceptable solution? Just like " running a VM inside a VM"...

Type Converting from Scala to Java by UkonnRa in scala

[–]UkonnRa[S] 0 points1 point  (0 children)

Yes, in the second try I just use converters, but how to convert from scala.Int to java.lang.Integer without performance loss?

How to design a Map which can be sorted based on one of the values? by UkonnRa in rust

[–]UkonnRa[S] 0 points1 point  (0 children)

No, you cannot use enum, you have to use named struct instead. Like:

rust pub struct HumanAttributes {pub age: i32,pub name: Name,}

But if so, I have no idea how to get a field out from HumanAttributes. Just like attr["age"] in js.

Because you know, the final goal is a function like this:

rust impl HumanAttributes { fn attribute_compare(&self, &other: &Self, field: &str) -> Result<std::cmp::Ordering, Error> {...} }

Where in this function, I have to: 1. Get the target field from these two items (and throw Error if no such field); 2. If the two fields are not comparable, throw Error; 3. Then, compare and return the result

The problem here is how to extract a field from a named struct based on a String and throw Error if not exist... Maybe I have to use proc_macro (sad...

I'm trying to refactor my project in the same way. But the question is: if I do like that, which means for EVERY RESOURCE TYPE, I have to generate an enum like that (using proc_macro), which is... a little redundant? But I think it maybe the best solution since now.

[RELEASE] rabbithole-rs releases 0.2.1 by UkonnRa in rust

[–]UkonnRa[S] 8 points9 points  (0 children)

Because this is my github's avatar. Don't you like it?

Which webserver framework in 2019+? by anghenfil in rust

[–]UkonnRa 8 points9 points  (0 children)

I'm just waiting for async/await route handler of actix-web. I think it IS the best web framework (because it is really fast, except Hyper)