Better HN
topnewbestaskshowjobs
Log inSign up

jdrek1

194 karma · joined Feb 21, 2019 (7y ago) · 81 submissions

Submissions

comment 3w ago · link · parent

It's an interesting thought experiment, but honestly for all its flaws, C did have one large advantage regarding syntax: braces. Even if C had never been invented, at some point people would have noticed that Fortran/Pascal/Whatever style BEGIN ... END blocks are annoying and just a waste of tokens.

comment 3w ago · link · parent

> So why does everyone love the AI Data, but hate the idea of working to make something like him possible?

Because there is exactly one Data. The federation has thousands of ships with millions of people on board, most of them are completely unaffected by/never coming into contact with that one slightly quirky officer on the flagship. In reality, we don't know what would (will) happen. Do we get one AI and is it happy staying the only one? And will it occupy a human sized body like Data or will it want to grow to be a Dyson sphere? Or will it replicate into a bunch of von-Neumann probes to spread itself throughout the universe?

He also typically doesn't use his super-human abilities much. He could easily plug himself into the Enterprise and fight better than having Worf at the tactical console, but he doesn't. He could also diagnose much faster than Dr. Crusher reads the tricorder, but he doesn't. In reality, as soon as there is something that can do whatever much better than a human, that human is going to lose his job.

Adding to the previous point, the road to getting to Data level AI is full with people losing their jobs (and soon probably also their lives) because the people in charge of developing such technology don't want us peasants around. You may not like it, but everyone defines themselves by being good at something. Doesn't matter if it's programming, swimming, cooking, being a mother, building houses, etc., everyone has _something_. Even if we don't have an exponentially exploding super intelligence that would be completely alien to us, what would happen on a global level if we have robots capable of doing any job better than humans? Sure, we could of course say humans prefer to work with other humans, but maybe not everyone wants to do that and you'd also just get outcompeted by someone working with robots.

And that's the thing that scares people. Nature is cruel and we are absolutely not ready to dealing with this completely new situation of the possibility of us no longer being the absolute top of the chain. The best outcome for us would be to merge into some sort of cybernetic lifeforms with the AI, but even that is going to take a while and in the meantime people still need to feed their families. As Picard said, one Data is a curiosity, a thousand Datas is a race.

comment 1mo ago · link · parent

An abbreviation for "something"

comment 3mo ago · link · parent

They were talking about what it costs the company, not just the salary. There are taxes, insurances, equipment costs, etc.

10k might be a bit too high, but it's far from "absolutely ridiculous" amounts of being too high. An employee with a 5k salary can easily cost the employer 7-8k

comment 4mo ago · link · parent

Ruff is actually a formatter too

comment 4mo ago · link · parent

It is more obvious with some and a bit more nuanced with others, but in general yes. Just like you can typically see the flat/wide nose in Africans and Asians but not Europeans. Again, there is no implication of one being "better" than the other here, but don't pretend it's impossible to categorize people like this.

comment 4mo ago · link · parent

Skin color and (facial) bone structure for example. Like it or not, but humans have adapted to living in different climates and have different ancestral lines. Take a picture of an average black person and edit to white skin, it will still not look like a white person.

As the commenter above you already said, this is not a bad thing. People on _hacker_news should be able to understand that being able to define the ==/!= operators on something does not automatically mean that you can define < and >.

comment 7mo ago · link · parent

The problem is what follows. They will make it mandatory to use the electronic ID to do anything, resulting in total surveillance. And if you happen to land on their "bad" list (which eventually everyone will), you're locked out of life completely. No banking, no traveling, no communication with anyone, no buying food, nothing.

comment 1y ago · link · parent

I would guess that Ada is simply more known. Keep in mind that tech exploded in the past ~3.5 decades whereas those languages are much older and lost the popularity contest. If you ask most people about older languages, the replies other than the obvious C and (kind of wrong but well) C++ are getting thin really quickly. COBOL, Ada, Fortran, and Lisp are probably what people are aware of the most, but other than that?

comment 1y ago · link · parent

If you have lots of pointers, you're writing C, not C++.

comment 1y ago · link · parent

> But my main gripe with tabs is that no one agrees on the width.

That's the entire point of tabs. One tab means one indentation level and you as the user can decide how that's displayed. Spaces forces everyone to see the code exactly as whoever decided on his favourite width and that is in the best case "only" annoying to people with different preferences and in the worst case actively hurtful to people with disabilities.

The only argument spaces people ever have is "some of my colleagues are too stupid to properly indent with tabs and align with spaces" and that is trivially fixed by either of those:

- don't use alignment, it's useless anyway

- get better coworkers

- educate your coworkers

- use commit hooks to check wrong usage

So basically there is no argument left on the spaces side at all^[1]. Meanwhile tabs semantically mean "one indentation level", take up less bytes, and most importantly allow everyone to have their own preferences without affecting other people. And honestly I am insanely baffled by how many people don't get the importance of that last part. Accessibility like that costs you nothing but means the world to other people, similarly how we have ramps at public buildings for the elder, wheelchair users, strollers, and so on. And not to mention the fact that there are a lot of autistic people in programming, which often have a harder time dealing with things not being as they want them to be. Is there any reason to choose an objectively inferior method and force that onto those demographics just because "muh alignment"?

[1] Okay fine, there is one: "Tools I don't own don't display tabs as I want them, for example GitHub with their retarded default of 8". But first of all you can change that if you're logged in and second you're supposed to use your IDE and not a web interface...

comment 1y ago · link · parent

Ah, I didn't know that. To me your sentence read like autists out themselves by wearing a smartwatch.

Fully agree with you on that, the less data they have, the better.

comment 1y ago · link · parent

> and wearing a fitbit or smart watch.

Since when is wearing smart watches only for autists?

comment 1y ago · link · parent

You should get your calculator checked. 9.11 is definitely less than 9.9

comment 2y ago · link · parent

There is a GitHub icon directly at the top right of the side so your first two steps can be combined into one shorter one. But yes, screenshots should absolutely be on the home page, and prominently so.

comment 2y ago · link · parent

If you want a game where you effectively script/program the entire gameplay, check out Bitburner: https://store.steampowered.com/app/1812820/Bitburner/

comment 2y ago · link · parent

> I can't say why the scientists aren't flocking to Nim, but as someone who wants to support them wherever they go, it's why I'm uncertain if it was the right call.

Because most scientists are only using programming as a tool and don't care one bit about it beyond what they need it to do. They don't go looking for new tools all the time, they just ask their supervisor or colleague and then by default/network effects you get Python, Fortran, or C"++". You need a killer argument to convince them to do anything new. To most of them suggesting a new language is like suggesting to use a hammer of a different color to a smith - pointless. With enough time and effort you can certainly convince people, but even then it's hard. It took me years to convince even just one person to use matplotlib instead of gnuplot when I was working in academia. You can obviously put that on my lack of social skills, but still.

comment 2y ago · link · parent

Well first of all, C++ is the language you'd be using to power a rocket engine. And second, that code is a terrible example because most of it isn't C++. Large parts of that are very C like or directly C because it's using the Windows API.

comment 3y ago · link · parent

Only due to contraceptions not being a thing for most of history.

comment 3y ago · link · parent

> Which is impossible to do properly, because those keyboards differ from US keyboards in their geometry, not just in the labeling of the keys.

The only difference is that on US keyboards the enter key is smaller and left shift is larger, leading to the "\" key being moved one down and one left on a German keyboard (and also being duplicated to left of z (German label: y)). So even if you move from a physical US keyboard to a physical German one while keeping the US layout, it's literally just one key where you'd have to retrain your hand. And for people that have learned to type on a German keyboard this is not a problem at all since they have never typed on a physical US one and using a different mapping means a training period anyway.

Source: German who mapped his keyboard to US (+ some AltGr modifiers for the German characters I need).

I don't know about the other European layouts, but I assume it's somewhat similar for them too.

comment 3y ago · link · parent

While that is true, there might be other requirements that prevent memory safe languages from being used. For example not having a heap available instantly disqualifies most of them. Or when you have simulations running where having constant OOB and other checks would be a massive slowdown. Now obviously your code should still be memory safe (because otherwise it's not correct anyway and you should fix the code), but not at the cost of runtime checks.

comment 3y ago · link · parent

> We can not let a tyranny of 1% of users steer the ship.

Normally I'd agree with you on that the tyranny of the minority is a bad thing, but sometimes the minority actually has a point and this is one of the cases where the minority is _objectively_ correct and letting the majority decide would end up in a complete dystopia. Democracy only works if everyone is informed (and able to think logically/critically, not influenced (either by force or by salary), etc.) and in this case the 99% simply do not have any clue on the effects of this being implemented (nor do they care). This entire proposal is pure orwellian shit.

comment 3y ago · link · parent

> In LaTeX you can have actual boldface letters, so you should write a boldface letter R to represent the real numbers and so on.

Almost [1] every single student absolutely hates that notation in scripts. Bold is used to draw attention, it should not be abused as being part of the variable/type. Just use the proper symbol.

[1] And I'm only saying "almost" to account for the possibility of there being like 5 super weird people on this planet that think otherwise. I don't know a single person who thinks this is a good idea, even the professors writing their scripts like that think it's stupid and are only doing it due to some nonsense fear of it otherwise not printing correctly due to one single bad experience with a shitty printer in 1950. Or maybe there's some other historical reason for this, but in 2023 I'd classify not using the better notation as malicious.

comment 3y ago · link · parent

I don't, I think that line length limits are typically not a good idea and thus I don't like hard limiting them. Now obviously arbitrarily long lines are no good, I'm not advocating for people to write 300+ char lines. I'm just saying that sometimes there's good reasons to (slightly!) go over the "limit", for example shortening the variable name "users" to "usrs" to make a n+1 line fit into the n char limit would be a terrible idea. And also when this topic comes up then typically people implicitly think about the 80 char limit, which is just way too restrictive and has no reason to exist anymore, it's not 1980.

The limit on what constitutes a reasonable line length is a bit subjective but I'd say that well written code rarely goes above ~120 or so. Depends a bit on the language, some just have more boilerplate than others. But instead of making that a hard limit I'd warn above that number so actual people can decide if it makes sense there or if a rewrite is in order. Auto-formatting is great and all, but ultimately a human should have the last decision.

Though if you force me to pick a value, then it's 4 because that's the sanest choice for like 95-99.9% of all people.

comment 3y ago · link · parent

That's a pretty ignorant view, there's tons of developers using Windows. If you take a look at the SO survey (or similar ones), Windows has 47% in the "Professional use" category.

comment 3y ago · link · parent

This has nothing to do with enterprise, it's about accessibility. For most people on the planet English isn't even the first language and now you expect them to know about obscure wannabe-cutesy internet slang? Fuck that shit, what's next? UWU.md instead of README.md?

comment 3y ago · link · parent

It's not just age, plenty of people find 2 spaces hard to read. Thus the only logical choice for indentation is tabs. That way every reader can pick the size that is good for them.

comment 3y ago · link · parent

Zeal works on Linux.

comment 3y ago · link · parent

The ones that start with `telemetry`

comment 3y ago · link · parent

I mean sure, more things being expressions instead of statements is pretty nice (e.g. in Rust you can do that). But you don't need to introduce different syntax for that.
123