Better HN
topnewbestaskshowjobs
Log inSign up

throwawaylinux

3,517 karma · joined Jul 23, 2021 (5y ago) · 2,823 submissions

Submissions

comment 4y ago · link · parent

> That sugar does help.

I've never found it very compelling. As I said there are also downsides, inflexible implementation that is implementation specific (so it can be difficult to manipulate with low level assembly).

> C allows adding another function pointer to that structure, but not set that pointer. C++ compiler forces programmers to implement all interface methods. Forget to override a method, the code which instantiates the class won’t compile complaining about not being able to instantiate an abstract class.

Never found that particularly helpful if the code is structured well. You'd either allow for NULL implementations to be default or error not implemented at least until all subsystems are converted, or the initialization functions that all object allocations should call (because the code is well written) can verify all required fields are set. If you want to be even cleverer, you can probably do static initialization checks at least where your fields are constant and have those compile down to nothing just checked at compile time.

> Code navigation is another thing. In visual studio, while the cursor is over an abstract method, F12 key looks up all implementations of the abstract class, and populates the “find symbol results” panel with a clickable list of the implementations of the method. With visual assist addon installed, Alt+G key does the same only presents the results in a popup menu instead of a separate panel.

I can see how that might help a little, although surely with some minimal scripting a symbol browsing tool should be able to be taught about similar patterns like find all functions that are assigned to this particular member of a structure of function pointers. Although I don't use IDEs or any symbol tagging tools just grep usually, so maybe I'm a luddite.

With a nice code base that follows reasonable conventions and naming, it's pretty easy to find e.g., if you have a structure-of-function-pointers style of thing then you can find all definitions of "struct address_space_operations" or if a function pointer member is called page_mkwrite, then you search for *_page_mkwrite and get ext4_page_mkwrite, xfs_page_mkwrite, btrfs_page_mkwrite, etc. (which are not always strictly enforced in Linux but at least if you are searching for \.page_mkwrite you can usually easily see non-confirming names).

> Both things are borderline useless for small projects, but IMO they help a lot for medium to large ones, especially developed by multiple people.

I don't see that it helps a lot, and even as syntactic sugar I don't see it being a big advancement in the scheme of things.

comment 4y ago · link · parent

> By that logic the only cause of death in GA is "plane hit the ground."

Here https://news.ycombinator.com/item?id=29731719 it seems like you are essentially saying "engine failure is not too dangerous; one of the leading causes of death is running out of fuel".

I did not say running out of fuel should be formally classified as an engine failure. It was more that I supposed that the effect on the airworthiness of their airplane should be approximately the same whether the engine stops due to failure or running out of fuel. So that makes your comment appear contradictory. Hence my prompting for an explanation, I'm quite willing to believe I misunderstood something of your post or about aviation so I didn't intend for it to sound glib.

comment 4y ago · link · parent

It frequently has structures containing objects of different types that have to identify themselves so they can be processed in different ways. This general pattern, and function pointers in C predates formal "OOP" of course, so I don't call it manually-written vtables. But yes it has this and it is a good technique.

OOP languages which do this automatically for you is AFAIKS just a thin and often clunky layer of syntactic sugar on top of it.

comment 4y ago · link · parent

I don't know what "heresy in general" means regarding a programming language feature, but I dislike OOP in Java and C++ code where I have encountered it.

The largest code base I love and feel productive in is Linux kernel which is mostly C and assembly, medium sized project of 30 million lines, probably less than ten thousand active developers (although difficult to judge with the way development on certain features or functions can occur for years on private repositories before being merged), I would say relatively high rate of change for a project of the size.

comment 4y ago · link · parent

You said one of the leading causes of death was miscalculating fuel. I.e., engine failure. (I assume you don't mean weight miscalculation)

comment 4y ago · link · parent

> By not paying equivalent wages the company opens itself up to lawsuits.

Depending on what you mean by "equivalent", yes it could make some claims of discrimination based on race/sex/etc slightly harder to defend against. It does not "open" a company to lawsuits as opposed to being closed to suits by paying equivalent wages. It is one of many many things that could be a factor in such cases. And a lot of companies decide it is worthwhile to do despite that.

> You can and should ask your peers what they make. This is totally legal and encouraged.

It's not encouraged by many companies, and some try to discourage it including by trying to get employees to agree not to, whether or not it's legal.

comment 4y ago · link · parent

Interesting that Gandhi was very racist toward black Africans, and pro-segregation.

comment 4y ago · link · parent

If they ask why they get paid less and it's because they perform less and they understand that, it might hurt their feelings but at least most well adjusted people can accept it and even better work to improve themselves.

What is much harder to accept, and builds resentment and apathy, is something that feels arbitrary or unjust.

comment 4y ago · link · parent

Giving John such an explanation for why his salary is set as it is and what he can do to get a raise is not a problem for an employer. It's about the best possible case for them really.

The real problem for companies is when the explanation comes down to "Sandy negotiated harder than you", "Sandy got a higher offer from a competitor so we had to match it to keep her", "we're paying you significantly under the market rate and are hoping you don't notice or aren't too bothered by it", etc.

comment 4y ago · link · parent

What is a non-deterministic conversation?

And contrary to some (such as yourself), there are people who do not state their opinions with the authority of a subject matter expert when they are not, whether the conversation is deterministic or not.

comment 4y ago · link · parent

Yes they often are.

comment 4y ago · link · parent

There is nothing unfair about licensing. I contribute to FOSS software, I expect that an individual or company abide by the terms of the license I grant them and that license is terminated if they fail to meet various conditions. That seems fair to me, it wouldn't become unfair if a payment was required either.

But I think you have got it right with the rest of your comments. There has to be a meeting of the minds in these dealings, and I don't believe these companies are acting in good faith when they explicitly or implicitly suggest that you are "buying a game" or "buying a song" even if you can find out what that really means in fine print somewhere.

Hopefully we get more legislation and precedent that forces them to be more explicit about what these purchases mean exactly.

comment 4y ago · link · parent

There is a single memory error CVE there, the last one.

Assuming a higher level language would not allow that without introducing any other security problems, and assuming the CVEs roughly represent the secureness of the software, then using a higher level language would be a pretty small marginal improvement in security.

comment 4y ago · link · parent

I just had the idea that things were a lot further along in the revolt against the regime at that point in time.

comment 4y ago · link · parent

That's a non sequitur. I know about lots of things that were not civil disobedience.

comment 4y ago · link · parent

I get there was a bit of cheek about it, just on the scale of civil disobedience in the country I didn't think "living in a big mansion in the richest neighborhood" would register much of a blip but maybe I'm wrong.

comment 4y ago · link · parent

That is not the case for the US president, they can live where they choose.

But I did not realize the archbishop was required to live in that residence as part of the terms of their service. That answers my question then.

comment 4y ago · link · parent

Either/both. And yes one is if one is one.

Glad I could clear that up for you. Really the word is very common, my 60 year old friend used it the other day at her birthday. I've even seen the old dinosaur mainstream media corporations use it. It really isn't some outlandish word that's impossible to grasp.

comment 4y ago · link · parent

woke:

- Deluded or fake awareness.

- The act of being very pretentious about how much you care about a social issue

From https://www.urbandictionary.com/define.php?term=woke

comment 4y ago · link · parent

Hillary Clinton inquired about murdering him with a drone. I'm sure many others were thinking it or saying it. And America has had other people (including its own citizens) executed outside the judicial system.

comment 4y ago · link · parent

You assume good faith in hypothesizing I'm fine with genocide. You're a laugh a minute.

Lashing out like a toddler having a tantrum doesn't change meanings of words, sorry.

comment 4y ago · link · parent

> At least three people you’re responding to here don’t see how Intel is being “woke” in any pejorative sense.

That's because they (claim to) not know what it means and are unwilling or incapable of finding out.

And your hypotheses are laughable. My hypotheses is that they are based on nothing but an infantile emotional reaction to somebody using the word woke, which is now well entrenched in common vernacular whether you like it or not.

EDIT: You can see the deleted comment if you change your settings.

comment 4y ago · link · parent

It can be. Firstly if you are very passionate about something it can be a good way to learn about it or even end up pushing the state of the art in some cases, so it can be worthwhile as any hobby is.

But also a lot of companies take it quite seriously now so it can be good for your resume particularly if you are not in the industry yet and want more experience or some references of your prior work. So it can be worthwhile even if you aren't completely passionate about it to the extend you would be content to always do it as an unpaid hobby.

It's not good to assume you will make money directly on your own project or some niche project, but there are lots of established projects which are in demand in the industry and you would be able to make money working on them. I work on the Linux kernel which I started as a hobby and I've been able to take my skills between several different companies and continue working on the same software (although different areas) which has been good for me.

Not to say you can't get transferable skills or relevant experience working on proprietary software and some may prefer the challenge or variety of working on different code bases at different jobs. So proprietary software is pretty on-par in those respects. There are a lot of areas where proprietary software is ahead too so if you want to work cutting edge software in a particular area, open source might not be the best option for you.

As far as getting started, start with working out what you are interested in and want to work on.

comment 4y ago · link · parent

The more expensive it is the better it will have to be relative to free alternatives though.

Is it that you're doing a large amount of compute per search which yields better results but higher cost per search?

comment 4y ago · link · parent

I am correct, and most people can deduct and extrapolate and draw from other experiences and observations and don't need everything spelt out for them to "pattern-match".

comment 4y ago · link · parent

You're wrong, there is a very strong consensus. The first few entries are highly up voted. Take the first 2 as a basic definition or idea of the concept and the 3rd one as an example.
1
697071
95