News for hackers. Stuff that matters.

EllipticCurve

Give Terraria a try, It's really awesome and versatile!
Then let me say thanks! There was a programming competition in university where we made bots to play 2048 for (with a few months time), that played against each other in a live tournament (who got the most points mostly). That was the most fun competition I ever participated in!!

The bot was playing way better than me personally and regularly reached the 4096 tile. It was a lot of fun to just watch it play and really awesome to make it play better :)

Re:Automated Hydroponic System Build (2020) on Sunday July 11, 2021 @04:06PM (#27804178)
Thanks for the information. It does seem like the anti-vax movement is a lot larger within the Waldorf-community than outside. I never really thought about that.
Re:Automated Hydroponic System Build (2020) on Sunday July 11, 2021 @11:12AM (#27801447)
What do you mean by dangerous exactly? I was briefly involved with some people from the Steiner philosophy (the school) and while some people could definitely be labeled as a weird bunch with esoteric tendencies, none of them seemed dangerous at all.

Everything seemed very open and accepting to people different than themself. In a positive way, not in a "join my cult" way.

Re:Ask HN: Should I get a Masters in Computer Science? on Thursday April 22, 2021 @01:11PM (#26905182)
Yes, I think you should absolutely get one!

For once, it will always place your resume above the ones without a masters degree. And even if you look at the topics and think you won't like it or need it - you will always learn things that will likely be useful in the future! Be it to just get a different perspective on things or be able to suggest or bounce some ideas.

For me personally, the masters degree was the best thing I could have done. It helped me academically, made me a better programmer and helped several times when applying for jobs!

So yes, I highly recommend it!

This is pretty much how the interview with my current position went. It felt really good to just talk about software development, private projects and other topics instead of doing tests in one form or another.
No. We are not even allowed to bring a monitor home temporarily during this phase. Explicitly forbidden to take any kind of working equipment.

So I guess we're expected to work in the 15" laptop? No wonder productivity goes down.

Re:Ask HN: Have you lost interest in HN? on Friday May 15, 2020 @08:14AM (#23191222)
Not really. Not everything is interesting all the time, but at least every couple of days there are submissions that perfectly fit my interests.

And I like the general high quality and good/positive community towards people that build things.

Re:Ask HN: What's your quarantine side project? on Thursday May 14, 2020 @02:02AM (#23175910)
A compiler for my own little language: https://github.com/MauriceGit/compiler
I can confirm. Same thing for, started 3 hours ago. It seems to work again for the moment though (after one hour, no change from my side).

The setting is also gone for me!

It's a bit of pain to implement in some cases, but worth it :)

Let me know, if you have questions or need hints where to find some relevant details in my code.

Nothing wrong with semi-colons. Everyone has a different preference anyway.

Thanks for saying all that. It was a huge amount of work and getting appreciation makes it all worth it!

No hard constraints as of now. But I don't think I want to include meta programming or a pre-processor (don't really like it to be honest). I do want to keep it compatible with C internally, on Assembly level. One thought is, to create a file with function headers/definitions that are then dynamically linked and can just be used.

I used some C std library functions that way for debugging (printf, ...). And as I follow the standard calling conventions, the compiler should automatically generate compatible code.

With this, it would also be possible, to write OpenGL code. That would be really awesome :)

As of usage of my language - Not sure yet. Up until now, the road was more of the goal then the finished language.

I didn't really read any books on that topic. But did lots of general research about compiler stages. I also posted a few links some comments up, that helped a lot.

For for it! Start small and increase. But seeing a program in your own language output something makes it all worth it :)

That is really motivating, thank you for saying that!
:) I (now) agree. In fact, each part isn't even really that hard. It's mostly just a lot to work. And then code generation. I had some headaches with multiple return values and keeping the calling conventions intact... And then with structs as well.

That language flow and general simplicity was one of my most important goals. Thanks for noticing :)

No, I had no problems regarding that. What you mention ('+', '(') are all part of simple expressions when parsing. And I strictly parse right recursive and re-order the expressions later (for operator priority). So that was not an issue. Most of these problems I solved, by making my parser a lookahead of >1. In a few cases, there is a lookahead of 3 to determine what exactly should be parsed.

I guess anything, that can run an X86-64 Elf executable? ;) Although there is still a lot missing, for it to be taken serious. Starting with strings, files, input, ... But thats for another time or whenever I need it, I guess.

Those are some of my currently open tabs :) Lots of Google use on top of that. The parser is actually quite straight forward. The much harder part (for me) was the code generation afterwards (No experience with Assembly so far).

- General compiler design - This was one of the main ressources. https://www.tutorialspoint.com/compiler_design/compiler_desi...

- https://www.lua.org/manual/5.3/manual.html#9

- https://www.godbolt.org/

- Linux system call table: http://blog.rchapman.org/posts/Linux_System_Call_Table_for_x...

- A bit on floating point: https://cs.fit.edu/~mmahoney/cse3101/float.html

- Assembly https://www.cs.yale.edu/flint/cs421/papers/x86-asm/asm.html

- More assembly: https://www.complang.tuwien.ac.at/ubvl/amd64/amd64h.html

Thanks :) That's where I was trying to get to. I did some smaller performance comparisons against C (with -O0), where I was at about 90% speed. But there is a lot of performance to gain, if I optimize the resulting assembly. There are lots of cases where I push and pop directly afterwards because of the general expression code generation (no real knowledge of broader context). So I expect that to help a lot regarding performance. Also things like jump tables for simple switches are on the table.

Yes, I thought about going for LLVM or another representation but decided to do it once myself (no given performance optimizations or the like) with room for improvement.

Yes, I did (at least a bit). That and I read, that Go has a build-in yacc as well.

But decided, that for the first compiler, I want to actually do all steps manually myself for best possible comprehension of the general topic.

This is my first compiler, so I expect there to be several things I can improve :)

I tried to follow the Assembly calling conventions the best I could.

I am looking forward to any feedback!

Re:DIY Positive Pressure Suit on Monday March 23, 2020 @05:11AM (#22662280)
In some sports this is kind-of normal procedure to reach a weight class before a major competition. You go into a sauna or do sports in air-tight clothes and lose a few kg of water. After getting weighted and assigned a weight class you drink lots of water again
Re:Ask HN: What projects are you working on now? on Saturday March 21, 2020 @04:55PM (#22649994)
I am currently writing my own compiler for a smaller language :)

This is my first real compiler and it's lots of fun!!! It's also my first time working with x86-64 assembler (compiler target).

I'll write a Show HN post when I finished it.

Re:Ask HN: Who wants to be hired? (March 2020) on Wednesday March 04, 2020 @02:42PM (#22487228)
Location: Hamburg

Remote: No

Willing to relocate: No

Technologies: OpenGL, Computergraphics, Go, C/C++, Python, algorithms, Linux (and lots more!)

Github: https://github.com/mauricegit

Email: [email protected]

Ask HN: What skills to learn to build SaaS' as algorithm developer

I have a few ideas for possible SAAS or side projects that might actually help with additional income (at some point). But it always feels like I am missing key skills to build such a side project.My background is all backend development and OpenGL/computergraphics bundled with a bit of classic algorithm development for autonomous driving.What I am missing (I think), is a way to get ideas out...

( Read More... | no comments | 2 points | on HN )
Re:Ask HN: Who wants to be hired? (February 2020) on Monday February 03, 2020 @03:16PM (#22228490)
Location: Hamburg, Germany

Remote: Maybe, not ideal

Willing to relocate: No

Technologies: C/C++, Go, Python (+ many more), OpenGL, Computergraphics, GPGPU, algorithm development (Currently working on Radar clustering/classification)

Résumé/CV: https://github.com/MauriceGit/Organisation/blob/master/proje...

Email: [email protected]

Re:Ask HN: How to find job again after career break? on Friday December 06, 2019 @10:06AM (#21722365)
In addition to the advice given by the others, I would suggest to maybe participate in the Advent-of-code (https://adventofcode.com/). It started a few days ago but you should be able to quickly catch up.

You might do it to get back into coding, put it on a resume or just for fun (my reason to do it).

But the community around it (https://www.reddit.com/r/adventofcode/) is really great and it's a lot of fun!

It also provides as a specific daily purpose, in contrast to some random code test online.

Best of luck!

Re:2019 Python Developer Survey on Friday November 01, 2019 @10:53AM (#21419448)
Thanks for the link, participated.

Nice concise, adaptive survey.

C++ and Python3 in the automated driving industry
Re:Ask HN: Successful one-person online businesses? on Wednesday October 23, 2019 @01:39PM (#21336937)
I'm exactly in the same position. I'd love to do something on my own. But it seems, I'm just not the idea guy.

Older »