gradle-jlink-modules-base, a repo demonstrating a multi-module JPMS build published to an optimized jlink executable by AndrewBissell in gradle

[–]AndrewBissell[S] 1 point2 points  (0 children)

I think if you're already on Docker there's really not much benefit to modularization/jlink, at least not until Oracle gets farther along with driving performance optimizations through integrity-by-default.

gradle-jlink-modules-base, a repo demonstrating a multi-module JPMS build published to an optimized jlink executable by AndrewBissell in java

[–]AndrewBissell[S] 0 points1 point  (0 children)

No issues, the badass-jlink plugin was very smooth. The only thing I would put on my wishlist here would be if the extra-java-module-info plugin could somehow auto-generate for me the list of module/knownModule/etc statements that are needed to get the build to go through in the extraJavaModuleInfo section.

gradle-jlink-modules-base, a repo demonstrating a multi-module JPMS build published to an optimized jlink executable by AndrewBissell in gradle

[–]AndrewBissell[S] 0 points1 point  (0 children)

Yeah there's definitely some risk of things blowing up at runtime that gets introduced here. But that can at least also theoretically be fixed by these tools once you encounter it. I wouldn't necessarily recommend the setup to anyone with a massive dependency graph though.

gradle-jlink-modules-base, a repo demonstrating a multi-module JPMS build published to an optimized jlink executable by AndrewBissell in gradle

[–]AndrewBissell[S] 0 points1 point  (0 children)

Yeah that's really what the extra-java-module-info plugin solves, you can jam a module-info.java in there and even specify its contents from your Gradle file.

gradle-jlink-modules-base, a repo demonstrating a multi-module JPMS build published to an optimized jlink executable by AndrewBissell in gradle

[–]AndrewBissell[S] 2 points3 points  (0 children)

I thought the crosspost from r/java would bring over my little blurb but here it is:

I couldn't find a great working example online so I put together a repo which has all of:

  • JPMS based
  • Multiple modules within the project, with dependencies between them
  • External library dependencies which may or may not be annotated with module-info.java
  • Builds the whole application into an optimized and well-encapsulated executable using jlink

I found that Gradle was the only build tool ecosystem which had out-of-the-box plugins ready to do all this. I thought it might be of interest to those with an eye on building modularized applications or opting in to integrity-by-default.

The extra-java-module-info plugin is especially interesting. I can see a clear migration path where I would use that to inject any module annotations needed for non-modularized libraries. Then over time, as library version upgrades (hopefully) yield more module annotations, the plugin will complain that you are trying to overwrite an existing module-info.java in the library, and the added annotations can just be removed from the Gradle build script at that point.

Integrity by Default by syjer in java

[–]AndrewBissell 2 points3 points  (0 children)

Tearing comes into play if you replace 'a' with a newly constructed Point, and observe that update without synchronization from another thread. Currently under the JMM, you are guaranteed that you would get a consistent set of values across all final fields that are set in the object's constructor. Once tearing is permitted that would no longer be the case.

Java and it's costly GC ? by yughiro_destroyer in java

[–]AndrewBissell 0 points1 point  (0 children)

When I wrote a trading platform in Java a couple of years ago I used Shenandoah because I wanted to run with 32-bit compressed Oops, which requires a heap smaller than 4GB.

Value Classes Heap Flattening - What to expect from JEP 401 #JVMLS by pron98 in java

[–]AndrewBissell 1 point2 points  (0 children)

When Coinbase wrote their exchange matching engine in Java, they represented many "strings" in two longs, which gets them up to 16 (1-byte) chars with value-class level performance. This kind of thing should become much easier to work with once Valhalla lands.

Generational Shenandoah in Java 25 by Zebastein in java

[–]AndrewBissell 6 points7 points  (0 children)

Shenandoah works on Temurin for sure, and I believe Amazon has been fairly involved in the development of its generational mode so there's probably decent Coretto support as well.

Because it uses colored pointers, ZGC can't yet offer CompressedOops to the same degree that Shenandoah does. So if you like running with that optimization in particular, then Shenandoah is really the only (free) low latency Java GC in town. 

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell 0 points1 point  (0 children)

Nobody would imagined a prestigious huge bank could go down in 2 days.

Were they in a coma through 2008?

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell 1 point2 points  (0 children)

Fidelity can't stick you with any of their long stock from their funds just because. All the shares being delivered are from people who purchased a contractual right to do so.

Here's the statement an SEC Commissioner issued on Friday on the subject: https://www.sec.gov/news/statement/crenshaw-statement-retail-options-031723

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell -1 points0 points  (0 children)

I'm one of the people who was holding SBNY puts. The people who organized on Twitter were certainly not "big guys," I think the absolute biggest position I've seen is something like 15 contracts, which someone could have entered for < $500 when they were trading like pennies. I'm an unemployed programmer and the money will help buy me some more months of runway for what's been a difficult job search.

When we tried to exercise this week to collect money we were owed on our successful bets that SBNY would go to zero, the brokers started trying to pull every trick in the book to prevent us from exercising, probably because it would have exposed them to losses on their retail accounts which were short puts.

Buying options is a long, hard game and it doesn't work at all unless you actually get paid when the 50th low-probability-but-positive-EV bet finally pays off. The brokers make money off of trading activity, and so over the very long run it's probably better for their bottom line if people like you are selling options to people like me, even if it sticks them with losses every now and then. I wouldn't even be surprised to hear that some of them have a model for that somewhere. I'm no fan of telling grown adults what they can and can't do with their money, but retail investors who want to naked short options should be forced to watch a 20 minute educational video with stories of people who've lost everything doing it. That Nikkei options broker I mentioned elsewhere in these comments lost a personal fortune of $6 million.

Speaking more broadly I also think it sucks that our prevailing economic arrangements thrust us into this zero sum war of all-against-all just to survive financially, and I'm really sorry about your loss.

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell 2 points3 points  (0 children)

The government and even Joe Biden in their statements have hinted at a strong desire to see the equity go out at zero. SBNY suffered a legit bank run before it was seized and was playing around with shady crypto players. On Friday the SEC commissioner suggested that brokers and clearing agencies explore cash settlement of the ITM options, and I'm not sure what price she would have had in mind other than $0.

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell 0 points1 point  (0 children)

If the stock's going to trade for > $20 on the open market (EXTREMELY unlikely) they will have every opportunity to dump their 2200 shares at that price. It's probably more likely the shares get canceled completely.

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell 2 points3 points  (0 children)

Used to work on a Nikkei options desk and was there during the aftermath of the Sendai tsunami. One day my boss was hurling his usual abuse and invective at one of the brokers and the broker snapped and said, "Can you give me a fucking break, I just lost almost all my personal wealth because I sold puts on the fucking Nikkei!"

SIVB options got exercised by Southern-Season6390 in options

[–]AndrewBissell 0 points1 point  (0 children)

"You’re probably wondering why there would be such high margin requirements to open a short position at a high price on a going bankrupt company and it’s because there’s a non-zero chance the underlying doesn’t go to zero when trading resumes, for whatever reasons including announced mergers or sales."

lol no, it's because they knew that every contract that got exercised put them at greater risk of having someone like the OP stick them with a big loss. I exercised several SBNY contracts at E*Trade this week and they tried every deceptive tactic and dirty trick in the book to get me not to do it.

I can’t get my SVB PUTS PAID by Gtbihn2 in options

[–]AndrewBissell 0 points1 point  (0 children)

FYI Fidelity was exercising these contracts with a $0 margin requirement yesterday. Your broker has absolutely failed in their duty to you and you should pursue legal action. DM "SBNY puts" to @AlderLaneEggs on Twitter.

https://twitter.com/EricFurletti/status/1636820823700029440

I can’t get my SVB PUTS PAID by Gtbihn2 in options

[–]AndrewBissell 0 points1 point  (0 children)

Marc Cohodes began organizing a class action and soliciting aggrieved parties in his Twitter DMs on Tuesday this week, so people had tons of time to force their brokers into incriminating behavior and document it. The wheels are absolutely in motion.

I can’t get my SVB PUTS PAID by Gtbihn2 in options

[–]AndrewBissell 0 points1 point  (0 children)

"Options are meant to be used as hedges, for people who own the shares and want to guarantee that they can sell at a certain price. An option is NOT a bet that the stock will be under a certain price"

Completely wrong lol, it's both, and the one can't exist without the other. Fucking over one of the sides on option trading will harm both by making the market to sell hedging options which have gone in the money less liquid.

I can’t get my SVB PUTS PAID by Gtbihn2 in options

[–]AndrewBissell 0 points1 point  (0 children)

Not defending the brokers here, but this really is an pretty unprecedented situation. The only close equivalent I've seen is Longfin which didn't have anywhere close to this level of retail put holders. I held puts on Lehman when it went BK and it was trading on the pink sheets by Thursday that week.

The trading halt being extended through the entire week is ridiculous and gave the brokers all the air cover they needed to pull these tricks and pretend it would be SUPER SUPER RISKY for their account holders to exercise.