2,743 karma · joined Dec 25, 2016 (9y ago) · 730 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
515.
This year, Oculus has sold more headsets than Microsoft did Xboxes(twitter.com ↗)
122 points · by binarynate · 4y ago · 138 comments
comment 4y ago · link · parent
comment 4y ago · link · parent
The hosts tell the stories of great businesses (for example: TSMC, Berkshire Hathaway, and Standard Oil). They dive into each company's history (which is always fascinating), analyze what made the business tick, and discuss the lessons that can be learned from it. It's a bit like How I Built This, but geared toward founders rather than the general public and also much more entertaining.
comment 4y ago · link · parent
521.
America Would Be More Happy with More People(bloomberg.com ↗)
4 points · by binarynate · 4y ago · 5 comments
comment 4y ago · link · parent
Yeah, they're frequently used for that. In the case of my cloud service, though, there are multiple pieces that are beneficial to scale independently (browser servers, WebRTC servers, functions for orchestration, and functions for the user-facing web-based administration). I also want to put as much onto AWS Lambda as possible to simplify scaling, but the stateful browser and WebRTC services can't run on Lambda.
> That said, I still don't really understand why you'd use TypeScript on the server at all if you need C# for other services
That's fair. One reason is that I feel that I develop the fastest with TypeScript. Another is that I develop the web front-end in TypeScript and like being able to share code for the web-related parts. Another is that I like to leverage AWS Lambda for the non-stateful parts, and Lambda's cold start times for Node are lower than those for .NET, which can help provide lower latency for user-initiated web requests.
> In particular, it sounds like it'd be necessary to write wrappers on both ends, so that you have idiomatic C++ or C# everywhere except at the boundary.
Yeah, you're right. The parts that C# calls must C linkage, so C++ functions must be wrapped in `extern "C"`. My understanding is that C is the lingua franca between languages because it has a simple ABI, whereas the ABI for C++ is complex and may between compilers.
comment 4y ago · link · parent
> I just can't see having three different general-purpose languages in my stack for a single app
What about for a larger system (comprised of multiple projects) or for a company? I'll give an example. I'm currently developing a cloud-based product to allow multiple people to remotely view and control the same web browser (mostly for virtual and augmented reality). Performance is important due to the real-time communication aspect. The part that interfaces with Chromium is C++, but I want to write as much of the services as possible in a higher level language to speed up development and avoid memory-related footguns. So, I chose C# for the services in the hot path because it's more performant than Node and it's also easier to call into C++. However, the system is really comprised of multiple services, and I still use TypeScript + Node for parts that aren't performance critical, like lambda functions that control autoscaling and the customer-facing web panel.
> In particular, if TypeScript isn't performant enough for whatever I'm trying to do, then it seems likely that there'll be more performance bottlenecks in the future, and so just moving to a generically faster language won't be good enough; I need a language that offers precise control over performance, so that when future issues come up, I know I'll be able to solve them.
The tradeoff with going all-in on C++ or Rust (for me at least) is that it significantly slows down development. For me, it's really important to be able to move quickly when developing a new product, both because I want to get it to market quickly and because I know I'm going to have to make changes based on what I learn from the market. I can still move fast with C#, and I don't find having a third language as a significant burden (like I mention in the article, I think it's a lot like TypeScript). Also, since it interoperates with C++ easily, that makes it easier to move more pieces to native code in the future if needed.
525.
Why C# goes well with TypeScript(nate.org ↗)
15 points · by binarynate · 4y ago · 28 comments
comment 4y ago · link · parent
• At the web page level, an alternative to loading a new page entirely could be to load new content into the existing page, similar to a SPA. However, like you mentioned, that wouldn't really work if you want to seamlessly transition to a WebXR experience from a 3rd party. That's where browser-level innovation could come in:
• At the browser-level, it could be possible to come up with an innovative solution to this. For example, perhaps the user could grant a site permission to load the second site in a second browser instance and then transition from the first to the second once the second has loaded. This is kind of like allowing popups in a traditional 2D browser, where a page can create a new tab with window.open(), but with the additional capability of allowing the page to programmatically navigate to the new window once it has loaded.
comment 4y ago · link · parent
• Community (friends, support group)
• Guidelines for morality / how to live life
• Shared stories / beliefs about the origin of their people
• Optimism and comfort from a belief in afterlife
• Charitable causes
In a way, I think religion has become "unbundled" over time, and these individual needs are increasingly being met my different alternatives (for example, meetups for meeting people, charities for helping others). But, of course, Americans are also just increasingly skeptical of religious beliefs.
528.
An oral history of Stack Overflow – told by its founding team [audio](stackoverflow.blog ↗)
1 points · by binarynate · 4y ago · discuss
comment 4y ago · link · parent
comment 4y ago · link · parent
This is a valid point, but I believe there's still enormous potential to innovate on top of WebXR. Since browser engines are open source, it's possible for upstart XR browser apps to add additional features to Gecko or Chromium that push WebXR forward.
comment 5y ago · link · parent
https://docs.unity3d.com/2021.2/Documentation/Manual/webgl-g...
comment 5y ago · link · parent
https://github.com/microsoft/pxt/tree/master/pxtcompiler
Compiling TypeScript to other targets is a significant challenge, so I think that in order for a project to become a viable alternative, it will need the resources of a big company like MS behind it. However, I'm not sure if MS or any other company currently has a great incentive to invest heavily in that. Running TypeScript on Node or Deno is good enough for most applications, and for apps that require better performance, MS already has C#, which was architected from the start to be performant (for example, allowing apps to use just value types / structs so that the GC isn't used).
comment 5y ago · link · parent
536.
Apple’s AR headset coming next year with ‘Mac-level’ power: report(theverge.com ↗)
5 points · by binarynate · 5y ago · 1 comment
comment 5y ago · link · parent
- AR headsets will still to be too expensive for consumers, but Microsoft's Hololens 2 will continue to see adoption for high-end industrial applications.
- Society will continue transitioning toward living with Covid as an endemic disease, and as the severity of outbreaks decrease, life will continue its slow approach back to normalcy.
- The S&P 500 will see modest gains with the tech sector doing particularly well.
comment 5y ago · link · parent
https://stratechery.com/2021/unity-buys-weta-digital-an-inte...
comment 5y ago · link · parent