Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
azazel75
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
azazel75
3y ago
Some years ago with a friend we built a Lasersaur ( https://lasersaur.com ) from scratch. It is equipped with a 130 w CO2 laser. Amazing open source project. Unfortunately the guy that stays it abandoned the project, but there
2.
▲
by
azazel75
3y ago
The license kinda sucks though: ``` 3. USE RESTRICTIONS Licensee is expressly forbidden from: (a) Incorporating, modifying, or using the Software as part of any other product or service; ```
3.
▲
by
azazel75
7y ago
"Before Ethernet was common, BNC coaxial cables were used on some NICs as well" Yes, at that time Ethernet was coaxial as well, the 10Base2
4.
▲
by
azazel75
7y ago
So we live in a society that isn't able to find the resources to teach someone how to read and get free... Instead that people can buy an Android phone and become a slave of the technology... what a shame
5.
▲
New version (0.9) of JavaScripthon Python3-to-ES6 compiler is available
(gitlab.com)
1 points
by
azazel75
8y ago
|
0 comments
6.
▲
by
azazel75
9y ago
That's like a Google tax, with the plus that you consciously agree to let it track you more than ever... wtf!
7.
▲
by
azazel75
11y ago
I could assure you that even transcrypt cannot transpile Django. It does multiple inheritance with a polyfill and overally is much more "fatter" than JavaScripthon. But with JavaScripthon you can use any tool available in JS land
8.
▲
by
azazel75
11y ago
It's in development, as many others software projects are, and is far from complete. The goal is to translate as much of core semantics as possible, but i doubt that all the core semantics will be translated. One for all is multi inher
9.
▲
by
azazel75
11y ago
It cannot be used to convert python frameworks to javascript, nor Django nor any other
10.
▲
by
azazel75
11y ago
Good :-) Do you have any link for this chrome detail about optimization? str(x) conversion is missing... i'll will implement it asap
11.
▲
by
azazel75
11y ago
The main reason is... context switching, also i'm a big fan of python's standard library, but I have yet to do any complete work just with it.
12.
▲
by
azazel75
11y ago
1) it renders import and from...import statements to equivalent ES6 imports. If you use something like Webpack down the pipeline you can already mix ES6 imports and CommonJS requires. Also, BabelJS by default transpiles ES6 imports to Commo
13.
▲
by
azazel75
11y ago
I'm a big fan of RapydScript, unfortunately it requires nodejs and I would prefer not have to.. but hey, there is a space for everybody ;-)
14.
▲
by
azazel75
11y ago
It's implementable really and it is half-implemented, have a look at the call conventions... additional keyword arguments can be specified without any problem The problem is that there's no kwargs equivalent in js land.. and pr
15.
▲
by
azazel75
11y ago
Yes, I drink it everyday
16.
▲
by
azazel75
11y ago
Your post seems quite imprecise about Python's semantics...
17.
▲
by
azazel75
11y ago
ops, sorry for that. Issues are enabled now ;-)
18.
▲
by
azazel75
11y ago
For-of only works for iterable sources, it would not be a complete replacement of for...in, also it seems a bit slower that for...in as of now.. see https://kpdecker.github.io/six-speed/
19.
▲
by
azazel75
11y ago
If jQuery is installed globally, without package management, just use: from __globals__ import jQuery .... jQuery('#an_id')...
20.
▲
by
azazel75
11y ago
Javascripthon supports converting either a python source file or a python function object directly, but actually using the embedded js interpreter to do the transpilation takes some time due to BabelJS code bootstrap time. Having a "HO
21.
▲
by
azazel75
11y ago
Python lists are supported: * as literals; * in for loops; Keyword arguments accumulator has no corresponding feature in the ES6 world, as far as I know....
22.
▲
by
azazel75
11y ago
Have a look at the example! ;-)
23.
▲
by
azazel75
11y ago
The former, it translates Python 3.5 syntax and some of the core semantics to ES6+ JavaScript and then BabelJS is used to transpile that ES6 JS to ES5. All this retaining a sourcemap that maps back to the original Python sources. It does al
24.
▲
A Python-to-JavaScript Transpiler with BabelJS and SourceMaps
(github.com)
114 points
by
azazel75
11y ago
|
62 comments
25.
▲
by
azazel75
11y ago
> the ecosystem is still running 2.7. I cant wait to switch to Py3. Which one? Pyramid and SQLAlchemy work like a charm in Py3. Until you really name what your need is, that's just fud.
26.
▲
by
azazel75
11y ago
We use ayncio and async/await coroutines of Python 3.5 on each of our packages. I hope that PyPy will have a Py3.5 compatible interpreter someday, but CPython is good enough for now.