Better HN
topnewbestaskshowjobs
Log inSign up

giomasce

1,209 karma · joined Feb 10, 2016 (10y ago) · 426 submissions

Mathematician, computer scientist, programmer. Currently Wine hacker @CodeWeavers and developer @Debian.
Submissions

comment 5y ago · link · parent

Yes, see for example https://www.forbes.com/sites/jasonevangelho/2019/09/19/fine-....

CrossOver and Proton are rather independent as codebases, except they're both constantly rebased on Wine. Of course patches can flow in both directions (and from either to vanilla Wine, which is the best), but AFAIK none is systematically based on the other.

comment 5y ago · link · parent

Not forks. The whole code for Proton is in https://github.com/ValveSoftware/Proton and its submodules. There are many game-specific patches, i.e., patches that were more or less explicitly included to make one specific game (or a few games) work better.

There are also some instances of game-specific behaviour: Proton detects at runtime which game is running and decides whether to enable or not some code. This is done for the most filthy hacks that are required to run something, but risk to spoil some other program. Search the code for instances of getenv("SteamAppId") or getenv("SteamGameId").

comment 5y ago · link · parent

It is meant to be integrated into Steam, so building and using it without Steam might be a little less straightforward than pure Wine, but you can definitely do it. The launched script expects environment variables and other stuff from Steam, so it won't work without Steam. On the other hand, no other launching script is provided, but if you call the wine executable with the correct options and environment variables, it should just work.

On average I don't expect specific merits using Proton vs using vanilla Wine for non-game applications. As far as I know, Proton-specific patches are usually hacks targeted either generally at games or at specific titles. Actually, using Proton could be worse than vanilla Wine, because Proton is based on a past version of Wine which only gets updated every now and then (last Proton is based on Wine 5.13), so you are missing some development (on the other hand, sometimes developing features breaks stuff, so this could also go the other way around).

Ideally, we always want as many patches as possible to go into vanilla Wine instead of Proton or CrossOver; first because we love free software and second because maintaining forked versions is time-consuming like mad. However Wine rightly has strict code quality requirements, and sometimes developing a proper fix for some bug is either impossible or too long; those cases are handled with patches in Proton (perhaps shared with Wine Staging or CrossOver).

Disclosure: I work for CodeWeavers on Proton. Opinions my own.

comment 5y ago · link · parent

To me etc is pronounced "etch".

comment 5y ago · link · parent

That's not bad even for security reasons. It can be possible to recover your password if the sound of you typing it is available.

comment 5y ago · link · parent

Honest question: how are "junior" and "senior" defined here?

comment 5y ago · link · parent

I suppose it depends on the code you're trying to understand. Depending on its size, style (therefore, ability for a human or for a decompiler to understand it) and other factors, the best blend of tools can change.

comment 5y ago · link · parent

Machine code is code like any other code. Sure, often not easy to read or modify, but not impossible. I'd start with a disassembler, a debugger, possibly a decompiler and lots of patience. Given appropriate time and pay I might even consider it a fun job.

comment 5y ago · link · parent

Isn't the optimization manual for Rosetta basically "Recompile for ARM"?

comment 5y ago · link · parent

I don't see the key point: the two things (trusting the remote storage and the tool) are rather independent for me. I already trust probably billions lines of code which handle my data (basically, every program installed on my system). I don't trust them because I checked all of them, but because I know that the same lines are used by many other people, some of which have actually read parts of them. There is a global trust repository to which every programmer contributes a little bit and every user benefits a little bit. For this reason, I find more trustworthy a project already used and developed by many people, like borg. I didn't just take that for granted, of course: I read the documentation (which, in the case of borg, is very clean and extensive), I looked how it work, I even looked a part of the source code, and I was satisfied. And all of this has nothing to do with where I am putting that data in the end.

On the other hand, missing features in the name of small code size is not a great advantage, if those missing features make my backup less reliable or quick or compact. And maybe I end up backing up less stuff because (say) the simple tool does not handle deduplication or compression as effectively as the complicated one, and so is not viable for me. This would be a net loss.

Be careful, I am just saying my perspective. You have, of course, the entire right to decide what are your priorities and which tool is better for you.

comment 5y ago · link · parent

I use Borg to a local home server and then Duplicity on the Borg repository to Google Drive (where I happen to have a lot of space for free due to my university). In this way I am protected from both loss or breakage of local server and from revocation of remote account (as Google is known to do). Also, backup is quicker on the local network.

comment 6y ago · link · parent

Do you really perceive EU/US having the same level of independence of judges, newspapers and regulation bodies as Russia and China? Do you think that minority parties and voices are accepted to the same degree?

comment 6y ago · link · parent

I know, but the computer just has to do local corrections, i.e., varying a little bit the input on the propellers to keep the drone stable. On the other hand, there is no local correction that enables you to hover a winged plane (it always has to move at a minimum speed in the air to generate lift), so you can only drive them automatically if the computer can globally control your trip, which is much more inconvenient for a human driver.

The aerodynamic stability is an interesting topic, but useless here. If you assume your computer is dead, you won't control neither a remote quadcopter nor a remote winged plane.

comment 6y ago · link · parent

Not an expert, but I'd guess quadcopters are much easier to pilot. You press a button and they go that way. Taking off and landing on wings is very difficult in comparison, requires more space, more facilities, more organization.

comment 6y ago · link · parent

It's unfortunately late by now for you, but I would suggest to have a local copy of all your data in the cloud. I use offlineimap to download all my email boxes each hour and commit them in a git repository. If the lock me out, at least I keep my data.

comment 6y ago · link · parent

Wow! Things are really making progress in RISCV land!

comment 6y ago · link · parent

Not GP and I know some Java, but not C#. As I get it, in Java generics are little more than sugar coating: they basically check that your are not messing up with types. Having a List<String> is not very different (maybe not at all) from having a List<Object> and casting elements between Object and String when you put or get them, except that the compiler can check the types at compilation time. The List code is essentially the same.

By contract, a std::vector<std::string> and a std::vector<int> in C++ are two completely different and unrelated classes. Any code they used is compiled twice, once for every value of the template parameter, and of course is optimized independently in each case. So, for example, although the template code is the same, the operation of copying a vector an give very different assembly codes: copying a vector of strings requires to call the copy constructor of each single string in the new vector, but copying a vector of ints basically reduces to calling memcpy() appropriately (thanks to all the appropriate abstractions, so that the compiler knows that to copy an int it is enough to copy its bytes, and this cannot fail due to an exception, and maybe other things).

This is one of the great thing in C++ (at least, if you value this kind of optimizations), and it seems that OP misses the point entirely. It gives what is called (when it works) "zero-cost abstraction". You might like it or not, but it makes no sense to judge C++ design choices if you don't consider the ability to do zero-cost abstraction (which, for example, Java does not have).

comment 6y ago · link · parent

Not completely passive and not really a side project, but my wife's business is teaching Latin (the language; I mean not the programming language, the language people actually speak; well, some people speak) on the Internet. She has an evergreen funnel which actually converts a few sells per month. I do the programming, hosting and server maintenance for that thing. She creates the actual content.

Of course this is not completely passive: she periodically publishes free material to keep attracting people to the funnel. But it's quite rewarding every now and then to have an email saying that some random guy bought the videocourse.

The name is Satura Lanx: https://www.youtube.com/channel/UCJCYCaXUERhY93xEWC8Cojw

comment 6y ago · link · parent

Well, constructors are not very different from functions, from the caller point of view. Also, Python is much worse in this: any call can be monkey patched at basically any point during the execution, but people do not (usually) use this as an example of poor language designing. You expect the programmer to use the language features considerately.

BTW, in C++ every call is resolved at compile time, and the compiler could tell you what you are exactly doing at each line, including whether your examples are function calls or casts. If you dump the right table in GCC the information is there, although it's a pity there is no convenient way to access it. Cppexplorer helps a little bit, but I always find it difficult to understand. It's a problem of tooling, though, the language is well defined.

comment 6y ago · link · parent

It's pretty strange: it seems that the person writing should be quite advanced in physics and mathematics (though I am not able to comment on her actual scientific merit), but it clearly misses very important and well-known facts.

For example, the fact that it is not true that any differential equation has uniqueness of solutions given its boundary conditions (there are very simple example, which are usually covered in any introductory class not more than half an hour after the concept of differential equation has been introduced, see for example https://math.stackexchange.com/a/1319537/59728). In reality, the proof of uniqueness of solutions is usually a very difficult for every new class of equations being introduced, if it is true at all. There is no general result.

Also, it seems to me a completely non trivial point that the physics is actually governed by (a system of) differential equations. The physical laws we currently know are commonly if not always expressed as differential equations, but every physicist is aware that there are a lot of inconsistencies and holes in our current understanding of the universe. Where do we get the assurance that the "ultimate law" is again a differential equation? Maybe we are not finding it just because we expect it to be a differential equation, but it is not, and we first have to revolutionize the way we think physical laws (maybe more or less as we had to do when we realized quantum physics).

In short, it seems a rather naive position.

comment 6y ago · link · parent

Really? In my experience, when DDG doesn't find what I need it rarely happens that Google does.

comment 6y ago · link · parent

Link to the proof? Or at least, does the theorem has a well-known name?

comment 6y ago · link · parent

That's actually true for most electromagnetic telecoms. Ten orders of magnitude between the transmitted and received power is usually the easy case. With more careful techniques you can do even twenty or more orders of magnitude.

And yes, it baffles me as well.

comment 6y ago · link · parent

Good! Mind you, they are not high quality images. They're just a raw mmdebstrap with little configuration, probably not suitable for production use. I mean them for development. (I specify this because you mentioned tool for actual production use).

In any case, help yourself!

comment 6y ago · link · parent

I have a similar thing with weekly updated images (from Debian unstable) and more supported archs here: https://people.debian.org/~gio/dqib/.

comment 6y ago · link · parent

Facebook does that if you add your key to your account.

comment 6y ago · link · parent

They invent new scientific rules. With two caveats: first, the new rules are not independently tested by experiment (maybe they are vaguely justified by thought experiment; thought by them); second, their rules are just qualitative, nearly never quantitative, so that they basically everything can be true.

So, measuring angles is off limits. Then they admit you cannot see things that are far away and close to the horizon, but not by curvature. By perspective: perspective laws, they say, mandate that far away objects become very small, too small to be seen. Do you basically can see only a limited part of the sky, at a sufficiently high angle from the horizon on the flat earth. That is why you can't see the whole sky.

comment 6y ago · link · parent

How does science exclude the possibility of a decision to put us here? It seems to me that science (paired with a good bunch of epistemological assumptions) gives us the laws our universe follows. But as for why such laws are like that, or who possibly decided them and with which purpose, I'd say such questions do not even make sense for science.

comment 6y ago · link · parent

I read a book I sometimes feel the need to grep it, just to realize that you cannot grep paper. Apparently I grew up on Linux shells instead of smartphones.

comment 6y ago · link · parent

I wish conflicts between sovereign entities (or between entities in general) could easily be solved by sitting around a table and finding an agreement. Unfortunately diplomacy is still very far away from such a situation. International diplomacy agencies like UN are rarely able to guarantee a fair treatment to all players (see, for example, the composition of the UN Security Council, which is as unfair as it can go), therefore they can hardly universal trust, which severely reduce their ability to actually fix things.

(not saying that having UN is bad; simply that it is hopeless to just have the UN decide thinking that everybody will accept the decision as fair)

1
789
15