Better HN
topnewbestaskshowjobs
Log inSign up

native_samples

1,350 karma · joined Jul 1, 2021 (5y ago) · 1,370 submissions

Submissions

comment 4y ago · link · parent

I guess it must be common. I had a very similar experience at university except without the fillip of lecturers who actually had programming skills.

Same gig though. Set a programming assignment that's way too hard for the class, because they hadn't been taught programming properly (in this case, implement a few simple graph algos so hardly Firefox 0-day level). Realize too late that nobody can pass the assignment and retroactively change the marking criteria to be entirely based on writeup. Result: as one of the only people in the class who actually submitted the full three working solutions, I got one of the lowest grades, because "You explained the algorithm in 'detailed code comments'? Do you think I have time to read student's code? It needed to be submitted in a Word document alongside the submission."

This was at a UK Russell Group university, supposedly one of the elite. IMO universities are jokes. They were crap at teaching decades ago and that was before they were overrun with radical ideological activism. They're simply good at hiding the truth because academics are treated like gods - nobody believes students who say their teachers are terrible at their own subjects.

comment 4y ago · link · parent

Google knows about external inbound links, so has more data on which to rank your pages than you do.

comment 4y ago · link · parent

Records is what Java calls data classes which kotlin had since 1.0

I don't think these criticisms really hold water to be honest, though Ron may have a stronger take on this because he works on the Java team on Loom, and Loom is one of the few areas where big JVM upgrades can actually drastically simplify the programming model. Most of the other things Java has been doing are just catching up. The needs of stability and their general culture prevents them moving as fast as the Jetbrains guys did when designing Kotlin.

comment 4y ago · link · parent

Or use it, and accept that the language support is about as good as it usually is for Emacs? Emacs has never had the full range of features an IDE has.

comment 4y ago · link · parent

Only if you think you need an IDE for a language to be usable. People sometimes make that argument about Java but kotlin is far less verbose.

comment 4y ago · link · parent

What about the 'discovery' that Google Analytics is illegal under GDPR? Not raised even once right up until the moment the courts decided it.

EU privacy law is so vague that people routinely 'discover' new impacts of the rules only when some judge pulls them out of thin air. The fate of EU tech firms is pretty much well described above: endless agonizing over how these rules might be interpreted, followed by maximally damaging interpretations, because the nature of such law making is that enforcement is arbitrary.

comment 4y ago · link · parent

EU isn't actually motivated by voting here, because they have power regardless of who votes for them or not. The Parliament "negotiates" with the Commission (executive branch) for this reason - the EU is set up to ensure that decision making is so far removed from voting that it's entirely irrelevant.

The real reason they do this is they perceive it as a free source of income, which they can then use to buy off states to keep them in the EU itself. Note how the rules only apply to really big companies (i.e. US companies), and the fines are really big, and the rules are vague. It'll be a cash cow that avoids upsetting any local interests, the fact they can drape it in pro-consumer clothes is just a bonus from their perspective.

comment 4y ago · link · parent

But in practice the Java definition of a character basically always works, because characters that aren't in the BMP are vanishingly rare in real software outside of emoji, and of course, Java long pre-dates emoji.

comment 4y ago · link · parent

Backwards compatibility. Forwards compatibility isn't well supported by Java, or any other platform. The best you can do is catch exceptions and route around them, or use reflection for that.

Examples of things that have been or are being removed more important than finalizers:

- As noted, SecurityManager deprecation

- JavaFX. It was bundled in Java 8, lots of apps were written on that assumption, then it was removed. They all had to be re-packaged.

- Web Start.

- Removal of access to JDK internals in general, which lots of stuff depended on.

- Removal of various Oracle Java specific stuff, e.g. the resource management/control API.

- Java EE stuff. Annoying because a lot of stuff used it only for a few utilities, and because it actually got renamespaced so you couldn't even just add in the packages from elsewhere.

And there were lots of other backwards compatibility breaks, e.g. when they changed the format of the version number a lot of stuff broke.Probably more that I've forgotten.

Java is a great platform and I use it all the time, but Java's backwards compatibility is highly overrated. They don't care about real apps at all, probably because they hardly use any. Their backwards compatibility is defined relative to their own specification, not working software, so important apps have broken repeatedly over time.

comment 4y ago · link · parent

Browse through the app gallery at https://www.jfx-central.com/home

(note: jfx-central is itself a JavaFX app, again running with JPro to be projected over the web, but you can also download it and run it locally).

comment 4y ago · link · parent

JavaFX by far. The API is probably the nicest I ever used of any toolkit, it's got a lot of features, is maintained by multiple companies, is mature, has a well integrated WebKit control, good multimedia support, can do 3D effects, uses CSS, has a UI designer, is stable, runs on embedded, mobile, desktop and can be "projected" to web browsers using JPro, and most releases are just bug fixes these days.

Currently fully FRP UI is quite popular (Jetpack Compose, ReactJS etc) but frankly whenever I've read such codebases I've been somewhat unimpressed. You can make JavaFX work that way with a bit of extra utility code, and there are places where that approach makes sense, but fundamentally a well engineered OOP UI toolkit is in its element. The functional reactive approach seems to create quite a few problems. Whether it creates as many as it solves, I reserve judgement as I haven't had a chance to write a large GUI app since they came out. Still, I've written a lot of them in the past and would definitely be tempted to stick with JavaFX despite having worked through the Jetpack Compose tutorials.

comment 4y ago · link · parent

You can ship to iOS with Java actually. That's the business model of Gluon:

https://gluonhq.com/

It's a combination of JavaFX, a custom controls library that implements Material Design and GraalVM native image. Whether you want a non-native UI toolkit on iOS is a separate matter, but it can be done technically.

In fact, you can ship JavaFX apps to the web too. It doesn't compile to megabytes of JS either - instead, the JavaFX app runs on the server and the UI is projected to divs and SVG elements on the fly. The browser provides native scrolling and text selection. If you have low latency to the server (e.g. same continent) it can work remarkably well. Check out https://www.jpro.one/ - the entire website is a JavaFX app.

comment 4y ago · link · parent

They removed much bigger things, and broke backwards compatibility in much bigger ways. Finalizers aren't really used much in Java except for safety checks ("you forgot to close this object"), which can go missing without breaking things.

comment 4y ago · link · parent

There are, but Oracle employ the vast bulk of the JVM and standard library experts in the world so they are in a position to offer far better support.

comment 4y ago · link · parent

UTF-16 represents a fairly reasonable compromise, not sure what your disgust is for.

UTF-32 (with no BMP concept) doubles the memory usage of most international text and quadruples the memory usage of ASCII text (which is the most common), yet characters outside the BMP are barely used outside of emoji.

Native UTF-8 in memory makes character indexing a non-constant time operation, which would bite people badly in cases where they've written a loop over the indexes. This is of course the point at which you say, ah but what is a character exactly. If you go down this route you end up with Swift and Emoji Flag Calculus classes. The string APIs become incredibly convoluted or inefficient for the common cases. It hardly seems worth any kind of backwards compatibility break for this.

So Java does the pragmatic thing: String can switch between 8 or 16 bits per "character" and this is basically always good enough. If you care about woring with emoji or Egyptian hieroglyphs in memory, then you either have to deal with combining characters or just bite the bullet and decode to UTF-32.

comment 4y ago · link · parent

It's not a big surprise. Modern neo-left politicians have a long track record of this kind of policy inversion when they get into power. The same thing happened with the Lib Dems in the UK. They only really had two policies going into coalition with the Conservatives: a referendum on proportional representation, which got modified into something slightly different and then they lost, and eliminating student fees, a pledge which they immediately abandoned once they were in power and realized how expensive it would be. Then it happened again with Brexit: a whole lot of MPs promised to respect the vote and implement the referendum, then once they got into power immediately and publicly reversed this position, in some cases even crossing the floor to join different parties that had 180 degree different policies (this doesn't automatically trigger a by-election in the UK, though really it should).

The issue is not really communication breakdown. The problem is that politicians often don't really research their positions going in. Then once they are in government they get access to lots of briefings, 'secret' information, they have to start thinking about budgets and so on. Suddenly they realize their policies weren't quite as obvious as they thought they were. Getting rid of nuclear was flagged for many years as an obviously stupid move but the Greens could blow off such criticism as "right wing" and thus (to their supporters) not even worthy of consideration; suddenly they're in the hotseat and can't do it so easily anymore.

comment 4y ago · link · parent

They do in certain parts of academia. The message that academic models fail to predict reality isn't a popular one, hence the failure to haven anything from the 70s Malthusians "limits to growth" models.

comment 4y ago · link · parent

No, it's the opposite. Happyness comes from wealth, more or less. Economists are pretty much in agreement on that and their case is strong. Wealth in turn is basically "population * technology", where "technology" is broadly defined and also depends somewhat on population.

If population goes down wealth goes down, life gets harder, people get less happy. Pretty simple. Consider that in a low population world it's probably not worth being a computer programmer, because the demand for your physical labor would be higher.

comment 4y ago · link · parent

A lot of these discussions conflate credentials with degrees. The pushback against credentialism is usually motivated by the real and perceived problems of academia rather than all possible credentials.

The tech industry has prospered, in my view, partly due to lack of credentialism. There's a perception that the big tech firms all needed top degrees to work at but when I was there, that definitely wasn't the case except maybe in sales, where basically anyone could do the work and so degrees were just being used as an arbitrary filter but a lottery could probably have worked just as well. In the actual tech jobs it wasn't important.

Now degrees are being rapidly discredited by the constant drumbeat of stories about stupidity and extremism on campus, and in particular the pre-selection value of a degree is being erased (in America) by affirmative action. If you get an applicant from a "top" university are you getting a diligent and smart worker or are you getting some crazed activist who can't do mental arithmetic but satisfied some victim quota? You can't know so, gotta interview them carefully and take big risks anyway. At which point the signalling value has been eroded by quite a bit.

comment 4y ago · link · parent

Brazil's take is wrong, just like Russia's and China's is.

Whether something is dystopian or not is unrelated to whether it's legal. Dystopia is always legal, that's the point of it.

comment 4y ago · link · parent

You don't see anything dystopian about systematically preventing Brazilians from talking to each other because of "misinformation"? They appear to be trying to wipe Bolsonaro out, judging from the contents of the article.

comment 4y ago · link · parent

You should know that you're repeating what you might call a gish gallop of leftwing propaganda points here (hey, you started it).

Analyses of the entire global data set shows no correlation between lockdown severity, starting time, compliance levels and results. Ditto for masks.

Mask mandates had no effect. There are control cases where people who are otherwise very similar got split on whether they were wearing masks or not due to rule differences. People generally didn't wear masks unless they had to, and yet there were no differences in outcomes. There was very recently a very highly powered Spanish study on children that confirmed this yet again, but it'd been proven many times in the past two years with other cases, often geographical regions that were right next to each other and only differed in terms of mandates.

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4046809

Health officials were not concerned about protective gear shortages at the start of the pandemic. That's a lie, obviously an effective one as you're repeating it. Interestingly, it's also actually a conspiracy theory; they were globally united in saying that masks had no effect because that's what the available evidence says. Not just Fauci but other governments too, all made this claim. And then they inverted it. To claim this was actually all a ruse from the start would require a global conspiracy of health officials that was never detected.

We know the claim their reversal was a "noble lie" is itself a lie because of the release of private emails between public health officials who were saying to each other at the start that masks don't work, not just to the public. And indeed that's what they should have been saying, because the evidence base for masks was very poor. It was only after politicians decided they needed to do something that public health suddenly inverted its position.

comment 4y ago · link · parent

You have to remember that especially at the start, a lot of people were lied to. Even people who became maximally skeptical later on often started out believing that masks were essential, lockdowns worked, etc. They only realized these things weren't true as they discovered the source data and analyses out of it from outside the legacy media.

So there's a strong date aspect to this.

Still, it's probably a pretty good signal for future employers who are looking for smart independent thinkers. If you were quitting your job for this reason in April 2020 maybe it doesn't mean much. If you were doing it in April 2021 then that means you will blindly accept and even enforce absolute nonsense if phrased in techno-babblish ways, and are quite likely to engage in left wing activism on company time to boot. These are not qualities smart employers will be seeking, but it's very hard to figure out whether someone is like this during interview. If you ask why they quit their last job and they say "not enough COVID countermeasures" and the date was late enough in the pandemic, that's a good sign to pass on them.

comment 4y ago · link · parent

Most likely a lot of this is simply suppressed resignations that would have occurred during the early months of the pandemic but people waited to see what would happen, whether the economy would crash etc.

I quit my job in March 2021. It wasn't to do with any Great Resignation. I'd planned to do so a year earlier and then lockdowns started so I decided to stay put to see how things worked out. A year later it was clear the whole thing was massively overblown, so, time to pull the plug.

If I was asked on a survey though, I'd probably tick a bunch of these boxes. Discrimination and sexism in the workplace? Sure. Against men. A good reason to leave and be my own boss.

comment 4y ago · link · parent

Yeah, there's also https://www.jmix.io/tools/ which I've looked at before and seems pretty nice. It's basically a set of libs and IntelliJ plugins on top of Spring, so you can quickly knock up a CRUD app but then extend it later with Java.

If I needed to quickly throw together a business CRUD app then I'd be tempted to buy it. At $1000/yr/developer, that's about the cost of 2 weeks of work (assuming a lowballed $90k/yr salary). Can it save two weeks per year? My guess is yes, especially if it lets you hire less experienced devs who maybe haven't written a CRUD web app before or would find it slow going / be likely to make errors. I dunno if that pricing level puts it in the Fortune 500 universe. It probably makes sense for freelancers and internal corp devs too.

comment 4y ago · link · parent

Yes, Flir1:

https://www.sandiegouniontribune.com/news/military/story/202...

They're all ATFLIR videos. It's basically the same thing - a far away hot object, likely another aircraft, turns into an IR cylinder-shaped blog on screen which is then incorrectly interpreted as being an actual cylinder. The apparent movement at the end is just the ATFLIR losing lock as the guy constantly zooms in and out.

comment 4y ago · link · parent

There are actually lots of different UAP incidents. In some there are supposedly objects that get really close to carriers, which are tracked by many different radar systems etc. The gimbal video one wasn't one of those, IIUC, it was just what you see in the video.

comment 4y ago · link · parent

My point is that you're over-simplifying. You've given two "simple" solutions neither of which are actually responses to the post you were replying to by vbezhenar:

1. "Hire/retain at market rate". Easy unless you don't know what the market rate is, which you don't, because - as you say - incomplete information is an inherent feature of any resource allocation system including markets. Which is probably why vbezhenar phrased their claim in relative terms instead of absolute terms, whilst caveating that this is true for an "ordinary company" but maybe not for Google or governments. Theirs is an inside-the-market view. You're arguing that all you have to do to solve this problem is somehow step outside the market, and just know what the final price actually is for any given person.

2. "Hire in a different market". But that isn't an answer to the OP's point, it's an agreement with it. He's explaining why ordinary companies will refuse to train people. You're claiming the "solution" is to get out of Dodge i.e. not train people. It's not a refutation.

There's no political axe grinding here. What's happening is not unique to SV tech firms. It's an inevitable consequence of CB monetary policy distorting classical market economics. The causes of the policy may ultimately be political, but the outcomes are inevitable.

1
131415
46