2,119 karma · joined Apr 13, 2018 (8y ago) · 674 submissions
comment 7y ago · link · parent
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
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
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
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
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
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
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
comment 7y ago · link · parent
The reasons they switched the in game system are many but they have nothing to do with performance.
comment 7y ago · link · parent
comment 7y ago · link · parent
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
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
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
comment 7y ago · link · parent
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'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
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
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 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
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
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