Better HN
topnewbestaskshowjobs
Log inSign up

JdeH

85 karma · joined Feb 5, 2016 (10y ago) · 45 submissions

Submissions

comment 8y ago · link · parent

Down in the Netherlands as well. So "notjustme"...

comment 8y ago · link · parent

Thanks for reporting the broken links, they have been fixed. And, as we're trying to port more standard libraries, help is very welcome.

comment 8y ago · link · parent

I'm afraid the current webpage is a DYI project. Having been a freelance technical / scientific application programmer for most of my life, web design is just something I do if really needed. In the long run probably the site should be made by "real" web designer.

Meanwhile can you indicate what's most disturbing about it? I guess the mobile experience is the most problematic? Or just the layout? Fonts? Accessability? We should probably have a professionally designed logo as well. But currently we're focused on making the compiler better. 3.6 -> 3.7 was really a big step, due to the modules.

There will also be a special website to play with Transcrypt. The URL was already reserved: tsfiddle.org. But it will be a while until somebody finds the time to turn it into a playground / educational site. Everyone working on Transcrypt has a daytime job as well, that's how it is with open source, although the past months I think most of my time was spent on Transcrypt.

The project was born from practical needs for a medical imaging project. In my experience the switch to Python is a great improvement in productivity and clearness. And it's more fun, above all...

4.

Show HN: Transcrypt 3.7 Python to JavaScript compiler: dataclasses, JS6 modules(transcrypt.org ↗)

5 points · by JdeH · 8y ago · 5 comments

comment 8y ago · link · parent

This is an early experience release. Official release will be in July. For production use v3.6.101. http://www.transcrypt.org

6.

Show HN: Transcrypt Python to JavaScript compiler w. ES6 modules, alpha release(github.com ↗)

1 points · by JdeH · 8y ago · 1 comment

comment 8y ago · link · parent

Starting with Transcrypt v3.6.101 it is now possible to create native JavaScript component frameworks using the Transcrypt Python to JavaScript compiler. This makes it possible to write compact, fast JavaScript components for the browser in Python.

The project can be found at:

https://github.com/qquick/Transcrypt

Components can be freely mixed on a page without requiring recompilation. A developer doesn't need Transcrypt or any knowledge of it to use such a framework.

Each page has one unit that contains the Transcrypt runtime and, if needed, any central facilities. It is compiled with the -u .run switch. In addition each page can hold as many separate components as needed. Compile these with the -u .com switch.

A loader is generated, accepting a list of components. By varying this list, each page can have its own subset of components, without the need to recompile. The generated JavaScript code for components can be very small, typically a few hundred bytes. The runtime and central facilities are included in the page only once.

8.

Show HN: Transcrypt Python to JavaScript compiler can now generate native JavaScript components(transcrypt.org ↗)

9 points · by JdeH · 8y ago · 1 comment

comment 9y ago · link · parent

By the way, the Node demo isn't online, but available on github (and in the pip-installation):

https://github.com/QQuick/Transcrypt/blob/master/transcrypt/...

comment 9y ago · link · parent

It has been fixed. Sorry, it's the demo devil, I guess...

comment 9y ago · link · parent

That's very bad! I'll repair it!

12.

Transcrypt Python-JS compiler now supports async/await(transcrypt.org ↗)

3 points · by JdeH · 9y ago · 5 comments

comment 9y ago · link · parent

Do you want them to be able to start programming like "childsplay", but maybe use it professionally later on?

In that case Python is a good choice. It's the #1 language in education world wide. I used it to teach programming to my son. It is free, low threshold, and I've earned a living with it for many years.

Some experimentation can be done on-line without installing anything.

https://trinket.io/

http://www.transcrypt.org/live/turtle_site/turtle_site.html

But of course in remote places there may be no fast internet connection.

When I teach programming to a group, installation of software always costs lots of time. So it's important to preinstall what the children need, in a more or less protected way, e.g. administrator privilege. Otherwise they'll probably cripple their system accidentally in no time.

comment 10y ago · link · parent

Static typechecking makes use of Python 3.5 type hints in combination with the MyPy open source typechecker.

15.

Show HN: Transcrypt Python to JavaScript compiler now has static typechecks(transcrypt.org ↗)

1 points · by JdeH · 10y ago · 1 comment

16.

Show HN: Zero installation SVG in Python to teach programming to children(transcrypt.org ↗)

4 points · by JdeH · 10y ago · discuss

17.

On-line SVG turtle graphics in Python(transcrypt.org ↗)

1 points · by JdeH · 10y ago · discuss

comment 10y ago · link · parent

After extensive testing under Windows and Linux, Transcrypt is considered ready for production now. The set of supported language features, which already included multiple inheritance, is expanded to include operator overloading as used e.g. in matrix algebra, set comprehensions, lambda's and many other things. Optimizations include call memoizing, compiling e.g. i += 1 to i++ and simplifying for-loops over a closed range of integers to be just as brief and efficient as the matching JS loop. Pip install of Transcrypt and packages for it is now supported. Docs are at http://www.transcrypt.org. Examples have been added for a.o. node.js, D3.js and jQuery. If you like Python for writing readable, maintainable code, no need to develop browser apps in JS anymore. Bugs and feature requests can be submitted at: https://github.com/JdeH/Transcrypt

19.

Show HN: First Release of Transcrypt Python3.5 to JavaScript Compiler(pypi.python.org ↗)

3 points · by JdeH · 10y ago · 1 comment

20.

Show HN: Python realtime control simulator with C code generation for Arduino(github.com ↗)

1 points · by JdeH · 10y ago · discuss

comment 10y ago · link · parent

You mean the docs of Transcrypt? In what way should it be improved? Any critisism to make it better is very welcome!

comment 10y ago · link · parent

No. As soon as JS supports this, I'll work on that. If you work in an environment with multitasking primitives, you can use it via the appropriate JS API, though. In other words, anything you can do in JS, you can do in Transcrypt. But a standard Pythonic API to multitasking is on my wish list.

comment 10y ago · link · parent

I know. It's kind of funny how these frames trigger comments everywhere, though. Maybe I ought to keep them in as a gadget...

comment 10y ago · link · parent

Nice to know!

comment 10y ago · link · parent

You're encouraged to follow PEP8 completely for your Transcrypt apps and libs. As for interop with JS libs, following JS conventions is probably best, although some often use libs may acquire a PEP8 facade.

comment 10y ago · link · parent

Well, in fact, the only thing it had to be right now, is functional, which indeed I believe it is. There's no css, just hand coded html. And it was ready in a snap. But if I ever change it it will remain functional in the first place. It won't feature any floating menu buttons that try to escape your mouse button, or screenwide pictures of managerial looking types at a conference desk. Frames seem to be a bit difficult for search engines. But for now they'll have to do.
12