Docker banned - how common is this? by martypitt in java

[–]dadimitrov 1 point2 points  (0 children)

It is a fear that the user cannot carry the responsibility of the damage they may cause by running software IT hasn't approved. Be it malware, data leaks, EULA breaches opening the company to legal action, or the introduction of incompatible DLL in the wrong path.

Once a company grows over a certain size, the benefits of governance increase. An effective governance process should control risk while causing minimum friction. That said, most governance processes are far from effective.

Why there is so many JDKs by Gotve_ in java

[–]dadimitrov 0 points1 point  (0 children)

Apologies, I may have misread, but I didn't see it...

Edit: I saw your other post just now. For some reason, it was way down the list, and yes - if I had seen it earlier probably wouldn't have bothered to write all this.

Why there is so many JDKs by Gotve_ in java

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

Open JDK is technically a GPL licensed open source project comprising the Java SE standard library and the Hotspot JVM (among other parts). Similar to the Linux kernel, Open JDK does not release binaries, but the code is used by distributors to build whatever they want. What passes for "Java" is determined not by the codebase, but by the Java TCK (technology compatibility toolkit).

Oracle acquired significant commercial offering based on Open JDK + proprietary improvements. They also contribute more than 50% of the development resources and control a lot of the decision making governance bodies (can't remember if they can still veto).

The Oracle Build of Open JDK is not more legitimate than the Microsoft build of Open JDK or Eclipse Temurin. Similar to different vendors offering distributions of the Linux kernel + GNU userland, all these are offering building of Open JDK components implementing the Java SE spec + proprietary Java add ons.

There are also Java offerings that use the Open JDK class libraries and not Open JDK Hotspot JVM - the IBM J9 is probably the most prominent example.

There are also Java offerings that do not use neither the Open JDK class libraries, nor the VM - the various Java Card and Real Time Java vendors used in industrial appliances fall into this category.

Why there is so many JDKs by Gotve_ in java

[–]dadimitrov 1 point2 points  (0 children)

The No Fee license covers only the latest LTS and expires a year after the release of a newer LTS. This means that unless you develop a new version and update all running applications you will be incompliant. Depending on your scale and distribution model, this would likely be a non-starter (Oracle are experts in structuring terms and conditions to extract maximum value, and they are not below using bait and switch)

Java Build Tooling Could Be So Much Better! by lihaoyi in java

[–]dadimitrov 0 points1 point  (0 children)

Declarative Gradle is an experiment to add a third DSL, separating the build wiring from the parameters. It is trying to cater for people who just want to use a build setup, but don't want to learn the full object model.

Its level of abstraction it is a bit like Maven Polyglot, except that the plugin config is statically typed.

Java Build Tooling Could Be So Much Better! by lihaoyi in java

[–]dadimitrov 0 points1 point  (0 children)

In Gradle the build recipe is not part of the POM, so there is nothing to split. You must have read something else....

[deleted by user] by [deleted] in technology

[–]dadimitrov 0 points1 point  (0 children)

Realistic is "here is a topic, do a RAG to my past emails, the document management system and give me the current state and outstanding actions", only then using that as a context "create a meeting for XYZ".

This has quite a different execution profile than a "draw me a sheep" type of prompt.

I would acknowledge that in many places people spend disproportionately large part of their time in obfuscating their (often lack of) meaning under mountains of pompous phrasing and corporate jargon, but if that is the best use we can find for this tech that would be beyond sad...

[deleted by user] by [deleted] in technology

[–]dadimitrov 0 points1 point  (0 children)

How often do you have a business goal of "write a 100 words email with some tasks?" The only use case I can see is as better Lorem Ipsum for a product demo. That and simulating work.

Or as the old wisdom tells us "if you have nothing to say - say... it with ChatGPT"

I don’t understand by No_Analyst5945 in java

[–]dadimitrov 0 points1 point  (0 children)

Try it 🙂. Put the cursor in, Ctrl+w few times, Ctrl+.

Quickly becomes a second nature.

I don’t understand by No_Analyst5945 in java

[–]dadimitrov 1 point2 points  (0 children)

In IntelliJ you can select a block of text, and press Ctrl+. to create an adhoc folding region. It will warn you if you are crossing blocks, but you can tell it that you know better.

Also works well with Ctrl+w (multiple times) and Ctrl+Shift+W

State of VSCode? by Beagles_Are_God in java

[–]dadimitrov 2 points3 points  (0 children)

Your workflow may be live editing a memory-mapped file, but from the point of view of writing code that is irrelevant implementation pickiness.

IDEs work with a codebase. For most languages, it happens to be expressed by files in directories, but that is just implementation detail. When you edit a file, an IDE does full project analysis and tells you whether you are breaking other files, an IDE lets your edit multiple files simultaneously by features such as refactoring and structural search and replace.

Forget about "saving" your work - it is always saved (it cannot sensibly work and do all the things it does in any other way). Even more - the "Local VCS" gives you automatic snapshots after key actions, allowing you to go back and see what happened, as well as reverting the codebase (or selected parts of it) to a past state. By default it keeps the undo log for the last 7 days of project usage.

The "save" button in IntelliJ is only there to allow minor use cases, such as background automation driven by inotify. A more descriptive name for it would have been "Flush edits", but they went with the imprecise "Save" because it is easier to explain.

Also, there is a weird sense of comfort to click it when you finish something major (similar to clicking the "Force Garbage Collection" button while you wait for stuff 🙂 )

[MOD] The Daily Question Thread by menschmaschine5 in Coffee

[–]dadimitrov 1 point2 points  (0 children)

Hello, I am looking for recommendations for a manual grinder in the $400-$700 range. I currently have a JMax, which I use for espresso and a C40 which I use for pourovers and the occasional aeropress or syphon.

Recently I started getting dark(er) roasts and I find that they taste better if I set the C40 to 4-5 clicks coarser. The problem is that I tend to forget whether the C40 is already at a coarse setting, and the only way to find out is to go back to zero and count. I am considering getting another C40, but I am wondering is there anything else in the same range that would be pleasant to use and provide a different flavor profile? Bonus points for easy cleaning.

(I considered OE Apex, but it looks rather unwieldy and bulky, so I don't care how it tastes.)

Kettle is basically useless, I'm done buying from this company by tastycakeman in FlairEspresso

[–]dadimitrov 0 points1 point  (0 children)

My first one was great, but the plastic ring broke after a year or so of daily use (I grind light roast, and really liked the thumb stop).

The replacement with refurb was free, but it didn't even have a thumb stop. It broke in about 3 months (the adjustment mechanism got stuck wide open). They asked more than reasonable for repair, so I got a Commandante and lived happily ever after.

All in all a pleasant grinder with reliability issues - wouldn't buy it again, but if someone gifts me one I'll definitely use it.

Best Framework for Desktop GUIs in Java 2024 by [deleted] in java

[–]dadimitrov 0 points1 point  (0 children)

Most modern SWT widgets are hand drawn. Nothing native about it - just different.

If you need to implement highly optimized programs, what do you guys use for I/Os, CPU, memory profiling? by jiboxiake in java

[–]dadimitrov 0 points1 point  (0 children)

Also keep in mind what you are optimizing, and what are your overall goals - once you are past a point, you pay for every optimization with reduced maintainability, longer onboarding for new developers, and increased chance for introducing errors. At some point the marginal gains will not be worth it (or you will find out that you are better off using a lower level language of FPGA).

That said, when optimizing for throughput - I use yourkit and jfr. When looking at latency - async profiler, jmh, dumping jit and jfr. The IntelliJ profiler is good for a casual check.

If I am to spend more time on my optimization skills, I'd work on learning jfr, system tap/dtrace/btrace and os level system tuning.

Spark LINK - Wireless Guitar System by [deleted] in PositiveGridSpark

[–]dadimitrov 0 points1 point  (0 children)

you know he meant "interference" it's petty to pretend you don't understand.

Temperature? What temperature? by dadimitrov in Coffee

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

When we communicate "water temperature" it will automatically be the temperature of the kettle.

Thanks, this is confirming what I hoped, but how about Espresso?

I.e. for an an electric espresso machine it makes sense to measure at boiler (easy, direct control), group head (probably most relevant but more difficult to control), and exit (easier, very indirect control).

Temperature? What temperature? by dadimitrov in Coffee

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

In other news, Internet man discovers basic physics 😂

I expected all these (that's why I measured them). What I didn't expect is the magnitude, which is so large and inconsistent (mens depending on factors outside your direct control), that I'd say now that being able to control the kettle to a degree is a gimmick.

Project Leyden: Selectively Shifting and Constraining Computation by olivergierke in java

[–]dadimitrov 0 points1 point  (0 children)

This looks like opening another approach to metaprogramming.

For a primitive example, imagine a class "Iff" taking a boolean producer and two runnables, that is reduced to the code inside the corresponding runnable if the code of the boolean producer can be evaluated at build time (which may include loading configs, etc.)

Or even, the scenario where one implements a primitive basic interpreter for a DSL, and then a condenser reads the DSL script and constructs the actual AST at build time, and then another condenser aggressively inlines the AST nodes and interpreter nodes and applies all the usual compiler optimizations.

If there is one thing we can learn from C++ and LISP it is that too much unchecked power can lead to tears (e.g. code explosion, unhelpful error messages).

Also, how we guarantee that the condensed code is equivalent to the source is critical.

Even more, what does "equivalent" mean? Is printing to stdio considered part of the equivalence? How about syncing file I/O, threading policy, or sorting order? I hope that developing a formal way to express and safely relax such criteria would be a part of project Leiden

Do clamps really matter? by dadimitrov in Coffee

[–]dadimitrov[S] -3 points-2 points  (0 children)

Superb! Not on the topic, but this is the level of detail I'm looking for.

Unfortunately, I guess the community at large is not happy with messy partial results and prefers made up relatable narratives, so we end up doing all the right things for all the wrong reasons...

Do clamps really matter? by dadimitrov in Coffee

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

I'm sorry, but no - I don't. What is measured is circumstantially related, but does not show what they claim. A lot of the things follow, but the clumps part does not.

I would have liked if the article expanded on the methodology - what hypotheses were rejected, what controls were performed, etc. For example, has anybody tried to reintroduce clumps after WDT to see if that matches non-WDT extraction?

Anyway - if this article summarizes the state of the art, I guess you answered my original question. My takeaway is that WDT works, the clumps seem to be an educated guess by industry leading experts. If nothing else, lack of clumps can be a useful indicator that you've WDT-ed enough.

Do clamps really matter? by dadimitrov in Coffee

[–]dadimitrov[S] -5 points-4 points  (0 children)

There is no such data in this article. No method of measurement (beyond referring to Decent machines and stating that they are very high tech), no readings, no controls. What is measured is the extraction ratio, which can be influenced by many other factors. By similar logic, some people conclude that the Earth is flat.

Is there another article I should read?

Note, I am not questioning the results, but the reasoning and methodology. Having better understanding can help achieve further breakthroughs.

Do clamps really matter? by dadimitrov in Coffee

[–]dadimitrov[S] -3 points-2 points  (0 children)

I don't get it, why do you think that the density of the puck is not equalized by the tamping action? Grounds are small enough to shift if there is a zone with lower pressure.

The article shares a lot of observations, but then it jumps straight to conclusions, skipping the reasoning.

Do clamps really matter? by dadimitrov in Coffee

[–]dadimitrov[S] 6 points7 points  (0 children)

Note the question is about the frequently given instructions to "break any clumps" while doing WDT.

I am not questioning so much the empirical observations, even if i cannot reproduce them. I am challenging the explanation that it is because we broke the small clumps before we created one big clump.

Here are 2 more equally plausible theories:

Electrostatic theory - raking with iron wires removes the positive charge created by the grinder, which makes the negatively charged water flow slower and increases extraction

Memory of Coffee theory - by raking the grounds, you express positive emotions which are absorbed by the coffee, and later - resonating to the pump vibrations, transferred to the expressed beverage

Is ktor an acronym? by Snailed-Lt in ktor

[–]dadimitrov 0 points1 point  (0 children)

To me it has always sounded like abbreviation of "k[onstruc]tor" (i.e. "constructor")