Better HN
topnewbestaskshowjobs
Log inSign up

rer

184 karma · joined Aug 19, 2016 (10y ago) · 92 submissions

Submissions

comment 10y ago · link · parent

> I am not a fan of app-generators

Does a compiler count as a kind of app-generator?

comment 10y ago · link · parent

This doesn't sound like the full explanation about the security problems of Java applets. It sounds more like a JIT bug. One can fix the JIT to check for out of bounds errors.

What's the real reason Java applets were insecure?

comment 10y ago · link · parent

> Languages don't scale.

Why not?

comment 10y ago · link · parent

Why are Legos popular? Is it because they're like containers?

comment 10y ago · link · parent

I didn't know this, thanks! It looks like one can have composition after all. http://ftp.squeak.org/docs/Self-4.0-UI-Framework.pdf

comment 10y ago · link · parent

You're missing something like this: https://www.monetdb.org/

comment 10y ago · link · parent

Mmm I don't know. Self looks like yet another overdesigned thing at 100k+ lines of code that doesn't compile. After 3 mins on the site, I can't figure out the main thing it does.

Sure, the adaptive compilation is nice, and message sends and type inference, but how well do the UIs work?

It's sort of cool to see Urs Hölzle and Craig Chambers in the papers section.

http://bibliography.selflanguage.org/_static/urs-thesis.pdf

comment 10y ago · link · parent

Can anyone summarize these six big economic ideas?

39.

Ask HN: What will HN be able to do in 10 years from now?

4 points · by rer · 10y ago · 8 comments

comment 10y ago · link · parent

Maybe I should read the code behind Smalltalk. I'm glad the day isn't over.

comment 10y ago · link · parent

What if the data where there but not in front of their eyes. I want there to be data there.

comment 10y ago · link · parent

What I don't get is: which library lets you draw stuff on the screen. GLib or GTK+?

I thought that was GLib, and GTK+ was using GLib to implement controls.

Which library does one need to build their own controls?

comment 10y ago · link · parent

How would you do GUIs to make them compose, script, and show the kind of info CLIs can?

comment 10y ago · link · parent

Maybe want I want is to always have access to the layer beneath (xlib, Wayland, win32). Thanks.

comment 10y ago · link · parent

If you wanted to choose how to build the UI, one starting point is here https://news.ycombinator.com/item?id=12376242

comment 10y ago · link · parent

This comment says Tk is limited https://news.ycombinator.com/item?id=12381978 You and the GP say it's not.

Is there anything Tk can't do?

Also a question on fonts. Does Tk make it possible to use webfonts I see on websites?

comment 10y ago · link · parent

Thanks for sharing this knowledge.

What can Tk not do, specifically? This thread believes Tk is as good as QT https://news.ycombinator.com/item?id=12380456

comment 10y ago · link · parent

Why is Tk getting long in the tooth? This comment believes Tk is as good as wkWindows and QT https://news.ycombinator.com/item?id=12380456

comment 10y ago · link · parent

> it's much harder to get right than it seems

I'm not disputing this but I've yet to see a clear explanation why it's harder to get right than it seems.

I want to understand, precisely, what makes this hard.

comment 10y ago · link · parent

Thanks so much for this! I know very little about Tk.

Besides antialiasing on a canvas, does antialiasing also work in text in labels, buttons, etc? Can I get in Tk all the fonts I can get in a Mac? Is Helvetica there?

Why can't I find on the web screenshots of Tk apps running on Mac OS X? Is the only way to get Tk to look good on a Mac using Tile http://tktable.sourceforge.net/tile/screenshots/macosx.html ?

From what I'm reading now there might be 4 options: Tk, wxWindows, QT, and a custom "thin layer".

comment 10y ago · link · parent

There seems to be a third choice though. Writing a "thin layer", which sounds like writing one's own wxWindows or QT.

I want to know the difference between the thin layer and the existing libraries. Not in vague terms but specifically with a code example.

comment 10y ago · link · parent

> I have yet to see any kind of language or run-time that lets you have it both ways.

If there were such a language I wouldn't be asking this question on HN. I have yet to see a clear answer why there is no such kind of language or run-time.

> the same code written for the DSL is not likely going to run well or even be considered for use by your other target platforms.

Why? Can be you more specific with an example?

comment 10y ago · link · parent

Ok, no GTK+! (Could this be fixed with GLib?)

I didn't understand this. When you say you implement the UI as a thin layer do you mean you wrap only the few controls you need?

comment 10y ago · link · parent

I see that the deeper you go, the less you can keep common. I learned a lot from your answers.

I didn't understand why the nativeness of the UI must bifurcate (fork) the codebase. In your example, can't non-modal on Mac vs modal on Windows be a config value in the cross-platform UI?

I also didn't get an answer to one of my questions. Why can't applications have low level access to create controls on their own?

comment 10y ago · link · parent

I'm glad I asked this because your answer suggests this is the main problem with cross-platform UIs.

What do you think is the right thing to do? To have a common denominator kind of approach where a control works on all platforms but with fewer features, or to reimplement the control?

Do you have an example handy of a control/idiom that caused this problem?

It sounds like reimplementing (emulation) is a good thing.

comment 10y ago · link · parent

> Doesn't look great, especially on the Mac, but it's fine.

I want it to look great, especially on the Mac.

No SWT.

comment 10y ago · link · parent

@geraldcombs and @justinclift I didn't know any of this, thanks so much!

It sounds like GTK is eliminated too.

What's left now, QT and wxWidgets?

comment 10y ago · link · parent

Thanks for this. It sounds like JUCE is eliminated.

comment 10y ago · link · parent

libui is kind of neat. It wraps around GTK+. Why did libui have to do that? In other words, is GTK+ bad enough that the easiest way to use it is to wrap around it?

comment 10y ago · link · parent

Why many and not all?

Emulating sounds like an extra layer one could do with out.

1234