14 ms·
How Wine works 101
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- jldugger 4y ago
- metadat 4y agoWarning jldugger: Despite the topic being a prime candidate for a joke, it's a tough crowd in this thread.
- marnett 4y agoNo need to attribute it to malice. Just community members following community guidelines to keep comments relevant, thoughtful, and substantive. Most of the low hanging “jokes” don’t really adhere to that ethos and are typically treated accordingly.
- _carbyau_ 4y agoThis is essentially - don't be trite. If you can make a substantive, thoughtful, relevant joke, then that joke will go gangbusters.
- quickthrower2 4y agoI think the joke is good here, because the title is ridiculously ambiguous, and a technical article about how wine is made would suit HN as much as one about WINE. But when people try hard to make a pun that isn't so good.
- kelnos 4y agoI look at it the other way: with the title worded and capitalized as it is, the joke is so obvious that I just can't find it funny at all. Immediate eye-roll and downvote from me when I clicked on the comments and saw that the top comment (at the time, at least) was a joke. Heh, I just reloaded the page, and it looks like that comment wasn't even a joke after all! The commenter did not read the article, but honestly believed it was about the alcoholic beverage, and has since updated the comment to reflect that. This is the other thing about this, too: sometimes it's hard to distinguish a joke for someone actually just making a mistake.
- quickthrower2 4y agoSometimes titles are all-first-caps though. It is not obvious it doesn't mean the drink. If it is first-caps for first words and proper nouns, then why has "Works" got a capital? Edit: only in the HN submission, but still.
- NegativeLatency 4y agoas a regular user of wine (the application) something about the title made me think of wine (the drink)
- pclmulqdq 4y agoI usually think of wine the application as WINE, while wine the drink gets all the other capitalizations.
- quickthrower2 4y agoYes. If you are at a frat party and have a funnel in your mouth.
- haunter 4y agoWhat I'm curious about (and probably there are some good write ups about this somewhere) that how come modern Linux and modern Wine is better to run old Windows applications than modern Windows (7 to some extent but mostly 10&11). Did MS "intentionally" "left behind" certain APIs and system calls to sacrifice it for some greater good? Like I use Windows every day and have no problems at all. And I use Linux every day too for work. But by my experience if I come around an old Windows application (Vista, XP, 2000 or before) then I probably have a better chance to run it as it meant to be on Linux w/ Wine than on Windows 10/11
- alar44 4y agoMy assumption is that it's because you're not running full blown Windows, Wine is just grabbing the stuff it needs.
- johnny22 4y agoit's way more likely to just be insufficient testing than anything on purpose imo. Those folks have deadlines just like everybody else.
- nine_k 4y agoThe point of Wine is to run older Windows software. Who needs the most modern versions, just pays for MS Windows. Windows, like DOS before it, adapts to run certain apps more efficiently, to sidestep their bugs, or to fulfill their assumptions which generally do not hold. I suppose Wine does a lot of the same. It pays a lot of attention tp running old(er) popular software smoothly. I suppose Wine has more adjustments to run Office 2003 without a hitch than Win 12 does. Same for older popular games.
- meibo 4y agoTo wine's biggest "stakeholder" at the moment(Valve), I'd argue that running modern applications is actually more important - but then again, that is with a focus on games, so apps like Office or Photoshop don't necessarily benefit that much from the improvements that the Codeweavers people work on for them.
- 4y ago
- userbinator 4y agotl;dr: WINE can be considered to be more like an API translator. The opposite is also possible (Linux binaries on Windows), the most recent attempt being WSL from Microsoft itself, but there were a few other attempts before that: http://cowlark.com/lbw/index.html http://cowlark.com/lbw/index.html is one example I just found. ...and as an aside, the comments about the alcoholic beverage really suggest that they should've kept it named WINE (all uppercase).
- Kye 4y agoThere's a big wine glass on the project's website. I don't get the impression the association bothers them.
- saghm 4y agoI think GP just meant that it can be ambiguous which one is meant (especially in the context of headlines like this); I'd imagine that even if it were always cased WINE it would still be pretty easily associated with the drink.
- seba_dos1 4y ago> the most recent attempt being WSL from Microsoft itself Worth noting that this only applies to WSL1; WSL2 works in a completely different way.
- amelius 4y agoAny WINE-like projects out there but for MacOS/iOS (as opposed to Windows)?
- Matl 4y agohttps://github.com/darlinghq/darling https://github.com/darlinghq/darling but it's very early.
- Topgamer7 4y agoI've been trying to follow their progress, but they haven't been updating their blog in 3 years. And they seem to just communicate using discord. So there isn't much publicly accessible visibility.
- asveikau 4y ago> but it's very early I thought I remember hearing about the project a long time ago. First commit of README is 2012.
- smoldesu 4y agoThere's probably not that much interest in getting MacOS software running on Linux, especially now that they're going the ARM route. Windows was always a promising platform because it was ludicrously stable and had loads of crazy software and games on it. The risk/reward was high, but relatively low compared to doing this with Apple software. Plus, all this would be a whole lot of work to get a janky version of a non-native program. Most people who already daily-drive Linux probably don't miss the MacOS version of Twitter, or some weird native git client.
- hdaackda2 4y ago
- malkia 4y agoI've been using ETW events lately, and discovered there is almost no support for them in Wine, and maybe just some in ReactOS.
- spoonjim 4y agoI thought I was going to get an explanation of why so many guys pay tons of money for fermented grape juice that tastes worse than just regular grape juice.
- tarsinge 4y agoPaying tons on money is indeed silly, but if you think it tastes worse you have a sugar dependency problem.
- wishfish 4y agoTo me, grape juice is divine and wine is, at best, tolerable. Some of us are pretty sensitive to the taste of alcohol. Even in small quantities in mild drinks like wine.
- account42 4y agoI hear the fermentation process helps the beverage make reading inane comments more tolerable.
- pansinghkoder 4y agoCounterstrike represent! I'd love to see popularity breakdown of applications run by wine. What else do people use it for?
- Underphil 4y agoI can only speak for myself, but I use it for loading VST plugins in Linux.
- dt2m 4y agoHow do you do this specifically? Do you use some kind of bridging software or do you make a shim for each plugin that loads Wine on the fly?
- inktype 4y agoYabridge [1] uses wine to seamlessly load VST plugins into a host. It pretty much just works. [1] https://github.com/robbert-vdh/yabridge https://github.com/robbert-vdh/yabridge
- Shared404 4y agoWhen gaming, I've been convinced to pretty much live in Steam/proton. I also use a few games through Lutris. I don't use it much for productivity tools, as I've been full time on Linux long enough that I generally prefer the native tools. On the rare occasion I need a windows only software, I usually just spin up a VM.
- allanrbo 4y agoAlso a great description of how Linux binaries with dynamic library dependencies work.
- photochemsyn 4y ago[oops wrong article]
- rosywoozlechan 4y agoYou didn't read the article and are leaving a comment based on the title
- robotrIP 4y agoi need something like this for rosetta 2 lol
- arrakeen 4y ago> In the last year I’ve spent quite some time working on a debugger capable of debugging both the Wine layer and the Windows application running with it. looking forward to this. every attempt i've made to debug a misbehaving program in wine has left me extremely frustrated with the debugger
- jwilk 4y agoThe LWN article "Emulating Windows system calls in Linux" discussed on HN: https://news.ycombinator.com/item?id=24120066 https://news.ycombinator.com/item?id=24120066 (August 2020, 64 comments)
- ghoomketu 4y ago> Fifth, oh, did you want to run a game? Not just a hello world? Then you need to deal with DirectX, audio (hello PulseAudio, my old friend), input devices (gamepads, joysticks), etc. It’s a lot of work! These last paragraphs just made me realise how grateful I am to people who work on these open source projects without expecting any compensation or even praise for their work. It has happened once or twice that I tried running something in Wine and it just wouldn't work which made me a little annoyed. But reading how complex and difficult it is to make such things happen I am surprised the amount of effort it takes to even make Notepad.exe work!
- sho_hn 4y ago> These last paragraphs just made me realise how grateful I am to people who work on these open source projects without expecting any compensation or even praise for their work. I think it's reasonable to expect both, even if indirectly. Participating in a well-organized open source project confers extremely rich experience, and employers do take notice. In my company, the folks who spent time in the community generally noticeably out-perform the ones who grew up exclusively in industry (which should trouble industry) at similar years of experience. If you want to end up highly-compensated, it's a great way to spend your time. The real challenge for the open source community is how hard it still is to make a living sticking to the original open source work, instead of taking your talent and leaving one day. Wine is one of a few exceptions with some companies in its ecosystem, but generally speaking there's not enough upstream-work jobs for a lot of important open source software infrastructure.
- mgarstecki 4y agoAnd let's not forget to be grateful towards for-profit companies that contribute to open source. A lot of the work required to get games working transparently on Wine was thanks to Valve, who released Proton as open source, along with heavy work on DXVK to simulate DirectX, etc. Of course they did it because it benefits them, but still they could have kept it private and it would have boosted only Steam sales. Instead it's a win for them AND for the community, an example that should be followed by other companies. What a time to be alive indeed!
- gulerch 4y agoOne incredibly cool thing about Linux is you can install the qemu-user-static package and run binaries intended for other architectures. They install as new binfmt handlers. Got an executable that was compiled for ARM and want to run it on your X86 box? No problem, just go ahead and run it, - it'll be seamlessly emulated and, if needed, syscalls with architecture-specific quirks will be automatically translated to your host kernel (the rest being passed on verbatim). It's like the opposite and the complement of Wine, in a sense.
- laserbeam 4y agoI must say, this is expertly well written and paced for newbies to learn about Wine. It's not just that the content is cool, the style is on point. Kudos!
- nyanpasu64 4y agoHow did you generate the screenshot of the Windows/Linux call stack? It seems to be running on Windows, from the GDI-style font rendering and Visual Studio-style appearance; is it Visual Studio or a custom program, and can you run the debugger on Linux?
- werat 4y agoThis is Visual Studio with the Stadia debugger extension (https://github.com/googlestadia/vsi-lldb https://github.com/googlestadia/vsi-lldb). It runs LLDB on Windows and attaches to a process running on a remote Linux machine (Wine in this case). We have a couple of custom patches to LLDB to support Wine, which are not open source yet, unfortunately. The Wine support is not perfect, but most things work (call stacks, breakpoints, stepping though the code, etc).
- G3rn0ti 4y ago> Wine has been in development for many years and came a long way. And still my daughter can't play "Sims 4" on her Linux laptop ... not because of the game itself but because of EA's pathetic program starter "Origin". Even Steam's Proton environment stopped working. So sad and frustrating. Isn't there a way to play this game without "Origin"? The mileage you get with Wine is highly dependent on the individual game.
- Deukhoofd 4y agoI recommend checking out protondb.com, a lot of users have posted workarounds that allowed them to make Origin work.
- alufers 4y agoJust to let you know: The pirated version works just fine with PlayOnLinux. PS. I downloaded the cracked copy, and deleted it before 24 hours, which makes it legal where I live (Poland). Also I own a physical copy of that game, but I couldn't be bothered to get Origin to run.
- goosedragons 4y agoIs this a recent change? I did have Mass Effect Legendary Edition (which was also through origin) up and running a few months ago thanks to Lutris. And I did get NFS Heat through Steam and it also boots up Origin and seems to work okay. I would check out Lutris if you haven't. The Sims 4 is popular and so someone helpfully created an install script to get it running with Lutris: https://lutris.net/games/the-sims-4/ https://lutris.net/games/the-sims-4/
- _piif 4y agoI recently installed the Steam version (which in turn also installs Origin inside the prefix to run the game) and it ran just fine. Not sure what issue OP is hitting.
- G3rn0ti 4y agoAfter my PlayOnLinux setup stopped working a long time ago after some Origin update (and several retries afterwards), we tried running the Steam version of the game using Steam's Proton environment and we could start the game only once and then it stopped working again. If you check protondb there seems to have been a regression two weeks ago. The frustrating part is the game itself would be working like charm in Wine but the stupid launcher app keeps getting updated and is doing all kinds of complicated DLL and system calls although all it really needs to do with respect to "Sims 4" is to check your license and start the game. So even if you get the game running for some time, ultimately, "Origin" will stop working one time or another.
- pgt 4y agoI was hoping this was a treatise on the history of wine production.
- coolandsmartrr 4y agoDunno if that's as likely on Hacker News.
- gcatalfamo 4y agoActually yes, a deep drill down of how wine (the beverage) works, catered to the typical HN audience, would be VERY HN
- lvxferre 4y agoI stared the title for a few seconds, thinking on the ambiguity, until I said to myself "either is fine". I like to play old games. And I like to drink old grape juice.
- preezer 4y agoWhat a great article. I never had anything to do with wine, this was a joy to read.
- gcatalfamo 4y agoI SO expected this to be about the basics of wine making (the beverage) and kind of let me down after opening the link. Please somebody make wine-making 101
- franky47 4y agoThis is a topic worthy of acoup.blog, who did extensive reviews of the history of how steel, bread and clothing were made. https://acoup.blog/resources-for-world-builders/ https://acoup.blog/resources-for-world-builders/
- omnibrain 4y agoIf you are fine with subtitles (and they look ok for me) then have a look at https://www.youtube.com/watch?v=T8Sgoem_Jvk https://www.youtube.com/watch?v=T8Sgoem_Jvk
- leathersoft 4y agoHonestly, I wouldn’t think all these years later I’d be reading up how Wine works. I’m more surprised about how interesting I found it.
- account42 4y agoThe choice of compilers in the godbolt screenshots is odd. First, GCC is the default compiler for Linux and what most is compiled with. But using Clang would make sense if it was also used for the Windows side to Limit the differences to OS details instead of irrelevant compiler differences like Clang optimizing printf to puts while MSVC doesn't. Also, why link to wine-mirror on GitHub instead of Wine's own gitlab instance?
- TillE 4y agoThe vast majority of commercial Windows software (the stuff most Wine users care about) is compiled with MSVC, so those details end up mattering a lot.
- lakomen 4y agoYou drink it, it makes brrrr, questions?
- Manu40 4y agoLove using Wine to get a game of Alpha Centauri up and running on my setup.
- lfmunoz4 4y ago