I like array programming and recreational programming. Normally I program in Ruby and APL.
I like making learning materials and documentation (K Wiki, Factor, BQN, etc).
I also post on my blog.
Contact me at any of the links here.
BQN programming language vscode plugin (symbol input, syntax highlighting)
License: MIT License
when i hover over a double struck character, the descriptions aren't showing. I haven't tested all symbols, but after testing all double struck characters 𝕩𝕏𝕗𝔽𝕘𝔾𝕣 and a few other non struck symbols, it seems only the double strucked are broken.
This is my settings.json
"security.workspace.trust.untrustedFiles": "open",
"window.zoomLevel": 2
}
{
"editor.formatOnSave": true,
"haskell.hlint.logLevel": "warn",
"haskell.hlint.run": "onSave",
"haskell.formattingProvider": "ormolu",
"bqn.executablePath": "/usr/local/bin/bqn",
// May be necessary
// "haskell.hlint.executablePath": ""
}
on my Ubuntu 22.10. But it errors out with Ctr-Shift-Enter with The terminal process failed to launch: Path to shell executable "cbqn" does not exist. Should I just do a symbolic link? Total Beginner to vscode, BTW.
Would it be possible to add a completion based on function name, akin to BQNPAD completion? It really lowers the barrier of entry, when you can type shape
and get a correct symbol, when you don't remember them all by heart yet.
\+
, \-
, \=
and \8
don't work. other escapes like \_
and \m
do, however
So the project could be found on https://github.com/topics/bqn
VS Code has a word completion feature that looks at words that are in any of the currently open files. For BQN, it includes characters that aren’t part of the identifier:
In the above screen capture, the expected word completions are modifier1
and modifier2
.
Another feature of VS Code is to highlight the word that the cursor is currently on. This seems to include too many characters as well, and this is probably caused by the same:
Using BQN language v0.1.5.
When used together with the Vim extension, if the cursor is before a character, completing a backslash substitution places the cursor after that character, instead of after the newly inserted character. For instance, in the below screen capture, the cursor is expected to be positioned before the f
instead of after the f
after the substitution:
Another issue is that, when entering a command (press :
in normal mode), backslashes cannot be inserted into the command; they are instead inserted into the file:
Using BQN language v0.1.5 and Vim v1.26.0.
First line has first Hello being blue, second is white, and _hello is also white.
Second and third line show that for underscore names it's broken in a similar way.
theoretically you should write arrays of vars with lowercase and no underscores anyways, but sometimes i want to signify that an array of values will be used as functions, or just a specific value.
Hovering over system functions like •Out
doesn't show their description - it would be nice to have these as well.
The fork upstream fixing? Pull request or abandonware, as it would affect my source tree decision.
I'm a beginner and I can't remember how to type the primitives, and looking them up all the time is too time-consuming. I wonder if there is a solution to this.
In some other languages, I can type \circ
to get the ∘
symbol. I realize there's a conflict between having \c
immediately converting to ↓
versus it being the start of \circ
, but I wonder if there's some way to get functionality that's similar in spirit. Perhaps a separate mode for primitive-name entry where it doesn't convert until I press tab
, or a separate prefix key for verbose entry.
Forgive my ignorance, but I am trying to add ‿ using the vscode extension, but aside from ctrl-space and searching, I can't seem to get it to work.
Would love some pointers here, and thank you for such a great extension!!
Scalar characters like 'a' and 'b' show as blue. it'd make more sense for them to be orange like "a" and "b".
Open-VSX is an alternate extension marketplace that's used by default for vscodium users and people running Arch Linux. It'd be nice if you made this extension available there as well.
Example would be
E←+
•Show 3{𝕩E𝕨}12
E here is colored white instead of blue
I am using the vim plugin. I don't know if this is an issue with them or with this plugin, or just the interactions between the two.
When I want to insert a bqn primitive to the left of some other text, the cursor jumps one character too far to the right.
E.g. If I have a file with contents:
Hello, World!
If the cursor is between the o and r in world, and I want to type a special character like ↕, the cursor ends up between r and l, instead of still being before r.
Curiously, this only happens when entering some characters. The 'double letters' like 𝕩 and 𝕎 don't have the same problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.