AlterionX

AlterionX

Member Since 8 years ago

Experience Points
7
follower
Lessons Completed
3
follow
Lessons Completed
13
stars
Best Reply Awards
22
repos

33 contributions in the last year

Pinned
⚡ Goal: A Real Time Renderer with a variety of backends
⚡ My website, built with Rust
⚡ Particulate matters -- Graphics final project
⚡ Running tests
Activity
Jan
10
1 week ago
push

AlterionX push AlterionX/benxu-dev

AlterionX
AlterionX

Tweak game slide's text to update for recent shifts.

commit sha: 994e2d11e9948350287f750075c920ffccd9a148

push time in 1 week ago
Activity icon
issue

AlterionX issue AlterionX/benxu-dev

AlterionX
AlterionX

How do you embed WebAssembly?

Hi, I currently built a fairly large website in nearly the same way as you, with Rocket and Maud. So far, the experience has been good, and the site is performant.

I now want to add a page with a much more involved UI (basically a drag and drop graph interface) and I would like to use Seed to build a Web App and embed it. I'm trying to understand how exactly you were able to embed the web app in this, and I'm a little confused. What part of the site does the web app handle, and what parts are handled by the rocket server?

A little help would be super appreciated! Thanks

Activity icon
issue

AlterionX issue comment AlterionX/benxu-dev

AlterionX
AlterionX

How do you embed WebAssembly?

Hi, I currently built a fairly large website in nearly the same way as you, with Rocket and Maud. So far, the experience has been good, and the site is performant.

I now want to add a page with a much more involved UI (basically a drag and drop graph interface) and I would like to use Seed to build a Web App and embed it. I'm trying to understand how exactly you were able to embed the web app in this, and I'm a little confused. What part of the site does the web app handle, and what parts are handled by the rocket server?

A little help would be super appreciated! Thanks

AlterionX
AlterionX

Oops didn't mean to close it.

Activity icon
issue

AlterionX issue AlterionX/benxu-dev

AlterionX
AlterionX

How do you embed WebAssembly?

Hi, I currently built a fairly large website in nearly the same way as you, with Rocket and Maud. So far, the experience has been good, and the site is performant.

I now want to add a page with a much more involved UI (basically a drag and drop graph interface) and I would like to use Seed to build a Web App and embed it. I'm trying to understand how exactly you were able to embed the web app in this, and I'm a little confused. What part of the site does the web app handle, and what parts are handled by the rocket server?

A little help would be super appreciated! Thanks

Activity icon
issue

AlterionX issue comment AlterionX/benxu-dev

AlterionX
AlterionX

How do you embed WebAssembly?

Hi, I currently built a fairly large website in nearly the same way as you, with Rocket and Maud. So far, the experience has been good, and the site is performant.

I now want to add a page with a much more involved UI (basically a drag and drop graph interface) and I would like to use Seed to build a Web App and embed it. I'm trying to understand how exactly you were able to embed the web app in this, and I'm a little confused. What part of the site does the web app handle, and what parts are handled by the rocket server?

A little help would be super appreciated! Thanks

AlterionX
AlterionX

Not sure if you're still need help with this (this was a few months ago), but a little JS script is used here to load up the initial WASM kernel. While you can do this manually, it's usually generated by the wasm compiler.

You need to include this file as a script in your HTML document.

Nov
24
1 month ago
push

AlterionX push AlterionX/.cfg

AlterionX
AlterionX

Update zshrc for p10k, init.vim

commit sha: e88f7ca643b4cf9aeebd67fe32639c489e15385b

push time in 1 month ago
Activity icon
issue

AlterionX issue comment dimforge/nalgebra

AlterionX
AlterionX

Bug (?): MatrixSlice with fixed length can no longer be converted into an primitive array via From/Into

Title.

Upon migrating from 0.18, this code no longer seems to work. I've been digging around and trying to find an equivalent without much luck. I could manually create the array, but if there's a better way...

fn stuff() -> [f32; 3] {
    let m: Matrix3<f32> = blah;
    return m.column(n).into();
}
Activity icon
issue

AlterionX issue comment manuelmauro/algonaut

AlterionX
AlterionX

Compile-time validation on builders

The current builders are minimal implementations of the pattern that do not apply any compile-time validation. This crate offers a solution to this problem https://crates.io/crates/typed-builder while suffering from some limitations.

AlterionX
AlterionX

A slight suggestion: I think the default builder should just be a tight wrapper of the custom endpoint builder struct. Reasoning being -- creating a custom endpoint should be a strictly more powerful ability than creating the default endpoint. It might also help with the discovery of the custom endpoint builder.

Oct
30
2 months ago
Activity icon
issue

AlterionX issue comment manuelmauro/algonaut

AlterionX
AlterionX

Add ability to include additional custom headers.

It's useful for interfacing with third party services (e.g. PureStake) if they don't require a completely different API and instead just an API key.

There were a few methods earlier related to custom headers, whose values were largely ignored. Not entirely sure why this was the case, but went ahead and wired the pieces together.

The API is a little inconsistent (headers vs header) but wasn't sure if there was a reason for going with one or the other or if I should have implemented both.

AlterionX
AlterionX

Made the changes. Also, ended up adding an additional small note in the builder's docs referencing the custom builder.

push

AlterionX push AlterionX/algonaut

AlterionX
AlterionX

Merge pull request #105 from AlterionX/rustls-feature

Add feature flags for selecting rustls or openssl as the tls implementation.

AlterionX
AlterionX

Add ability to include additional headers in kmd, algod, indexer clients via the builder.

AlterionX
AlterionX

Revert previous change + remove inaccessible and empty headers map from Algod's v1 client.

commit sha: 68156324e0f0cf49b891d0ca8193bd1619a0a2ef

push time in 2 months ago
Oct
29
2 months ago
Activity icon
issue

AlterionX issue comment manuelmauro/algonaut

AlterionX
AlterionX

Add ability to include additional custom headers.

It's useful for interfacing with third party services (e.g. PureStake) if they don't require a completely different API and instead just an API key.

There were a few methods earlier related to custom headers, whose values were largely ignored. Not entirely sure why this was the case, but went ahead and wired the pieces together.

The API is a little inconsistent (headers vs header) but wasn't sure if there was a reason for going with one or the other or if I should have implemented both.

AlterionX
AlterionX

Ah, no. I totally missed that. My bad for not reading the docs entirely.

I've never seen endpoint referring to this specific kind of entity before, so I guess it just didn't really click when I read it. I've always seen endpoint referring to a specific endpoint (e.g. /v2/account/somethingnotinthestandardapi) before, so my eyes kind of skipped over it. Again, my bad.

However, and I might be overstepping here, but would it be okay to change the name to something like AlgodCustomApiBuilder instead? Or even merge AlgodBuilder and AlgodCustomEndpointBuilder by allowing AlgodBuilder to specify an optional custom "root" url along with headers? That's a bit of a radical change, though, so... yeah. Feel free to ignore this paragraph.

In any case, I'm would like to to edit the PR to remove the headers function in KmdBuilder at least, if there's not a specific reason to keep it around. Or mark it deprecated, at least.

Oct
22
3 months ago
pull request

AlterionX pull request manuelmauro/algonaut

AlterionX
AlterionX

Add ability to include additional custom headers.

It's useful for interfacing with third party services (e.g. PureStake) if they don't require a completely different API and instead just an API key.

There were a few methods earlier related to custom headers, whose values were largely ignored. Not entirely sure why this was the case, but went ahead and wired the pieces together.

The API is a little inconsistent (headers vs header) but wasn't sure if there was a reason for going with one or the other or if I should have implemented both.