TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Steam store rendered in Servo

195 pointsby jontroabout 10 years ago

7 comments

davvidabout 10 years ago
I&#x27;m a C++ developer, and Rust looks very exciting to me. Maybe I&#x27;m optimistic, but Rust really looks like it can be a serious C++ contender in the long run.<p>Talking with other C++11&#x2F;C++14 users here, the general feeling is that, yes, C++ is a good language because of the performance you can get out of it and some of the nice features that have been added, but the language carries around a lot of cruft that is unavoidable due to its age and maturity.<p>C++ has always been an expert&#x27;s language. These days it&#x27;s the expert&#x27;s expert language++. There are no shortages of landmines and gotchas in the C++ landscape.<p>Modern C++ is a new language, and it really does help, but for the first time there&#x27;s another language that can actually fill those same shoes.<p>A really big deal that isn&#x27;t really addressed by golang is the fact that you can produce shared libraries with rust, and call them from existing C&#x2F;C++ programs through a C interface. That&#x27;s a really big deal in places with a lot of legacy code.<p>Another big deal (from the scientific computing POV) is the lack of garbage collection. Yes, GC is helpful, but replacing C++ means squeezing every last bit of performance out of your hardware. Rust does not sacrifice in this regard.<p>I really hope that Rust has a bright future. It&#x27;s almost like &quot;C++ done right&quot;, but I would stray away from such a label since someone might Linus you and say, &quot;there&#x27;s no way to do C++ right&quot;.<p>I also view golang as the successor to Python. It&#x27;s faster, modern, addresses concurrency, and makes things easier for developers. It takes a strongly opinionated stance, and that&#x27;s exactly the right choice for many problem domains.<p>Python, unfortunately, is dead to me. The GIL is a deal-breaker, and even though we have <i>lots</i> of Python code in production, I can definitely see a future where Python is phased out in favor of something like golang.<p>Basically, I&#x27;m bullish on Rust + Golang, neutral on C++, and slightly bearish on Python&#x2F;Ruby-like languages that do not address the concurrency problem.
评论 #9274831 未加载
评论 #9275292 未加载
评论 #9274813 未加载
评论 #9274369 未加载
评论 #9276105 未加载
kibwenabout 10 years ago
Preexisting discussion on &#x2F;r&#x2F;rust: <a href="https://www.reddit.com/r/rust/comments/30blul/the_steam_store_rendered_in_servo/" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;rust&#x2F;comments&#x2F;30blul&#x2F;the_steam_stor...</a><p>Servo&#x27;s been looking pretty exciting for a while now. I believe they just passed a milestone where it now implements the CSS rules used by 50% of all webpages (according to a survey performed by Google), and its performance is still blowing other layout engines away if preliminary reports are to be believed (as ever, we&#x27;ll see if that holds up as they implement more of the web). Definitely a project to watch.<p>In other neat news, just yesterday they managed to implement a rudimentary tabbed browser GUI using only web technologies: <a href="https://github.com/glennw/servo-shell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;glennw&#x2F;servo-shell</a> . Ideally this would be a stepping stone to the more full-featured browser.html project: <a href="https://github.com/mozilla/browser.html" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;browser.html</a>
评论 #9274482 未加载
FreakyTabout 10 years ago
I am excited for Servo. I think it has the potential to act as a real competitor to the current Webkit ubiquity, which, while not <i>necessarily</i> bad, probably isn&#x27;t ideal.
评论 #9274392 未加载
评论 #9274642 未加载
评论 #9278108 未加载
RobotCalebabout 10 years ago
Okay. But what&#x27;s a servo?
评论 #9274206 未加载
评论 #9274199 未加载
评论 #9275486 未加载
评论 #9274191 未加载
Animatsabout 10 years ago
That&#x27;s very nice. This is great progress for Servo and Rust. It&#x27;s a screenshot of a page rendered without any Javascript, though. Here&#x27;s that page, run through our service which removes all Javascript, Flash, and embedded code, parses the HTML, and re-emits cleaned-up HTML.[1] (This tool is normally used to check how our crawler sees a page.) It looks exactly like the screenshot on Twitter, once you scroll down past the video they&#x27;re not showing.<p>Now they have to interface Servo to all the ugly stuff - the Javascript JVM, plug-ins, etc.<p>[1] <a href="http://www.sitetruth.com/fcgi/viewer.fcgi?url=http://store.steampowered.com/app/105600/" rel="nofollow">http:&#x2F;&#x2F;www.sitetruth.com&#x2F;fcgi&#x2F;viewer.fcgi?url=http:&#x2F;&#x2F;store.s...</a>
评论 #9274962 未加载
评论 #9277383 未加载
sho_hnabout 10 years ago
This is significant because there&#x27;s an ongoing effort to implement the Chromium Embedded Framework (CEF) API on top of Servo, and Steam uses a derivative of CEF in its official client application. I&#x27;m guessing this is how the idea of using the Steam pages as a Servo testcase came to be, since Steam is at least a hypothetical embedding testcase.
评论 #9274467 未加载
greggmanabout 10 years ago
As anyone here watched the Jonathan Blow videos on his language ideas?<p><a href="https://www.youtube.com/watch?v=TH9VCN6UkyQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TH9VCN6UkyQ</a><p>I don&#x27;t care about the specifics of his language but I think he brings up a very valid point which my summary would be, we should design a language that is both performant AND fun to program. Fun = type less boilerplate, make refactoring easier.<p>C++ is not that language and from what I&#x27;ve read Rust is not that language either. C++ is stuck with backward compatibility so it can arguably never achieve those goals. Rust didn&#x27;t seem to have those goals it mind, it had other goals so it&#x27;s not really a fun language either. Too verbose or so I&#x27;ve read.
评论 #9276887 未加载
评论 #9276412 未加载
评论 #9277842 未加载
评论 #9277122 未加载