Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 6y ago · link · parent

You don't, you have kits to do most things for you. That's the beauty of it: you can reuse the entire web community assets.

And when there are no existing widgets, crafting one is way, way easier than with QT. Especially with break points.

comment 6y ago · link · parent

I tried. So. Many. Apps.

Same. I always go back to using the file system:

- it has a hierarchy

- I can use whatever file format I want, mix in images, odt, pdf, md, etc

- I can backup and sync

VSCode is a pretty good editor to manage it all, and I played with the idea of creating an app with the new editor view feature of the last version just for that. Support some metadata, create an automatic encrypted sync server and that's it.

So ironically... An electron app.

comment 6y ago · link · parent

> How are you handling it?

What do you mean?

comment 6y ago · link · parent

This implies you dev in C or C++, and do all the controls, lifecycle and fallbacks yourself.

That a huge price.

comment 6y ago · link · parent

Yes and no.

Yes if people used it, but no because people would probably not.

One of the reason electron is so easy to package: it creates a big blog of statically linked everything. If you start having to play the packaging game correctly, you get back to the same problems other run time had.

So my guess would be most users would not do it.

comment 6y ago · link · parent

Any previous solution to do UI: QT, GTK, WX, etc were cross plateforms.

I don't think that's it.

Electron make it easy, if you know front end dev, to do an app. It's easy to package as well.

I don't know if you tried to design a beautiful QT app, but it's hard. A beautiful QT app with medias capabilities ? Extra hard. Packaging that? A royal pain.

comment 6y ago · link · parent

Funny thing is, 2 years ago I had a machine with 32gb, and I never passed 16 even while willingly opening everything just for fun.

I though it was too much, and downgraded for a small, cheaper and more portable machine.

Today, I think 32 would be just right.

2 years, lol.

comment 6y ago · link · parent

Given they didn't have the warning we had, and have a very dense population and hold the manufactures of the entire world, it could have been much worse.

I can't imagine what would have happened if patient zero had been in new york.

Now of course, they handled that the way a dictatorship handles it.

comment 6y ago · link · parent

That's my point. Ripcord is not built using electron, yet provide the same features as the original slack app.

comment 6y ago · link · parent

MS does that pretty well with VSCode I think. It doesn't seem to be the default experience though.

comment 6y ago · link · parent

Sure, and you don't have to use a more modern car, you can always keep your old phones for 10 years.

But you would be very annoyed if when you upgrade, you'd notice the car actually eats more gas.

That's not what happens though. Modern cars are more ergonomics, and eat less gas.

It's not being entitled. It's just noting the drawbacks of some technological choices.

comment 6y ago · link · parent

MS probably knows. VSCode without any extension is pretty reactive and light. It becomes heavy when you have 20 tabs open with linters, languages servers, formatters and so on.

So maybe we CAN make electron lighter.

comment 6y ago · link · parent

I though about it, as a workaround. But realistically:

- my base ram consumption is 2Gb, so it would make 5gb with the VM, giving me 3gb for: firefox, and IDE, thunderbird, telegram, stremio, libreoffice, nautilus, veracrypt, liferea, gnome calendar, keypass, dev tools such as linter/dev servers/formatters, tilix, veracrypt, youtube-dl, jupyter, other VM I use for work... Even if I don't use them all at the same time, that's not a lot real estate. It used to be enough. When I used sublime instead of vscode, didn't have 4 communications apps and so on. You gotta hand it to the electron community: their software do bring good features.

- The ergonomics would be terrible for certain softwares. For chat, it would be alright (no notification is ok with me), but for stuff like dynalist, I need to be productive

- It's slow to use. You can feel the reaction time with every action. Android is slow in itself, but in an emulator, you want chain too many actions

comment 6y ago · link · parent

It's a excellent software for managing things to do, and I pay monthly for it. It is very efficient to use, works offline and on mobile seamlessly, use a JSON format for storage, and can export in a standard format to avoid locking (even on the free plan).

I use it to manage things to do, listing, etc., but I would not use it for taking notes, IMO. The format doesn't look great for it.

Anyway, the free plan is good enough to try it on, and the customer support excellent.

I hope it will never be bought by some giant.

comment 6y ago · link · parent

Half of the softwares installed on my computer would not run because of those good security measures.

The browser let you do CRUD apps, with a hint of medias handling. That's it.

And not even good ones since your storage can be wiped out an any moment.

comment 6y ago · link · parent

The WebRTC stack depends on:

- the network code

- the video and audio playing code

- the video and audio capture code

- the crypto code

Making that generic is a huge task nobody will every do. So since you embed them, why no elso embed the UI code ? I mean, at this point...

comment 6y ago · link · parent

PWA are very limited:

- can't (realistically) use an alternative runtime. You are stuck with the JS ecosystem.

- can't start when the OS starts

- can't integrate with the UI (task bar, explorer menu, etc)

- can't run a server in the background for native perfs (like most electron apps actually do)

- can't open a server or a communication bus to allow apps cooperation, or playing well with the OS

- can't access the file system in any meaningful way to provide any kind of scanning ability

- can't store data reliably, or in any reasonable quantity

- can't call other local apps, run commands, etc

- can't access local libraries: so you do the crypto, hashing, dataprocessing in pure js

- can't access any non standard peripherics

- can't use the network, forget about avahi/bonjour, broacasting, capturing packets or doing CORS

comment 6y ago · link · parent

My bad: https://github.com/telegramdesktop/tdesktop/tree/dev/Telegra...

I'll edit

comment 6y ago · link · parent

Yeah, why having a multitask OS when you can do the scheduler job manually?

comment 6y ago · link · parent

> Plenty of native desktop/mobile apps do video/audio/text without embedding a browser.

Yes and it's a pain to do: format is limited, packaging is hard, ability to manipulate/embed the video is annoying. In fact, most apps doing that ship ffmpeg and/or vlc and call it a day. The browser gives so you much for free.

comment 6y ago · link · parent

I just discovered that there are so many of those. Here is a list supported by asciidoctor as an extension: https://asciidoctor.org/docs/asciidoctor-diagram/

Mairmaid looks nice

comment 6y ago · link · parent

I'm part of the crowd that dislikes the trend to use electron for everything. I have 8gb of soldered Ram on my laptop, and will be forced to buy a new machine because I'm swapping like crazy now. My workflow hasn't changed. My activity hasn't. But 2 years ago, Firefox and Virtualbox were the only hogs, for reasons I could accept. Now, dynalist, stremio, discord, signal, pulsesms and vscode are added to the mix.

However, I understand that said apps may have not existed without Electron at all.

And especially, for jitsi, I think it makes perfect sense. If you are going to create an app that does video, audio and web rtc, it would be silly not to use a battle tested browser engine that does all this already.

Besides, having contemplated the state of UI in a world were you have a bazillions of combination of hardware type + screen format + OS kernel + OS version, I have to say Electron doesn't have much competition.

What are you going to do? QT? Phone support is abysmal and it's a pain to package. Kivy? Super slow, almost no widgets. Flutter ? Uses a niche language with a very small ecosystem and an unknown life expectancy.

I probably would go with the later, but I can't blame people for taking the easy road.

comment 6y ago · link · parent

They don't have an army, a passport, borders, a seat an the UN or any real diplomacy ties.

So unless you want to turn the state into a country, its power of negotiation is limited.

comment 6y ago · link · parent

The thing is, we always knew this, but we did it anyway.

Like we know that destroying all insects and and global warning are not sustainable. We know we can't have 7 billion humans eating meat. We know we should let not power concentrate too much into some entities. But we keep it up.

Since we don't react unless something forces us to, I'm starting to believe we need some medium crisis to happen like the covid19 so that a bigger one won't wipe us out in the future.

comment 6y ago · link · parent

So, apple don't want web app to be first class citizens and then reinvent web apps?

comment 6y ago · link · parent

Make sense, thanks.

comment 6y ago · link · parent

Good PR is not doing the post yourself, but creating a post that is passable enough to be posted by a regular user on your behalf.

Just because it is well done does not mean it has good value as news.

Indeed, even if it's an ok read, it's giving a lot of attention to a company just because it has the money to attract said attention, no matter the quality of their service. Since the reader's time and energy is limited, it's taking the place of another possible read.

In the same way, by allowing this to happen, this lets a company create a fantastic image of itself, that is independent from it's real quality, just because it has the budget to do it. Cumulatively, this can, after years, end up rewriting history, and lead even educated people to make altered judgements and decisions in the future.

I'm not saying that as an anti-microsoft attack, I dislike the concept of such powerful PR in general, MS is just here a potential example for this.

As an HN reader, I wish there would be a policy about this. But I have no idea what it would look like, or how one could enforce it.

So maybe I'm just making a lot of noise for nothing.

comment 6y ago · link · parent

Is it me or are there a lot of articles indirectly promoting Microsoft on HN these days?

It's getting harder and harder to tell if those are genuine news or a PR firm at work, but "MS breaks a records in meeting minutes" feels even more like advertising than "Azur is getting 10 times more traffic".

If this is advertising, is there a way to prevent them from staying on the front page?

comment 6y ago · link · parent

There are some things really neat in the switf example that they compare to python, like the literal range similar to ruby's, the fact that "+" is a function like in lisp, although I'm really not fan of the CFAbsoluteTimeGetCurrent().

But the python example doesn't make me trust the rest of the article. It is clearly a swift example, translated verbatim to python.

Idiomatic Python would be this:

    import time
    for it in range(15):           
        start = time.time()        
        total = sum((it,) * 3000)
        end = time.time()     
        print(end - start, total)  
Which is shorter, and way faster.

Now of course, Python is slower than swift (although a numpy version would not be, but I get it's not relevant in general purpose machine learning). But misrepresenting a language is not a good way to make a point.

comment 6y ago · link · parent

Maybe versioning for models?
1
169170171
184