blazebra

joined 2 years ago
[–] blazebra@programming.dev 1 points 2 months ago (1 children)

I wish feature requests won’t be closed silently as completed

[–] blazebra@programming.dev 1 points 2 months ago

I already have mine written quite a while ago. Why not obsidian? AsciiDoc and few other things Obs will miss. Works with SQLite and PostgreSQL. For pure native UI (not WebUI) miss only AsciiDoc grammar I’m working on.

For you… sql knowledge requirement depends on your likings: you can build very small or unoptimised app and be fine, you can make very nice, and complex one and have very complex SQL queries.

I discourage to use MySQL (and clones) due some… peculiarities.

[–] blazebra@programming.dev 1 points 2 months ago

The usual handling in Rust afterwards is in most cases log one error or return to upstream “there was an error”. In some rare cases all errors returned as a single case.

Both of these first are bad for i18n and finding what’s really happened in the middle.

[–] blazebra@programming.dev 0 points 3 months ago (2 children)

In that for, all error messages have been lost. If to add such output “for” is the most elegant solution.

[–] blazebra@programming.dev 1 points 3 months ago (1 children)

Which exactly?

[–] blazebra@programming.dev 1 points 3 months ago

Next step is to make it fully native, without any web view

[–] blazebra@programming.dev 1 points 3 months ago

It’s weird. Language support is weirder. Zed devs decide what language constructions are acceptable, and which are not.

[–] blazebra@programming.dev 1 points 6 months ago

I don’t think cargo-deny alone is enough. And many from Rust ecosystem thinks that if I specified version “1”, it will be enough forever. Many tools nowadays are installed by binstall, so binary will be older and older and won’t receive any updates.

[–] blazebra@programming.dev 3 points 7 months ago

Deku is a declarative binary parser. deku_string is an extension which currently provides utility wrappers for data vectors and unicode strings, which can be prefixed or fixed length. Additionally library provides support for 7-bit encoded integers from .NET.

For example, I often work with binary structures where strings are either length prefixed (with zero character in a buffer) or in fixed size buffer with a zero-ended sting inside.

There’s multiple examples with custom writer and reader functions, which work, but are less convenient to use.

Any additional ideas for utilities are welcome.

 

This is a small release to support Deku 0.20.0 release. The only incompatibility was an introduced descriptive-errors feature which is explicitly propagated at the moment.

The crate started as support decoding and encoding fixed and variable length unicode strings, but quite soon become more than this.

While there’s some ideas to implement, new ideas and improvements are always welcome.

[–] blazebra@programming.dev 1 points 8 months ago

There’s many components which could be split out from this JS engine such as Regex.

I’d love to see how it passes all ECMA tests

[–] blazebra@programming.dev 2 points 8 months ago (1 children)
[–] blazebra@programming.dev 2 points 9 months ago

You have to provide source to a rust repository. Otherwise, it’s impossible to compile and link Rust safely. There was an article in the topic.

Long story short you can prepare and link a binary library, but you can’t guarantee any type safety or additional optimisations.

 

New version of deku_string v 0.4.0. Notable changes:

  • Support for Vec<T> will all benefits of the library.
  • Full support for no_std (thanks for contribution).
  • Support for defmt library used in embedded environments.
  • New more readable documentation (including tests).

deku_string is a utility crate for deku, binary bit-aware parser with ability create serde-like models. Crate provides thin wrappers around String and Vec to support various common layouts such as fixed-length, prefix length (Pascal-like and .Net-like) and zero-ended strings.

Stay tuned for for more awesome news!

PS: Looking for contributors to provide 16-bit compile target support.

 

What’s new:

  • UTF-32 support
  • Optional serde support
  • 7-bit encoded unsigned integers like in .Net of all known fixed sizes
  • 7bit encoded u32 can be used as a size, to parse .Net strings
  • Unified implementation.

More is coming

https://crates.io/crates/deku_string

 

I just released helper library for deku to decode and encode strings in popular binary layouts (fixed length, pascal-like and c-like)

https://crates.io/crates/deku_string

view more: next ›