Skip to content

Conversation

@dyst5422
Copy link

@dyst5422 dyst5422 commented Mar 5, 2025

Adds the reclat function and a simple test against it.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2025

const Module = this.module;
// create input pointer

const rectan_ptr = Module._malloc(DOUBLE_SIZE * 3);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be freed below after results have been read.

@camargo
Copy link
Member

camargo commented Mar 22, 2025

@gkjohnson Are you good with this?

@gkjohnson
Copy link
Collaborator

I'm not sure if I feel we need to expose every spice function via the lib interface. This function is extremely simple and to be honest porting it directly would be a lot simpler and less error prone than dealing with all of the WASM pointer and memory management. Here's the cspice reclat implementation in a Github mirror repo:

https://github.com/arturania/cspice/blob/53bce326267dd2d6d567de92b15869c9ed7d0629/src/reclat_c.c#L189-L239

@dyst5422 dyst5422 closed this Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants