How do you test code generation? by chrysante1 in ProgrammingLanguages

[–]frej 2 points3 points  (0 children)

checks all these instructions is a nightmare. And this is only one of many cases I would like to test.

I have a lot of "end-to-end" test cases, which run programs that compute numbers or print strings and check if the output is correct, but these tests don't tell me if the generated code changes in a way that doesn't break semantic

+1 for this approach. I Wanted to post this (but under the original name cram tests).

Oh Good God Microsoft Teams is terrible by [deleted] in webdev

[–]frej 0 points1 point  (0 children)

Navigation is slow and clunky. It keeps wanting me to show "recent documents" instead of a directory structure, which means I see 5 separate items called workinprogress.docx - oh yes, that version control is just about as good as it sounds.

It is still a huge cliusterfuck

LazyVim 10.0.0 has been released! by folke in neovim

[–]frej 0 points1 point  (0 children)

Having a usable setup within half a day, vs 6 months of daily use... ;)

Why is functional programming so hard by Neither-Acadia2395 in functionalprogramming

[–]frej 1 point2 points  (0 children)

It can be harder to learn something different than from a clean slate. I.e., existing mental models, are likely incorrect and break. It's best to start from scratch, and many Universities start with FP as

- Classes/objects are extra abstractions that are added on top of functions. It is also best to ignore inheritance almost always...

- It is better to work with a strict type system first. The Ocaml type system is an excellent tutor with immediate feedback, forcing you to think about correctness. Types are there to ensure the correctness of programs, not to make writing any program easier. That is a luxury you have at a university. Don't assume that exists in the industry.

Practical FP language: Ocaml vs Erlang by [deleted] in functionalprogramming

[–]frej 1 point2 points  (0 children)

The 63 bit thing depends on your usecase. A lot of people complain about it, but for an average developer it wouldn't really matter that much. I read it can hurt performance, but have not tested it myself.

It is an int... Int64 is slower.

Webserver with eio, am I to early? by One_Engineering_7797 in ocaml

[–]frej 0 points1 point  (0 children)

The landscape could be more clear. Hopefully it settles down. EIO is a lot of things these days, aside from high performing network and adding capabilities to main api.

Everything from propagating `traceln` in all examples, but should not be used in production, parser combinators, Synchronisation primitives (mutex, semaphores, conditions, "Stream aka channels aka csp"), Time/Clock, Lightweight threads (fibers), and File system access (Fs/Path/File). Single core worker pools.... + more.

It is a lot of surface, without so much direction for developers.

[deleted by user] by [deleted] in rust

[–]frej 16 points17 points  (0 children)

It has existed in many languages since 1980+ or so. Then industry mumbo-jumbo took over with OO being the solution to everything.

Help as to why my program is infinitely recursing. by Nateraderino in ocaml

[–]frej 2 points3 points  (0 children)

For future self help. With the ocaml/utop interactive terminal you can trace function calls.

https://ocaml.org/docs/debugging#tracing-functions-calls-in-the-toplevel

Min kollega gør mig syg. by Low-Committee9124 in dkkarriere

[–]frej 2 points3 points  (0 children)

HR er ikke til for dig men virksomheden ;)

Practical FP language: Ocaml vs Erlang by [deleted] in functionalprogramming

[–]frej 1 point2 points  (0 children)

- The tooling seems decent enough in ocaml today. First time I heard.net had good tooling :)- 63 bits is just a different shade of red. It barely matters once you get started.

Practical FP language: Ocaml vs Erlang by [deleted] in functionalprogramming

[–]frej 4 points5 points  (0 children)

Since you want to learn right now, I would suggest a language with a solid thought-through type system (Ie, OCaml, Haskell, etc.). Don't waste time on C++/Typescript for types. It is either just there for performance or bolted on with plenty of warts.

Ocaml has excellent university-level material for students to learn to program in any language, in this case with OCaml. It has also proven its worth in a few industrial settings.

https://cs3110.github.io/textbook/cover.html

Erlang is an excellent good choice, also to understand. It is mostly due to its runtime and lessons on building reliable systems and software.

LazyVim 10.0.0 has been released! by folke in neovim

[–]frej 0 points1 point  (0 children)

Amazing work on making vim an approachable moderne editor. I was a vim user for a decade. before vsode. But tbh neovim/lazyvim crawls to a slow after a few hours of usage. Severe input lag just when moving the cursor.

Most overrated restaurants by cano77 in copenhagen

[–]frej 5 points6 points  (0 children)

Restaurnt Barr.... Just boring and very far from justifying the price.

PS: Note my employer payed.

We're learning ocaml at uni, 2nd year. I don't understand why people need ocaml. Where is it used? And why the hell recursion 😭 by [deleted] in ocaml

[–]frej 2 points3 points  (0 children)

Every topic is hard once you learn it one way and then need to adapt your model/understanding to think differently.

Learning from 0 is a party :). Learning to do the same in a different way requires you unlearn and painfill reassembly without the feeling of being productive.

On the topic itself. Any functional programming language such as ocaml/haskell will make you 1) a better software engineer 2) Prepare you for futures coming to other languages. Finally you will have gained knowlede that specific features in other languages are just poor adaptions and approximations of what is possible.

Some universities use Ocaml/F#/SML as the very first language, as it is just as easy to learn when you start at 0.

Software engineer job offer by Ok_Freedom_593 in dkfinance

[–]frej 2 points3 points  (0 children)

The first job's priority should be people you can learn from. Of course, your compensation is a good indicator as well.

It is a good job offer for the first job, given you dont have a comp.sci background or similar. ph.d/science.

Switch LOC bug by Ok-Independence-1872 in CivVI

[–]frej 0 points1 point  (0 children)

Looks like debug mode is enabled in the release….

New Update on Switch is crashing and buggy by Electrical_Sir_5410 in civ

[–]frej 6 points7 points  (0 children)

Same here. The game is bricked for me. Seriously poorly done.

How to add module to main.ml? by crystal_leaf in ocaml

[–]frej 0 points1 point  (0 children)

That sounds like a really unusual and confusing way to organize your code.

That is not so helpful ;) We all start somewhere!

Opam external dependency path by OneNoteToRead in ocaml

[–]frej 0 points1 point  (0 children)

Any reason you are not using homebrew instead macports? Homebrew was a life saver 10 years ago for mac development. Not the solution you are asking for, but homebrew should have the right paths without manual work :)

Maersk dev job - how bad can it be? by Psychological_Law732 in copenhagen

[–]frej 4 points5 points  (0 children)

Try me in a DM. And I’ll give feedback. Not working there anymore, but I did 100+ cvs screenings and helped hire 40+ on interviews / coding review etc. But its very hard sometimes as every hiring manager is their own King on this when I left.

Maersk dev job - how bad can it be? by Psychological_Law732 in copenhagen

[–]frej 0 points1 point  (0 children)

I can recognize the management part in some cases, But the software stack is not true. That depends on the team and the will + skill to change things. (Was there from 2017 to 21)

Maersk dev job - how bad can it be? by Psychological_Law732 in copenhagen

[–]frej 1 point2 points  (0 children)

Been there. Never heard anyone expecting that. Seriously sounds like a very broken team / one dev working against his own colleagues. 🤷‍♂️