Better HN
topnewbestaskshowjobs
Log inSign up

tokyodude

2,119 karma · joined Apr 13, 2018 (8y ago) · 674 submissions

Submissions

comment 7y ago · link · parent

if there is a demand I'd expect something to come up

Note that Uber/Lyft do something the taxi companies can not. They scale to meet demand. If 1000 drivers are needed between 6pm and 8pm then they'll likely get 1000 drivers. Taxi companies can't do this as they'd lose money on drivers and cars when all of them are not in use.

comment 7y ago · link · parent

And yet the WinAPI is not actually preformant for types of apps that an ImGUI excels at

There's best case for Retained mode GUIs and best case for ImGUIs. ImGUIs excel when lots is changing. In a scrolling mobile app the entire page is being re-rendered constantly as the user moves the page up and down. GUI widgets get created and deleted, data gets marshalled in and out, various algorithms are applied to try to minimize re-creating stuff, all code that doesn't need to be executed in ImGUI mode code.

There are tons of cases where ImGUIs win in perf. In fact the reason they are so popular with for game dev is exactly because they vastly out perform retained mode guis. There's a reason there are 100s of books and 1000s of blog posts and articles trying to get retained mode guis to run smoothly. They almost always fail without lots and lots of specialized client side code to try to minimize GUI widget object creation/deletion, reuse objects, minimize state changes, etc, all that code disappears in an ImGUI and they run at 60fps where as all the retained mode guis struggle to get even 20fps consistently as they hiccup and sputter.

comment 7y ago · link · parent

The title of the article is that sales are lagging but sales are provably not lagging

comment 7y ago · link · parent

I disagree with your disagreement :)

Electron (and nearly all retained mode GUIs) will execute 10x more code trying not to execute the rendering code. Just skipping all that checking and jumping to the rendering code is arguably a win in many many cases.

To put some empirical data on it, game devs use ImGUIs because they keep up with perf where as that 10x overhead of retained mode guis creating gui objects, deleting gui objects, marshaling data into and out of gui objects, adding and removing event handlers and callbacks, and then trying to write a bunch more code to optimize all of that never leads to a GUI that is performant enough for the GUIs needed for game dev.

I think if you check actual apps, especially phone apps, you'll find it's not so clear which one wins. Phone apps almost always move in relation to the users fingers meaning the screen is being re-rendered. Usually new GUI elements are moving on and off the top/bottom of the screen. The overhead of creating/deleting/managing those objects is arguably greater than just re-rendering. The screen is already going to be re-rendered. At best you're getting a few cached textures from your retained mode gui all at the expensive of managing GUI objects.

For desktop apps it really depends on the app. It's got nothing to do with the complexity of the UI and everything to do with what the app does. A text editor might be a win for a retained mode GUI. Photoshop/Maya it's less clear. For example Unity is ImGUI and has very complex UI. Much of the UI has to respond in realtime to the state of the user's document that is changing constantly.

comment 7y ago · link · parent

Here's another

https://greggman.github.io/doodles/glfw-imgui/out/glfw-imgui...

In the "ImGUI Demo" window start expanding the collapsed items or from the menus pick "Examples"

Note that no effort has been spent to actually make the demo web browser friendly so there are rough edges.

comment 7y ago · link · parent

I think you have it exactly backwards. Most ImGUI use cases are extremely complex UIs and that's where they excel.

One of the most complex apps out there, Unity, is entirely ImGUI based for the app itself and often has 1000s of controls visible. Going though the screenshots of typical ImGUI usage most of them are on the complex side.

https://cloud.githubusercontent.com/assets/8225057/20628927/...

https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v16...

https://user-images.githubusercontent.com/16171743/50757906-...

https://user-images.githubusercontent.com/8225057/51042368-6...

https://user-images.githubusercontent.com/870320/51073482-ba...

See https://github.com/ocornut/imgui#Gallery for more

comment 7y ago · link · parent

I have the same cringe. I think it comes from feeling inserted as a pretense to authority by writing style. Other examples I cringe at: The use of the word "titular", the phrase "abc cum def", ... For whatever reason they sound pretentious like the author is using them to show off, not to actually inform.

Some others are "I've said it once and I'll say it again", "as I said/wrote/posted/blogged before". Those seem to suggest the author is assuming they are famous/popular enough that their previous content has been read. Of course you could look at it as they are just suggesting you go read their previous post but for whatever reason that specific way of saying it comes across less as info and more as "of course you read my previous post".

I'm aware this is a personal opinion with no basis in reality.

comment 7y ago · link · parent

Sounds like what you're doing is proving the NYTimes is part of the fake news problem. I wonder given your data above if the NYTimes could be sued for liable for reporting something easily provably false.

comment 7y ago · link · parent

I'd argue an ImGUI does't mix anything. It's just a library. If you want MVC it's up to you to implement your MVC and use your ImGUI as a library. Retained mode GUIs don't magically make your code MVC and ImGUIs don't magically make your code not MVC. That's entirely up to you.

Also ImGUIs are not multiple pass. That's in implementation detail. Unity's ImGUI is multi-pass. One of the most popular ImGUIs (Dear ImGUI) is single pass

https://github.com/ocornut/imgui

comment 7y ago · link · parent

I think you're mis-understanding why Unity switched. They only switched their in game GUI system. The entire app of Unity itself uses an ImGUI system and it is massively more complex than any Game UI and runs just fine.

The reasons they switched the in game system are many but they have nothing to do with performance.

comment 7y ago · link · parent

I don't believe this is a proven. The amount of code being run to cache objects, create and destroy objects, try not to create and destroy objects, marshal data into and out of GUI objects, manage and respond to events, etc. is easily 10x that of an ImGUI, maybe more. Many GUIs now a days are moved almost constantly. Pretty much all phone apps where the user scrolls through a feed of data. A static GUI doesn't need to be re-rendered in an ImGUI, only if something changes. Sure in some ideal test case the Retained mode GUI wins but I suspect it's far less clear what happens in the real world.

comment 7y ago · link · parent

What a rude comment. It's not a specialized term. It's a common term. Immediate mode GUI as a concept is well known. Tens of thousands of programmers use Immediate Mode GUIs. There are several well known Immediate Mode GUI libraries used by tens of thousands of projects.

When I don't know a term I google it. I don't assume the entire world revolves around me and that it's the author job to make their article more verbose because everyone reading it might not know every term.

Here's are galleries of some from one of the more popular libraries

https://github.com/ocornut/imgui/issues/2265 https://github.com/ocornut/imgui/issues/1902 https://github.com/ocornut/imgui/issues/1607 https://github.com/ocornut/imgui/issues/1269

13.

Could ImGUI Be the Future of GUIs?(games.greggman.com ↗)

224 points · by tokyodude · 7y ago · 124 comments

comment 7y ago · link · parent

does that mean everything installs globallu by default. if there is one thing I love about npm it's that it's local by default and global is the exception.

comment 7y ago · link · parent

Kohl's started spamming me with no way to opt out / unsubscribe many years ago. I had never done any business with them at the time nor ever given them my contact info. Had never been to one of their stores. Had no idea what they even sold.

Since that time I vowed never to do business wirh them ever. Not happy that Amazon is partnering with such a bad company

comment 7y ago · link · parent

Japan has a similar setup but without the age restriction. they are called Social Apartments.

https://www.social-apartment.com/eng

I've considered living in one but the prices are not any lower and sometimes even higher than renting my own apartment. Maybe if I knew they had a community organizer that planned activities most days I'd consider paying the premium.

Some apparently have a theme like "musicians" so you have people the jam with and they have practice rooms.

comment 7y ago · link · parent

what does late binding by you? That sounds like an argument for non-strictly typed languages. Isn't in the strict typing that prevents late binding? The compiler wants to know at compile time the types of all the messages and whether or not an object can handle that message hence all messages must be typed and all object must declare which messages they accept.

comment 7y ago · link · parent

pre model 3 cars are too big. won't fit in most parking spaces and even some roads

comment 7y ago · link · parent

it may be my Western sensibilities but I find those small apartments dehumanizing. Like living in a prison cell or some kind of distopian sci-fi novel.

note I've lived in Tokyo on and over the last 21 years. I've lived in college dorm sized apartments and visited friends in smaller. I get it's partly culture but isn't there some limit? Would living in a capsule hotel be ok to some? Is it 100% personal preference or is there some limit?

comment 7y ago · link · parent

I guess I must not know what I'm missing. I've used Visual Studio for 15 years. gdb for 10. I have zero issues using the Chrome's debugger. I don't no what's different about the breakpoints in Chrome. The seem to offer the same features.

comment 7y ago · link · parent

It won't work without a central authority. See Soundcloud as an example. People tag their music with whatever they think will get them traffic. So, in order to do this you'll need a mass of volunteers which will lead to politics "XYZ should be classified as G! No it should be F!", "classifying ABC as DEF is racists/sexist/..." and other arguments. You'll also get people lobbying to have things removed (right to be forgotten, pornography, drug ad, prostitution ads, disparaging the government -China, -Thailand, etc..., etc...

I'm not saying it shouldn't be done but I think it will be way more work than expected and there will be all kinds of issues.

comment 7y ago · link · parent

Why do you believe governments will do a better job? Seeing how well the SF government is at doing anything? Or the state of NYC public transit. Even worse, unlike say roads which probably last 15-20 years, tech will be obsolete in 5 and you expect the government to some how keep paying for upgrades?

Also, it seems relatively hard to abuse electricity as it's billed by unit but I'm guessing you'd expect municipal broadband to somehow be unlimited access and still let everyone who wants to torrent movies all day long? Will there be a push for government to prevent undesirable content (ie, porn) from being transmitted on public networks?

I'm not saying the system there today is good. The monopolies Time Warner / Spectrum have need to be fixed but it doesn't seem that municipal broadband is a better solution.

comment 7y ago · link · parent

Microsoft suits were not global. There is no global government. In the USA Apple is 50% +/- 5% in Mobile. Samsung is #2 at 24%, Lg 6%, Motorola 4%

On top of which Microsoft suit specifically calls out "Intel compatible PC operating systems"

From the ruling

> The District Court determined that Microsoft had maintained a monopoly in the market for Intel compatible PC operating systems in violation of 2; attempted to gain a monopoly in the market for internet browsers in violation of 2; and illegally tied two purportedly separate products, Windows and Internet Explorer ("IE"), in violation of 1.

In other words, Apple's market on Power PC machines at the time was not even taken into consideration.

Using the same logic we Apple has 100% market share on A-series based processors. ARM is not hardware it's a spec that any company can build hardware around and Apple is building their own.

Apple dictate the browser engine to 1.3billion devices. They use that monopoly to force browser standards since by disallowing browser engine competition on iOS they are able to lord those 1.3billion users over the any standard they want/don't want since other browsers are iOS are not allowed to provide their own engines and therefore can't support newer standards and so Apple prevents and real competition in browsers on iOS.

https://law.justia.com/cases/federal/appellate-courts/F3/253...

Similar issues are coming up with Apple being the only store and only way to get software on iOS. Those issues are in the courts now in both the USA and EU.

comment 7y ago · link · parent

I get the use of an amazing map service for which I pay them with my data. I even contribute fixes, reviews, and photos. I'm pretty happy with that price. I don't give them anything for free. They pay me in service.

I actually want the ads too although I want them 100x better than they are and I'm sure Google like Amazon will fail for a while at curating the fake stuff. In an ideal world they'd have inventory and menus of every store so I could search for "pizza with avocados open now" or "1/4inch wrench" and it could tell me exactly where I can get them right now.

comment 7y ago · link · parent

Doh! Sorry about that. My bad. It's right in the logo even.

comment 7y ago · link · parent

I've heard the complaint but I can't help but wonder if that complaint is propagated by expensive clothing makers upset their over-priced clothing is not selling.

I've bought clothing from H&M and had zero problems with it. Same with Uniqlo, Zara, and other cheaper/cheapish clothing places.

I feel like there is a big difference between H&M and Flying Tiger. H&M actually sells useful items. Shirts, Pants, Jackets, Jeans, Suits. They all work. I haven't found them to be of poor quality.

Flying Tiger on the other hand seems to sell mostly useless stuff meant to give away at a white elephant gift exchange and then thrown in the trash.

As some economists will argue, being able to by clothing for less allows poorer people to buy clothing and allows all people to spend more money somewhere else (food, shelter, education, entertainment, ...) so it's hard for me to see how H&M is hurting things but maybe I don't have all the facts. I know they do have a recycling program. I suppose you could argue that's part of the problem though.

comment 7y ago · link · parent

I think someone needs to leak all Congress people's network history from phones and desktops and Facebook before they will act

it worked for video rental history back in the 80s

comment 7y ago · link · parent

Donki actually has plenty of useful stuff. The quality might be cheap but I lived in a mostly donki furnished apartment for 6 years. Bookshelves, kitchen table, lots of utensils, no issues. I've also bought lots of foodstuffs, some clothing, stationary, and lots of toiletries and cleaning supplies.

If you want a company that makes completely useless landfill stuff see Flying Tiger from Sweden. That store is nothing but trash and deserves your wrath far more than donki

comment 7y ago · link · parent

is it just uncomfortable to your non-japanese sensabilities? lots of things are small and cramped in Japan. They rent 4.5 tatami apartments for example. Toilet stall doors often open in with zero room for a person between the door and toilet to get out (50% of the time I end up rubbing my pants along the toilet since there's no room ... yuck!)
12345
23