Hacker Newsnew | past | comments | ask | show | jobs | submit | embrassingstuff's commentslogin

Is the JVM spec itself really a moving target ?

I am working on a heavily customized java7/jvm7 internals engine. So I am years behind.

But arent most of the changes in the language / internal implementation ?

I agree however that trying to chase commodity processors is a fools errand.


> Is the JVM spec itself really a moving target ?

Yes, it is. Every new Java release brings a new JVM spec and a new version of the classfile format [1]. How much changes varies from release to release – in some Java releases, little changes other than the classfile version number; in other Java releases, there are significant new features – new opcodes, new class file attributes, new constant pool entry types, etc.

> I am working on a heavily customized java7/jvm7 internals engine. So I am years behind.

The most obvious thing you'd be missing would be support for the CONSTANT_Dynamic_info, CONSTANT_Module_info, and CONSTANT_Package_info constant pool entries.

There are a bunch of new classfile attributes, but you may be able to get away with just ignoring the newer ones, at the cost that certain newer features won't work correctly (such as modules introduced in Java 9).

I don't think they've added any new opcodes since the introduction of invokedynamic in Java 7. (But, there is always the chance that some future Java release will.)

[1] https://docs.oracle.com/javase/specs/index.html


Do u really feel an average/top driver can strategize during the race?

The race engineer has X10 data, X10 mental bandwidth, and X10 domain practice (that's his day job!)

There all these radio moments (Hamilton "how r we behind them?" after spinning out in Germany etc) .. which really makes it clear that the driver focus is very local (both spatially and temporally), as it should be!


Vettel called his pit stops in one of the last seasons and Schumacher was said to pull all the strings and that this was the reason for his success.


His racing antics and desire to win at any cost aside, Schumi was brilliant. There were way less real time metrics of pit stop strategies, more variables like refueling and less sensors in the car. He was a master strategist and now with each team having dedicated teams around data and strategy, I doubt we will see a complete driver like him.


Calling your pit stops makes sense, sort of, for drivers. Top drivers like Vettel (well pre-Sbinalla Vettel) have a better "feel" for the tires and can gauge how they are doing. But this often times is risky and breaks down in races because the human brain, especially under the pressure of F1 racing, is not going to be tracking thousandths, hundredths, or even tenths of seconds off lap times over 4-5KM of traveled distance. You can hear frustration in engineers voices when trying to convince a top driver they need to get new tires after ignoring previous calls to "box" (come in for a pitstop).


Everybody has their off moments, but I’d say the top drivers strategize pretty heavily (even if your only counting pit strategy as strategy). Even then I’d say driver called pit strategies have about as much chance of working out as team strategies (which are mostly guess work). The only strategy the driver can’t really contribute to is the mechanical preservation strategy, because they can’t see nearly as well what the condition of their engine is. But even then, that strategy is the same all the time - make the engine and gearbox last the required number of races.


Buy isn't most of the dynamic load limited to the locally-available jars ?

Which means that the AOT generator has a finite set of classes to.comsider ?

And similarly, all the Spring/Boot dynamic features are a finite combination ?

(I have work on huge JVM systems with huge classpath directories but ultimately these run time polymorphism are finite?)


I haven't done much of this at all, but I believe dynamic class loading in graal's native-image AOT works when the string parameter in Class.forName(param) is a static string or a constant. This actually capturez a huge amount of apps, because their only dynamic class loading is for JDBC, and most apps know beforehand which driver they want to use.


OpenJDK supports various kinds of AOT too, which also supports dynamic class loading. However the performance boost at startup is not as significant as with native-image/SubstrateVM/GraalVM because it stays spec compliant.


How different are these ARM server implentations from each other ?

Will we need to recompile? Will it be almost-100%-binary-equivalent-with-some-hidden-bugs ?


Ugh, yes; one of the perks of an Intel monoculture was that at least you only had one target to worry about, and inter-generational quirks were mostly limited to minor things. Now we have to deal with "this was optimized for (Intel|AMD) and doesn't work on (AMD|Intel)" and "the devs tested this on their x86 laptops and then it got weird when we went to run it on ARM" and "ARM is less of a platform and more of a collection of kinda-similar-looking systems that are mostly compatible". Don't get me wrong, I'll take this over a monoculture, especially an Intel monoculture, but there are some bumps on the road to a more diverse ecosystem.


In my experience, the Arm ecosystem has an excellent track record regarding compatibility across conforming implementations of the architectures (e.g., Armv7-A, ARMv8-A). I can draw a practical comparison to MIPS, where I had to deal with a lot of variability based on various vendor extensions. This is reflected in the "-march=" documentation for GCC:

MIPS: https://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html AArch64: https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html Arm: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html


Yeah but we get to go out back and invent some new wheels for the portability tractor so that will be fun.


From the article

> could work within Apple's rules by allowing the app to function as a reader for standard e-mail, while also offering Hey subscriptions

This is apple's new stance or is it conventional wisdom for store policy?

If only Hey also worked with regular mail all would have been well?


It was a suggestion on how to update their app to comply with the policy - basically offer a free version that's just like any other email app.


I would personally love to see Hey come back with a free Apple version of their service which gives the user a hilariously long @hey.com email address and lets them use it.


Yeah, like the digital equivalent of work to rule. 1MB storage, no attachments, forced signature, etc.. It would be hilarious to see Apple respond to that because it's still more ethical than all the trial subscription scams they allow on the app store.


I wouldn't even put any limits on the account (outside of the fact that your address would be an exceptionally unfriendly string.

Since this sign up is through Apple, I assume Hey would have the device ID, and could limit repeat/duplicate/spam sign ups in some way.

I am also assuming that the marginal cost of hosting an account is trivial.

In this situation, _worst case_, someone creates a free account, likes how it works, and then has to pay $99 elsewhere in order to get a reasonable address.

This would kind of be the definition of malicious compliance. And honestly, ya, I would love it.


that's what the email that Apple sent them said.

> If you would prefer not to offer users the option of in-app purchases, you could consider having the app function as marketed — an email client that works with standard IMAP and POP email accounts, where customers can optionally configure the Hey Email service as their preferred email service provider.


Why was MCTS (or some search variant) not used in alphastar ?

(Sure, u need to somehow roll forward and rollback the StarCraft world, but for Atari using MCTS was shown to be an order of magnitude more efficient )

I have also seen comments that the search width is too large, or maybe academic purity consideration?


Which tablet/keyboard combination are you happiest with ?

I really want something that I hold on my lap for some emails.

Most models have that back supporting leg which is for table use only.


The iPad Pro + Magic Keyboard is incredible. If you can get past the astronomical cost, it’s so worth it.

The biggest difference is that the Magic Keyboard never fails. Not like it works 95% of the time or even 99% of the time. 100% of the time it types when you expect it to, connects when you want it to, disconnects easily, doesn’t double inputs or skip inputs. There’s nothing I would change about it.


Surface pro keyboard is also incredible--this is coming from someone who used thinkpads for over a decade and has a model M attached to his desktop. It isn't as good as a proper mechanical keyboard, but I'm nearly as fast and accurate on the surface type cover as on a proper keyboard.

To the parent- the surface works fine on a lap, provided you use a case with a solid kickstand (the stand on the actual tablet wants to fold in far too easily). For reference, the reason I abandoned the thinkpad is that I am managing a warehouse and spend ~50% of my day using the surface either standing, on my lap, or haphazardly resting on a pallet of product. I wanted something light and portable, I haven't regretted the tablet decision yet. I seriously considered iPad, but unfortunately it is essentially a phone OS. Win10 isn't the greatest, but it is a full-fledged OS for real work. My only gripe is that it isn't 100% touch optimized, so I can barely use the surface if I don't have the keyboard attached. Oh, and I do dearly miss the trackpoint. However, the keyboard has been great, and with WSL I don't really have any issues with getting the development side of my job done either. I have had a /. account long enough to be considered slightly 'rabid', but as much as it pains me to say Microsoft have made an excellent product.


not OP, but I obtained a Logitech K480 bluetooth keyboard and planning to use it together with PineTab


There is no such thing as bad capital.

But looking at the web site, over approx 2 years, 15 investments, I presume low-6-figures.

So out of 1000s online applications of "self builders" u have a 1 in 1000 acceptance rate?

This statistic is just as important as being "founder friendly" or "no song and dance needed".


i hear you. not enough. we're scaling up as fast as we can!


How many people would.use a cloud compiler?

Let's set aside thecnicalities and assume it a real X5 improvements and all the files are mirrored seamlessly.


If you are referring to a caching distributed compile cluster, most companies with large codebases are using one (or should). It helps a lot and can make the difference between taking half a day for a scratch make (i.e. unusable) to getting down to 10 min.

There are open-source ones but I'm also aware of at least two internal, custom-developed ones.




Ken Thompson would be rolling in his grave if not for him being alive.

I could see this having some use in an internal manner for things like game development where you have absolutely enormous codebases (as an abstraction above compile servers and similar).


Many already use one called distcc.


My company would pay for that, up to $50/developer/month. Its a no brainier if you really get X5 speed improvements, not just for full builds but incremental as well. Of course there are tricky issues there, privacy, lock-in, how intrusive the scheme is, but the build tax in C++ has a very unappreciated impact on productivity, one that the C++ committee seems incapable of addressing.


I think there is no cloud service for this precisely because companies mostly don't want to give out their source code. Although many already rent AWS instances for their devs :)

In many companies the build cluster runs on the developers' workstations themselves, which has the benefit of fully using idling machines. The drawback is higher maintenance due to less reliability of such machines.

Would your company accept internal hosting for such a cluster, i.e. paying for the hardware themselves?


In my particular case no, it would be too much hassle for a small business like ours (we are a remote only firm with only a few people). But I can imagine it would make sense when we grow.


There is no cloud service for that ... except Google Cloud Build.


Are you aware of anyone using it for C++? I couldn't find any mention of C++ in the documentation nor via Googling (sure it will be possible but it seems to involve significant setup)


I'm not really plugged in to the industry. I've used it with bazel cc_binary targets, so I know it works.


Besides the cluster compilers used by C++.

OpenJ9 for Java can use a cloud compiler,

https://blog.openj9.org/2019/05/01/openj9-internship-making-...

.NET when AOT compiled for Windows Store uses cloud compilers, https://blogs.windows.com/windowsdeveloper/2015/08/20/net-na...

And as of Android 10, the cloud compiler is everyone's phone, because PGO data gets uploaded to the play store and improved on each device feedback.

https://android-developers.googleblog.com/2019/04/improving-...


icecream (icecc) is basically this. It’s “cloud” in that it’s distributed, but it requires surprisingly high bandwidth to the cluster, so it basically requires an office LAN connection. Or for your editor to be on that connection a la VSCode’s remote thing.


This is probably the other big reason why "cloud compilers" are rare. Not much point in using one if you can compile the source locally more quickly than you can upload it.


MBED already pioneered the cloud compiler.

Their compiler did optimizations to produce (slightly) better code than any compiler you could buy.

A lot of users were uneasy with it.


It's only at link time that object will depend on another, so you don't need a new compiler to support a "cloud" use case where any number of machines can work on compilation.


A lot of large C++ projects use link-time optimization, since it's the easiest way to get predictably good performance.


My situation is the complete opposite.

I have a great idea, did some decks/mockups/simulation's.

Was actually offered 6-figure angel investment (I passed).

Yet haven't been able to make reall progress with an MVP. I am a very experienced developer, but never did any web/saas stuff.

I feel embarrassed.

I have tried joining recently a tracking and discussion forum and it's been really helpful.


Web is its own beast -- even movie making software has to be learned, certainly true of new software domains. I'd recommend researching your tools thoroughly before diving in, and finally when you choose a few candidate tools try and build small prototypes in each that would become modular chunks of your main app. In this way you can evaluate which tools you'd like to use from some low-risk investment of time and effort, and walk away with clear tool commitment. Once you commit to a toolset, you can dive into development as much as your toolset accommodates expression and feedback. I'd recommend using something that has a REPL (Clojure/script with Selmer and even Python with Django have this) which is a way to get immediate feedback from changes in your code. The feedback loop in traditional web development is way too long to make responsive apps in a reasonable amount of time.

Definitely find forums for the tools you are using and ask questions in the beginners channels. No need to be embarrassed, if you've never held a cup it's not a big deal, it just takes time to learn how to hold one. Then time to walk to the river, then time to scoop some water into the cup. But eventually, piece by piece, you'll get a delicious drink that satiates, and you'll know how to fashion a cup even more cleanly for the next time(s) you need a new cup. Aha, at this point one can start seeing code reusability, state management via atomic actions through swaps, and functional approaches as fundamental to achieving incremental progress. Laying the foundation hardly looks like progress, but actual progress is impossible without an excellent foundation.


Let me know if you could use a partner.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: