Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bit<>char<>float conversion #341

Open
bladedsupernova opened this issue Mar 28, 2020 · 1 comment
Open

bit<>char<>float conversion #341

bladedsupernova opened this issue Mar 28, 2020 · 1 comment
Labels
category: plugin Anything in the plugins folder status: discussion type: feature request New feature or request

Comments

@bladedsupernova
Copy link

My projects often deal with text prediction / compression. Meaning I need to predict the next bit of the sentence. The "code" made during this is a long number and also needs to be made into a binary form to store the super long number. So there's a constant need to transform bytes to bits and back. I also find integer/float to text conversion commonly needed, and conversion back to integer/float too. These last steps in my project resulted in me having to finish the code in Python editor, instead of being fully shareable as blocks.

I see the create_text_with block can transform a number into a string type. It would be very useful to have such other similar block that convert string/integer(/float)/bit types to and from each other.

Perhaps you could create a switch for just Python if it won't work for all 5 languages.

@moniika
Copy link
Contributor

moniika commented Mar 30, 2020

Typing is a tricky business, but a block to convert types sounds like it could be an interesting/useful feature.
As you mentioned, it wouldn't work for all 5 languages and I doing think it would be a commonly used block. For that reason, I don't think it would fit in Blockly core, but it could be an interesting candidate to add to Blockly Samples. We are still working out our strategy for contributing and the releasing to Blockly Samples, so I wouldn't expect us to address this in the near future.
You could try to implement a custom block yourself in the meantime.

@rachel-fenichel rachel-fenichel transferred this issue from google/blockly Aug 5, 2020
@rachel-fenichel rachel-fenichel added category: plugin Anything in the plugins folder status: discussion type: feature request New feature or request labels Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: plugin Anything in the plugins folder status: discussion type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants