
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Q lets you have a sense of mathematics using a keyboard, the same as you would with a pen.
+---Discrete world---+ +------Mathematics-------+
| Ruby | | axiom |
| TeX |<------ Q ------>| Uncountable noun |
| Python | | real number topology |
+--------------------+ +------------------------+
The code below is input and output for the q-lang interpreter
(you can try it by qlang -i
)
d/dx(cos(x))
=> ( - sin( x ) )
# You can omit parentheses
d/dx log(x)
=> ( 1 / x )
d/dy xy
=> ( x )
d/dx e^x
=> e ^ x
S(log(x)dx)[0..1]
=> - oo
S(sin(x)dx)[0..pi]
=> 2.0
S(cos(x)dx)[0..pi]
=> 0.0
lim[x->oo] (1 + 1/x)^x
=> 2.7182682371744895
lim[x->0] 1/x
=> oo
∑[x=0,10] x
=> 55.0
(1 2 3; 4 5 6)
=> (1 2 3; 4 5 6)
(1 2 3; 4 5 6) + (1 2 3; 4 5 6)
=> (2 4 6; 8 10 12)
(1 2 3; 4 5 6) * (1 2 3)
=> (14 32)
f(x, y) = xy
f(1, 2)
=> 2
Install qlang gem.
$ gem install qlang
$ qlang -i
Q:->
$ qlang -r foo.q
$ qlang -rb foo.q
$ qlang -py foo.q
class ExampleClass
def example_method
#your Ruby codes
......
I love mathematics.
a = (1 3 4)
# your Q codes
Q.E.D
end
end
$ qlang -rb example.rb
class ExampleClass
def example_method
#your Ruby codes
......
a = Vector[1, 3, 4]
end
end
Any PRs or issues are welcome. You can become a commiter, even if you only commit once.
FAQs
Unknown package
We found that qlang demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.