26
27
Sun Clock (sunclock.net)

(I did not make this project.)

I love this website. It helps me visualize time with regards to the sun very well. If I could get my FitBit to display this as a clock face I definitely would. It's such a beautifully simple site.

I'm sharing it in honor of the solstice today. It's (roughly) solar noon on the east coast. I think I found this site on Reddit prior to the Lemmy Exodus, so I'd like to share it here for everyone to enjoy. Happy solstice. Happy summer (or winter for our friends in the southern hemisphere).

Also, based on the community info panel I believe this is on topic here, but if there is a better community for "cool site I found" let me know. ❤️☀️

27
269

Organizations that do not consider themselves Oracle customers, but who use Java, can expect a call from the Big Red in the next three to nine months, according to a software licensing specialist.

House of Brick, which has spent years advising clients on how to manage their commercial arrangements with Oracle, said it had noticed an uptick in organizations seeking advice after being contacted by the tech giant about their Java use.

"Even if you are not an Oracle customer, they are tracking product downloads and matching the IP addresses to your organization. Oracle has deployed a whole team of people in India that are contacting organizations worldwide with claims of non-compliant Java SE usage," the company said in a blog, referring to the runtime environment.

While most Oracle and Java users have become aware of the changes, those who have never dealt with Oracle for their applications, database or middleware software might be new to the arrangement.

"They don't have a relationship with Oracle. But Oracle has tracked Java SE downloads to their company. And then Oracle approached them saying 'We see that you've been downloading our Java SE product, it requires a licence.' This might be an email coming from a person that has an audit or similar title in their signature," said Nathan Biggs, House of Brick CEO.

For example, Oracle is likely to ask for the installation date and ask whether the customer also deploys on VMware.

But Oracle will be leading towards an "offer" to overlook earlier unlicensed software if they agree to sign up to the new subscription model, Biggs said.

Organizations should be careful before they take up the offer, he said. Users with legacy Oracle agreements face more than 100 percent — even 1,000 percent — cost increases when moving to the new terms. Bills going from tens of thousands of dollars to more than a million have been confirmed by multiple licensing specialists.

He said Oracle is entitled to ask for backdated payments for people already using Java since the paid-for deal was announced. But whether they should be forced to adopted the 2023 per employee arrangement is a moot point.

To start with, Oracle will limit the back-payment to three years. But it will also try to charge users under the Universal pricing arrangement introduced in January 2023.

"This is absurd because the universal pricing has only been around for a year. We always then push back on Oracle," he said.

28
23
submitted 1 week ago* (last edited 1 week ago) by onlinepersona@programming.dev to c/programming@programming.dev

I'd basically like to run some containers within a VPN and some outside of it. The containers running within the VPN should not be able to send or receive any traffic from outside the VPN (except localhost maybe).

The container could be docker, podman, or even a qemu VM or some other solution if need be.

Is that possible? Dunno if this is the right place to ask.

---Resolution-------

Use https://github.com/qdm12/gluetun folks.

Anti Commercial-AI license

29
97
30
24

GitHub Copilot Workspace didn't work on a super simple task regardless of how easy I made the task. I wouldn't use something like this for free, much less pay for it. It sort of failed in every way it could at every step.

31
31
32
39

Martin Kleppmann sets out a vision: "In local-first software, the availability of another computer should never prevent you from working."

He describes the evolution of how to classify local-first software, how it differs from offline-first, and proposes a bold future where data sync servers are a commodity working in tandem with peer-to-peer sync, freeing both developers and users from lock-in concerns.

33
41

So how do you guys test visual programming languages? These languages include Labview, Simulink, Snaplogic, Slang, etc. I ask because I'm working on improving the testing suite we use at my job for Snaplogic. The way we currently lest is we have a suite of pipelines that have certain snaps and we just run those pipelines and look for errors in a testing environment every release.

What I'm really trying to figure out is how to run Functional Tests (unit, integration, system) and Non-Functional Tests (security, performance). In a language such as Python this can be straight forward but in a visual language or a service offered by another company then it is a bit more difficult.

I am thinking of creating a custom test suite using the modules used in our pipelines and using Python to generate JSON and SQL data. Does anyone do something similar?

34
16
35
77
36
33

I'm sure most of us have had to deal with issues reported by end users that we ourselves aren't able to reproduce

This video is an extended case study going through my thought process as I tried to track down and fix a mysterious performance regression which impacted a small subset of end users

I look at the impact of acquiring mutex locks across different threads, identifying hot paths by attaching to running processes, using state snapshot comparisons to avoid triggering hot paths unnecessarily, the memory implications of bounded vs unbounded channels, and much more

37
57

I hope some people here enjoy reading these as much as I have

If you know of anything similar, I would love to hear them

38
21

A list of major Java and JVM features since JDK 17 to 22,

New language features JEP-409: Sealed Classes (17) JEP-440: Record patterns (21) JEP-441: Pattern matching for switch (21) JEP 456: Unnamed Variables & Patterns (22)

API changes JEP-306: Restore Always-Strict Floating-Point Semantics(17) JEP-382: New macOS Rendering Pipeline(17) JEP-400: UTF-8 by Default (18) JDK-8301226 – Clamp method for java.lang.(Strict)Math (21) JEP-439: Generational ZGC JEP-444: Virtual threads (21) JEP-454: Foreign Function & Memory(FFM) API (22)

Security JEP-452: Key Encapsulation Mechanism API (21) JDK-8275252: keystore file Features JEP-408: Simple web server (18) JEP-423: Region pinning for G1 (22) JEP-458: multi-file source-code programs (22) JEP-423: Region pinning for G1 (22) JEP-458: multi-file source-code programs (22)

Documentation JEP-413: Javadoc code snippets (18)

Deprecations

Lookahead Scoped values + Structured concurrency Module import declarations

39
15
submitted 2 weeks ago* (last edited 2 weeks ago) by QuazarOmega@lemy.lol to c/programming@programming.dev

I was looking to implement a year column and while researching I stumbled on the YEAR data type which sounded just right by its name, I assumed that it would just be something like an integer that can maybe hold only 4 digits, maybe more if negative?
But then I noticed while actually trying it out that some years I was inputting randomly by hand never went through giving an out of range error, so I went to look at the full details and, sure enough, it's limited to years between 1901 and 2155, just 2155!
In terms of life of an application 2155 is just around the corner, well not that any software has ever lived that long, but you get what I mean in the sense that we want our programs to be as little affected by time within what's reasonable given space constraints.
So what will they do when they get close enough to that year, because you don't even have to be in that year to need it accessible, there could be references that point to the future, maybe for planning of some thing or user selected dates and whatnot; will they change the underlying definition of it as time passes so it's always shifted forward? If that's the approach they'll take, will they just tell everyone who's using this type that their older dates will just not be supported anymore and they need to migrate to a different type? YEAR-OLD? Then YEAR-OLDER? Then YEAR-OLDER-BUT-LIKE-ACTUALLY? Or, that if they plan to stay in business, they should move to SMALLINT?
Or will they take the opposite approach and put out a new YEAR datatype every time the 256 range is expired like YEAR-NEW, YEAR-NEW-1, YEAR-FINAL, YEAR-JK-GUYS-THE-WORLD-HASNT-COLLAPSED, etc.?

So I wonder, what's the point of this data type? It's just so incredibly restricted that I don't see even a hypothetical use.
There exist other questions like this (example) but I think they all don't address this point: has anyone from MariaDB or MySQL or an SQL committee (I don't know if that's a thing) wrote up some document that describes the plan for how this datatype will evolve as time passes? An RFC or anything like that?

40
39

Hii,

I am new to database thing so I am trying to wrap my head around it.

  1. many2one: so in this relationship you will have more than one record in one table which matches to only one record in another table. something like A <-- B. where (<--) is foreign key relationship. so B will have a column which will be mapped to more than one record of A.

  2. one2many: same as many2one but instead now the foreign key constrain will look something like A --> B.

  3. many2many: this one is interesting because this relationship doesn't make use of foreign key directly. to have this relationship between A and B you have to make a third database something like AB_rel. AB_rel will hold values of primary key of A and also primary key of B. so that way we can map those two using AB_rel table.

tell me if I got something wrong :) give me some suggestion <3

41
14
submitted 2 weeks ago* (last edited 1 week ago) by Super_gamer46861@programming.dev to c/programming@programming.dev
42
46

I started this challenge and it's pretty fun.

  • First round: Program a runner to jump over hurdles
  • Second round: Program runners to jump over hurdles. Problem here is that 4 games are running at the same time, and you can only give 1 input every game-loop that'll go to all 4 games
  • Third round: 4 different games are being played at the same time, and you have to give an input that'll be for all 4 of them every game-loop

They have this graphical interface that'll actually show what your character is doing, which makes it more interesting than just a "code-only" leetcode or adventofcode challenge

43
-4

cross-posted from: https://programming.dev/post/15553031

second devlog of a neural network playing Touhou, though now playing the second stage of Imperishable Night with 8 players (lives). the NN can "see" the whole iwndow rather than just the neighbouring entities.

comment from video:

the main issue with inputting game data relatively was how tricky it was to get the NN to recognise the bounds of the window which lead to it regularly trying to move out of the bounds of the game. an absolute view of the game has mostly fixed this issue.

the NN does generally perform better now; it is able to move its way through bullet patterns (01:38) and at one point in testing was able to stream - moving slowly while many honing bullets move in your direction.

44
44
POSIX.1-2024 has been published (ieeexplore.ieee.org)

A note from earlier today says the HTML edition will be available soon. I assume that means it will show up here: https://pubs.opengroup.org/onlinepubs/9699919799/

45
16
final year project (lemmy.sdf.org)

Any tips or ideas on choosing a final year project? I don't really have any ideas in mind other than implementing an LLM, not sure how applicable or good this is though, my major is computer engineering and i'm only interested in software dev

46
25

This post highlights my experience working with software architecture in startup environments. I think the approach is different enough from the traditional notion of software architecture that it may warrant its own term: post-architecture.

47
22

I understand Rust being type safe, but Im seeing syntax that Ive never seen in my life in Go which looks too messy

var test int < bruh what?

:=

func(u User) hi () { ... } Where is the return type and why calling this fct doesnt require passing the u parameter but rather u.hi().

map := map[string] int {} < wtf

48
27

cross-posted from: https://programming.dev/post/15448730

In order to learn programming holograms I'd like to gather some sources in this post.

The linked paper describes already optimised way of rendering holograms. I'd like to find a naive implementation of a hologram i.e. in ShaderToy using interferometric processing of stored inteference patterns like it works in a physical hologram(I guess). I also want this to be a resource to learn how laser holograms work in real life.

To create an introduction project to holographic rendering these steps will be required.

  1. Store a sphere or a cube interference patterns in a texture. This should be a model of our physically correct hologram. Note: If this step requires saving thousands of textures we should limit the available viewing angles(if that's what helps)
  2. Load the rendered patterns as a texture or an array of textures into a WebGL program
  3. Create a shader that will do the interferometric magic to render the sphere/cube from the hologram model

The performance of the solution is irrelevant. Even if takes and hour to generate the data and a minute to render one frame in low resolution that's fine.

Note: The goal is not about creating anything that visually looks like a cool hologram or rendering 3D objects with a volume like with SDFs or volume rendering. It's all about creating a basic physical simulation of viewing a real hologram.

49
38

So I'm a hobbyist game developer for years whose day job is writing reports/troubleshooting database issues with MSSQL.

I'm a bit over half way through a CS bachelors degree!

I'm aware of three ways to get experience to help me find a job once I graduate, and wondering if one is superior to the others, or if there is another way!

  1. Personal projects. There is a very large programming project I've been working on off and on for 2ish years and I feel like after my recent programming classes I can probably start it off right and trash all my previous prototypes.

  2. Work on open source projects. This one is a bit scarier at this point, as I'd have to find one I like, one that is active, one that my skills fit with, one I can get accepted with, etc.

  3. Find entry level freelance things. I'm aware I could maybe do cheap tasks on Fiverr, or sign up for things like Data annotation, to earn a bit of money and have "something" directly related to programming on my resume.

3.5 Could do coding challenges, but most of the ones I've seen don't seem super relevant to making large programs, but solving convoluted puzzles. But would love to hear if there is a site that has more real world challenges.

My personal experience for previous projects (and favorite programming class so far) has been python (shocking I know). Hoping I'll fall in love with C# programming once I get into the advanced classes with it, as I know that pairs much nicer with my MSSQL experience. Oh my game dev has also been in Game Maker, which uses GML, so not superrr helpful experience.

So any thoughts/opinions?

50
8

Since its debut last year, SwiftData has become a focal framework that has garnered significant attention from developers. With the arrival of WWDC 2024, there is widespread anticipation for breakthroughs in functionality, performance, and stability in SwiftData. This article will review the performance of the latest version of SwiftData and share the complex emotions I experienced during my first encounter with the new version: shock, joy, disheartened, and perplexed.

view more: ‹ prev next ›

Programming

16195 readers
455 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS