There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

RampantParanoia2365 , in STOP USING GITHUB

I’m sorry, you were saying something about mental derangement after posting this thing? Jesus.

gsfraley ,

It’s a pretty popular meme format, it’s not serious

bleistift2 , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

It only supports ints and bools, some logic and simple arithmetics and it compiles to Java but damn was it hard to get that far.

I have a bachelor’s in computer science and I don’t think I would be able to do that…

Sibbo ,

Compiler courses are typically master level.

pivot_root ,

My college must have been full of sadists. They had undergrad compiler courses and required students to take them.

Adramis ,

Same, it usually whacked about half the attempted majors into another major. In the first half of senior year. They kept wondering why their program wasn’t growing much even though similar colleges’ programs were growing like mold on a dorm shower curtain. I enjoyed the course and never used the primary skills taught in it again.

pivot_root ,

It really depends on what you do, but somehow, I actually did end up using some of the things those courses were teaching. It turns out the visitor pattern is extremely useful for writing JavaScript code transformers.

dan ,
@dan@upvote.au avatar

I had an entry-level compiler course during undergrad. We used JavaCC to generate a lexer and parser based on eBNF grammar.

BorgDrone ,

It was part of my BSc, but that was over 20 years ago.

seliaste ,
@seliaste@lemmy.blahaj.zone avatar

Im having a mandatory compiler course on my 3rd year of (french) bachelor

WanakaTree ,

I definitely read this as you were a third year French major being forced to taking a compiler course for a moment and went wtf. Then my brain slapped itself and realized you mean you’re a student in France.

seliaste , (edited )
@seliaste@lemmy.blahaj.zone avatar

Haha yeah I meant that I was studying computer science im France and not studying french. Here in France, bachelor are called licence and are only 3 years compared to 4 in north america afaik, but there are way fewer electives

bleistift2 ,

Nah, I think they’ve won the French version of The Bachelor 2 years in a row and are about to win the third.

MonkderZweite ,

in your area on the world map (wherever that is).

sik0fewl ,

If you'd like to learn how, I recommend the book (which is also available online) Crafting Interpreters.

swordsmanluke ,

Compilers are a specialized topic - and syntax design is fiddly - but it really is no harder than any other sort of program. A lot of the hard theoretical work was done back in the sixties and seventies. You don’t have to start from scratch. These days it’s “only” a matter of implementing the features you want and making sure your syntax doesn’t leave itself open to multiple interpretations. (just as arithmetic, e.g. ‘5 × 4 - 1’ requires some rules to make sure there’s only one correct interpretation, so do language syntaxes need to be unambiguous to parse. )

Don’t get me wrong - writing a language is a lot of work and it’s super cool that OP has done this! I just want to stress that language development is 100% doable with an undergrad degree. If you understand recursion and how to parse a string you already have all the theory you need to get started.

prof OP ,
@prof@infosec.pub avatar

Valuable input! I actually am an undergrad student. There are a lot of frameworks out there that support writing languages, with MPS being one of them.

If I’d start from scratch again and had a little more time, I’d frankly try writing an interpreter myself, instead of trying to conform to weird framework syntax, which I won’t be able to reuse in any other context.

Saying syntax design is fiddly is an understatement. I focused very hard on getting an abstract syntax somehow finished before working on generation in my first iteration. Then I had so much technical debt, that I couldn’t get anything to work and had to rewrite a lot. So I scrapped it all and started again, starting with top level concepts including generation and only implementing some lower level ones, once everything around it worked properly.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Make a meme with no GitHub repo? Don’t sell yourself short.

catastrophicblues ,

It’s likely transpiring and not compiling, so it’s a lot easier than it seems. Source: made a language that adds features to Python and transpiles to valid Python.

prof OP ,
@prof@infosec.pub avatar

It doesn’t compile or transpile in actuality. It generates Java based on an abstract syntax tree. The concrete syntax is not considered in Java generation by MPS.

anamethatisnt , in STOP USING GITHUB

I’m looking forward to the Forgejo Federation to be completed.
It will be nice to not have to choose between self hosting your repository and having your repository discoverable.

Is forge federation ready to be used by developers around the world? Not yet.
But the first Forgejo release with native federation implementation based on ForgeFed and F3 is expected next year.

Info from June 2023: forgefriends.org/…/2023-06-state-forge-federation…

Anafabula ,
@Anafabula@discuss.tchncs.de avatar

Current state of Federation in Forgejo: codeberg.org/forgejo/forgejo/issues/59

masterspace , in Every language has its niche

Enterprise will keep the withered husk of Java EE crawling for eternity

not_again ,

Medicine too.

An instrument in my lab is running jdk 1_8_131…and this is a recent/newish piece of equipment.

Aatube , in STOP USING GITHUB
@Aatube@kbin.social avatar

Why is it a fiddle

ursakhiin ,

Fiddle was found in a thrift store. Couldn’t afford the bongos.

Dehydrated , in STOP USING GITHUB

Software Freedom Conservancy has a pretty nice page called Give Up GitHub!, definitely check that out

s12 , in Every language has its niche

Rails: “No. Don’t worry Ruby.”
Ruby: “Huh?”
Rails: *Hugs Ruby
Rails: “We’re becoming irrelevant.”

Together forever!

XTL , in STOP USING GITHUB
SidewaysHighways ,

Will things like setting up a “stack” in portainer on docker be able to use the github alternatives like codeberg? or will those kinds of things need to be rebuilt?

gnutrino ,

They should™ work with any git repo hosted by any method right down to running git-http-backend as a CGI script I would have thought.

SidewaysHighways ,

Noice, noice!

Thanks for your response, cousin!

peak_dunning_krueger ,

Anyone got a commmand line tool change all my stuff? Because if I have to do change all the remotes all the time, for dozens of projects I’m going to lose my mind.

Also the migration on gitlab/codeberg looked like an amount of effort that doesn’t round down to zero.

Aatube ,
@Aatube@kbin.social avatar

(note, the GitLab Enterprise Edition, which is provided to the public on gitlab.com, is (like GitHub) trade-secret, proprietary, vendor-lock-in software)

Isn't EE source-available but proprietary? Plus if you just use the free tier you're not using any enterprise features

Omega_Haxors , in Hey, I'm new to GitHub!

We’ve all felt this at least once be honest with yourself.

Valmond ,

Yeah I was like yes why isn’t there an obvious download binaries tab easily found (there is sometimes right?)

Gold goes to Qt though, hell to just download and decompress it…

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

there is, it’s called “releases” and it’s like 2 clicks to download an executable, it’s not a github issue at all, and github isn’t meant to be where you get your executables anyways

Surreal ,

I still do sometimes. Wish they release a build so I don’t have to download all the dependencies and learn how to use a new program to build the damn thing

Shareni ,

If you’re talking about the repo in the screenshot, it’s a python script, so a binary release is going to be fun.

If you’re talking about GitHub in general, you can download binaries from releases, if they’re provided.

sunbeam60 ,

It is a lot easier now that even Windows has a decent package manager tbf.

MonsiuerPatEBrown , in Every language has its niche

the perl monks have hidden away the monastic order safely until they are needed to fight the ai demons

anton ,
Aatube , in Every language has its niche
@Aatube@kbin.social avatar

Homebrew

tsonfeir ,
@tsonfeir@lemm.ee avatar

… is a package manager…

paraphrand ,

… just run this bash script straight from the internet, it’ll be fine …

emptiestplace ,

ok that sounds like what i need

emptiestplace ,

hey can u tell me how

Aatube ,
@Aatube@kbin.social avatar

People make formulas (packages) and extensions in Ruby for it.

olafurp , in If Architects had to work like Programmers

This is very relatable, whenever someone asks for anything of any size then they’ll never know what they want until you show it to them.

I’ve started to do a bit of overengineering every now and then when I have a hunch they might want to charge something about it later.

I created a GUI for changing every single string of text on a webapp for admins, showed it to them 10x and they complimented me on how easy it is to use and change any small string in it.

Project then gets halted for Corp approval reasons and they come back with a PDF of changes they want where half of it is text changes.

I recommend insulating yourself from stuff that is subject to change like payment providers or other third party integrations. In ecommerce everyone wants something like “shipping but different if the client’s name ends with ‘SHIP1’ but use default if his number is the default number” and since they asked for the wrong thing you’ll have to do a fast revert.

Never mind, this is getting into rant territory, lol.

S_204 , in If Architects had to work like Programmers

As a builder, I have had this scenario play out dozens of times. Clients paying millions for design and being shocked at what they get. My favorite was the charity that the architect spec’d custom handmade tile from Italy for… in a service bathroom lol. 40k to tile one wall of a bathroom for a charity that struggles to keep its doors open.

suction , (edited )

But programming is worse. In your analogy, once you finished the wall they’d come to you and ask you if you could „make the finished wall cheaper somehow?“ (because they are so incompetent that they think programming is magic and can magically change things in the real world).

And when you logically answer „no can do“ they won’t wake up to the fact they’re asking stupid questions, but rather think of you as not competent enough…

suction ,

Yeah go ahead and downvote me more, you working class chud 😂

Honytawk ,

Don’t worry, you get downvoted by programmers as well for that awful take.

suction ,

„take“

Shareni ,

Dude, he’s using the working class as an insult on Lemmy

Dessalines enters the chat

tiredofsametab , in Every language has its niche

Lots of stuff in Japan still runs Ruby/RoR, though I think it is slowly being replaced

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

Ruby runs on faxes?

uis ,

No, but it runs on telegraphs

LemmyIsFantastic , in STOP USING GITHUB

I get this is a meme, but the most successful projects are the ones that quickly get you running and are supportive to new users. I’ll get off my soapbox.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines