Better HN
topnewbestaskshowjobs
Log inSign up

fyzix

284 karma · joined Mar 13, 2021 (5y ago) · 122 submissions

Submissions

comment 1mo ago · link · parent

I want you to take a look before I add this to my benchmark as it's a fair bit slower than golang. The elf64 backend is not very optimized. Here's the PR with the areas where it falls short: https://github.com/zupat/related_post_gen/pull/598

comment 1mo ago · link · parent

How is it possible rotate keys if you disable deployments? You're basically telling us to take our services offline...

comment 7mo ago · link · parent

They were forced to switch when the dominant military power decided to rugpull on August 15, 1971.

comment 1y ago · link · parent

This is closed source software and the github[1] indicates that it will be open in the future so why are you marketing it as opensource in the present?

[1]: https://github.com/apicatlabs/apicat

comment 1y ago · link · parent

28% of new iOS apps are made with flutter and it's the #1 cross platform framework on stack overflow 2024 survey so I highly doubt it has flatlined.

https://flutter.dev/multi-platform/ios

https://survey.stackoverflow.co/2024/technology#1-other-fram...

comment 2y ago · link · parent

What’s the file size limit for wasm modules? Do you get charged for cpu while awaiting I/O? Do edge apps run before or after cdn caching?

comment 2y ago · link · parent

> https://blog.jetbrains.com/kotlin/2023/05/compose-multiplatf... > > "On iOS, Compose Multiplatform user interfaces are rendered via a canvas implementation based on the graphics library Skiko [Skia for Kotlin]." > > So yes — it foregoes native controls for a canvas implementation that leverages the same 2D graphics library used for Chrome and Flutter.

fyi, flutter now uses a new graphics lib called impeller. It's not yet stable for Android though.

https://docs.flutter.dev/perf/impeller

comment 2y ago · link · parent

A list of features would be nice.

comment 2y ago · link · parent

It sacrifices maintainability and robustness to save a measly 80 bytes (I counted).

comment 2y ago · link · parent

Is there any particular reason why you didn't add types to the params? I'm just curious why python devs don't embrace typing more.

comment 2y ago · link · parent

Flutter if you don't need multi-window support. Examples:

Ubuntu AppCenter: https://github.com/ubuntu/app-center

Android Nearby Share (Windows): https://www.android.com/better-together/nearby-share-app/

Google OneVPN: https://one.google.com/about/vpn

Rows.com (spreadsheets): https://www.youtube.com/watch?v=OEdQXBUPYOE

Superlist (project management): https://www.youtube.com/watch?v=ihpcubpQHA0

Supernova (collab. design): https://flutter.dev/showcase/supernova

Rive studio (animation): https://flutter.dev/showcase/rive

APIDash (Postman alt): https://github.com/foss42/apidash

comment 2y ago · link · parent

Looks promising, this would be awesome for flutter.

comment 2y ago · link · parent

Is it ready for benchmarking? D currently sits at the top of https://github.com/jinyus/related_post_gen and it would be interesting to see how neat stacks up.

comment 2y ago · link · parent

> Zotero is a free, easy-to-use research tool that helps you collect, organize, annotate, cite, and share your work.

comment 2y ago · link · parent

The author seems to be chasing the small size trophy at any cost...to the point where he's using "var" instead of "const" because it saves a few bytes. Not indicative of someone serious...

comment 3y ago · link · parent

I think my benchmark[1] would be a great test for this. The jq[2] version takes 50s on my machine.

[1] : https://github.com/jinyus/related_post_gen

[2]: https://github.com/jinyus/related_post_gen/blob/main/jq/rela...

comment 3y ago · link · parent

Thanks, should've grepped for "max". But the amount of keys wasn't mentioned.

comment 3y ago · link · parent

What are the limits regarding the max size of value and number of keys? Docs doesn't mention...

comment 3y ago · link · parent

What happens if 'find()' returns a list and you call '.text()'. Intuition tells me it should fail but maybe it implicitly gets the text from the first item if it exists.

Either way, I think you create a separate method 'find_all()' that returns a list to make the API easier to reason about.

comment 3y ago · link · parent

I'm very new to this kind of service, but do you have to write your own rulesets for each site you want to bypass? The repo doesn't seem to include much...

comment 3y ago · link · parent

I primarily use F# on linux and the experience is very smooth.

editor: VSCode + ionide extension

stdlib: F# has its own stdlib but it can also access all of dotnet's stdlib seemlessly.

libs: Many of the 3rd party libs are written in C# in an OOP style but you can still use them. Most of the popluar ones have functional F# wrappers if you don't like OOP.

build: the dotnet cli is very advanced and not too hard to grok.

pkg: You can use nuget but most F# devs use paket

comment 3y ago · link · parent

I'm usually a crypto sceptic but your story scares me, because it'll only get worse with time.

comment 3y ago · link · parent

The videos were working earlier in the week...they're returning a 403 now.

Repo with slides: https://github.com/jinyus/Fsharp-Teaching

comment 3y ago · link · parent

Flutter apps are written in dart which compiles to native code or js/wasm on web.

Dart can interop with swift/obj-C/Java/Kotlin through the use of channels.

Dart can interop with C/Rust/C++ directly through FFI[1]

[1]: https://dart.dev/guides/libraries/c-interop

comment 3y ago · link · parent

Any eta on a json module?

comment 3y ago · link · parent

Fast compilation, Fast runtime, Easy to learn, Easy to distribute, Easy concurrency.

ps: I wrote a data processing benchmark[1] and go is currently leading the charts. I ported it to c++ but it's not performing as expected. Take a look if you have the time.

[1]: https://github.com/jinyus/related_post_gen

comment 3y ago · link · parent

Because it uses the same object for all items in the array. Luckily, they are just placeholders and aren't being mutated.

comment 3y ago · link · parent

I was surprised by that too. They are running the same function and I/O is excluded so I believe this might just be a comparison with v8 and jscore.

comment 3y ago · link · parent

I ported the go version to c++ but it's very slow so I excluded it from the charts...as that'd be misleading.

It's in the repo if you want to take a look. I have very little experience with c++.

comment 3y ago · link · parent

The rust solution is not using std hashmap. It uses FXhashmap as recommended by the rust perf book: https://nnethercote.github.io/perf-book/hashing.html
12345