Live data from Hacker News

From Markdown to remote code execution in Atom

statuscode.ch

61–70 of 152 posts

Re: From Markdown to remote code execution in Atom

#61
post #53
post #52

Earlier quoted context omitted.

I'm really going to have to ask for an example of this. Other than SWT I've not seen it done well.

Office, Photoshop.

Office isn't a good example: it used to be the case (may have changed) that WinWord and MacWord were entirely separate codebases.

https://books.google.co.uk/books?id=vPvhzDqZlaAC&pg=PA174&lp... (Spolsky)

Re: From Markdown to remote code execution in Atom

#62
post #61
post #53

Earlier quoted context omitted.

Office, Photoshop.

Office isn't a good example: it used to be the case (may have changed) that WinWord and MacWord were entirely separate codebases. https://books.google.co.uk/books?id=vPvhzDqZlaAC&pg=PA174&lp... (Spolsky)

Not anymore.

See the Office related talks at CppCon 2015 about how to write portable code using what Microsoft calls the hamburger model, as part of their migration to a common codebase.

Basic a shim layer for low level OS APIs, the middle layer with the majority of code and another shim layer for UI APIs.

Re: From Markdown to remote code execution in Atom

#63
post #51

Earlier quoted context omitted.

How do you think we used to create portable software across 8 bit and 16 bit platforms? Most of it actually written in Assembly.

Code is a different beast than UI. Magnitudes easier to shim and support multiple architectures.

Still doable when user experience is more valuable then developer convinience.

It is all about design a good application architecture from the get go.

Re: From Markdown to remote code execution in Atom

#64

Earlier quoted context omitted.

It's not a developers dream if that developer loathes Javascript, like I do. Even Typescript just feels like lipstick on a pig.

And many developers loathe C++. Why should I have to use such a low level and antiquated language for developing a GUI? Nowadays you don't even have to use JS/TS, there are many languages that target JS and have decent bindings to its ecosystem, such as Scala, Purescript, Clojure. This doesn't seem to be the case with Qt which lacks decent bindings to languages other than Python.

It is all a matter of actually knowing how to write proper C++, or just using a C++ compiler to compile code that looks like C.

Re: From Markdown to remote code execution in Atom

#65
post #63

Earlier quoted context omitted.

Code is a different beast than UI. Magnitudes easier to shim and support multiple architectures.

Still doable when user experience is more valuable then developer convinience. It is all about design a good application architecture from the get go.

I'd love to be shown an example, because I honestly don't believe it is doable, let alone doable easier than just making several different applications.

Re: From Markdown to remote code execution in Atom

#66
post #21

I've an idea. Let's write GUI apps using GUI libraries, like everyone used to, instead of writing them for a web browser. Not only will this be more secure, it'll also be 10s or 100s of times more performant.

Cross-platform GUI development has always been fraught, though. I don't blame people for picking an existing, working (mostly) technology that guarantees (mostly) identical results across lots of platforms.

Was it ever really hard to make cross postform applications that look identical on all platforms? If application looks identical on every platform is it really cross platform?

Re: From Markdown to remote code execution in Atom

#67
post #53
post #52

Earlier quoted context omitted.

I'm really going to have to ask for an example of this. Other than SWT I've not seen it done well.

Office, Photoshop.

Office is hardly the same on multiple platforms. There may be shared code, but from UI and function-based perspectives there are big differences.

Re: From Markdown to remote code execution in Atom

#68
post #13

Earlier quoted context omitted.

welcome to the history loop! it is a very known fact for all unix grey beards (insert more inclusive analogy if you can think any) that containers and fat binaries lead to way more code rot than anything else. and consequently more bugs and security bugs. I blame this fad coming back on apple. linux and even Microsoft were happy with shared libraries, until osx adopted the bait and switch tactics of Microsoft and got…

> a very known fact for all unix grey beards The co-inventor of Unix, Ken Thompson, and the Unix team engineer and author of The Unix Programming Environment, Rob Pike, are both big advocates of static linking. They designed Go and made a big point of emphasising static linking. Pike: "Shared libraries are obviously a good idea until you've actually used them. Whether it's obvious or not that they're a bad idea is mo…

The same Rob Pike also stated that UNIX is past its due date.

Re: From Markdown to remote code execution in Atom

#69

Earlier quoted context omitted.

How about “not using a bazooka to kill a mosquito”? There's no reason why a text editor needs a frigging browser engine as a core component.

Apparently there's a reason because VS Code (and Atom) is way more useful than any other editor built over last few decades.

And yet somehow neither of them can compare to text-mode editors built more than 30 years ago.

Re: From Markdown to remote code execution in Atom

#70
post #42

Earlier quoted context omitted.

It's not a developers dream if that developer loathes Javascript, like I do. Even Typescript just feels like lipstick on a pig.

Sure, you can hate a programming language. It changes absolutely nothing, except your potential revenue streams. It's like saying "I loathe Linux!!" and knowing nothing about it; sure, but in this industry, you're going to have a tough time :)

To be fair, JavaScript hardly deserves being compared to Linux. People don't loathe JavaScript for no reason. The language itself is pretty rough around the edges.
Post reply on HN