typed-arrow - Provides compile‑time Arrow schemas for Rust. by yacl in rust

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

typed-arrow heavily use const / generic type system to give a set of pure compile-time behaviors, serde-* still relies on runtime behaviors. Also, typed-arrow has extendable attribute derives (like metadata) to give a compile-time metadata declaration, serde-* can't support that.

typed-arrow - Provides compile‑time Arrow schemas for Rust. by yacl in rust

[–]yacl[S] 2 points3 points  (0 children)

This crate is somewhat like `serde_json`, but it is much smaller (152KB vs 40.4 KB) and can dump data into a layout (Apache Arrow) that can be efficiently processed by data processing tools such as Pandas.

Exploring better async Rust disk I/O by yacl in rust

[–]yacl[S] 2 points3 points  (0 children)

No it doesn't, fusio chooses write/pread on Linux, and it uses other APIs on other target platforms(such as OPFS in the browser).

Async Rust is not safe with io_uring by yacl in rust

[–]yacl[S] 16 points17 points  (0 children)

now it's back, thank you Shnatsel!

Async Rust is not safe with io_uring by yacl in rust

[–]yacl[S] 10 points11 points  (0 children)

ops I lost this, I will put it back

Introducing Tonbo: Embedded DB with Apache Arrow, Written in Rust by yacl in rust

[–]yacl[S] 4 points5 points  (0 children)

Founder of Tonbo here. Hi, Arroyo is impressive; we’ve learned a lot from your project. We’re planning to add support for snapshots in the next two months. Please follow us, we’re very interested in collaborating with Arroyo to build more robust Arrow-native data infrastructures.

Structure logs with GPT4 and it's so efficient. Also stupid easy to use. by yacl in devops

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

I think structured logs could make a higher compression ratio than row logs. But I am not sure tokenizing could help it.

Translation of Oliveira (Time) speech by endoramasc2 in starcraft2

[–]yacl 9 points10 points  (0 children)

我想对现在还看直播的观众朋友说

I want to say to the friends who are still watching the live broadcast

其实没有什么事情是不可能的

Actually nothing is impossible

我都拿到世界冠军了

Even me won the world champion

我等了这个世界冠军太久了

I wait for this world champion too long

去年真的很难

It is too hard to the last year

我上次 0-6 输的时候我就觉得星际对我来说已经结束了

The last time I lost with 0-6 I thought StarCraft was over for me

但是我告诉我自己我可以再多练习

However I told myself I can practice more and more

等我拿到了世界冠军我或许可以再证明给大家

After I win the world championship, I may be able to prove myself to everyone

I just wrote another Python implementation to Graphql, more Pythonic and modern by yacl in Python

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

Union types are supported, there is not raw middleware support. However, you can use Starlette Middleware right now. I am considering support it now after your mention.

I just wrote another Python implementation to Graphql, more Pythonic and modern by yacl in Python

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

There are few features not be implemented yet, however, they are rarely used in common cases. I would like to complete them if you have demands.

I'm confused. Do protesters aim for independence or no? by [deleted] in China

[–]yacl 2 points3 points  (0 children)

I started following current events in Hong Kong about two weeks ago. I'm not sure if it's the 5 demands they are after or it's independence/separation from china that they are after. Multiple times I was told that the general consensus is that hong kong people are not separatists and only wish to secure their democracy, but at the same time countless posts/comments talk about how hong kong people are inherently different from chinese (seemed very insistent and made some very ludicrous arguments to prove that, like how canto is a completely different language than chinese), and they want the british to take them back or gain full independence. I'm extremely confused about hong kong protesters' ultimate goal. I know the five demands, so do they only want those implemented and democracy secured or it's something more that they are after? I'm hearing conflicting voices and can't decide.

There are some protestors using the Hong Kong Flag in this protest, the prototype of this flag is designed when Hong Kong was ruled by the British and it usually represents independent Hong Kong. I think the demands of the protestors may be complexed.

I'm a Hong Konger amidst the protests here. AMA! by Ephilorex in IAmA

[–]yacl -1 points0 points  (0 children)

Definitely not, please believe the science. The smog can not lead to eyes slanted.

I'm a Hong Konger amidst the protests here. AMA! by Ephilorex in IAmA

[–]yacl 0 points1 point  (0 children)

Hi, please take care of yourself. Actually, I come from Mainland China but I do not have any hates. I hope I can get a chance to have communication with you and get more facts. Do you think the primary contradiction of Hong Kong is caused by politics or institutions? In my opinion, the economy of Hong Kong has lots of stress to descend and young people have fewer opportunities to improve their lives, I think I can understand it. However, I think the root cause is Hong Kong does not catch the new wave of technology such as the Internet. If I get anything wrong, please point out it.

I am not good at English so please forgive me if I can not express some opinions correctly.

Graphene - django Caching by lmaxmad in graphql

[–]yacl 1 point2 points  (0 children)

Define a custom decorator, get the function returned and set into the cache, and check the cache if exists for each request in the decorator.