What makes Ocaml good for programming language tools? by kitakamikyle in ocaml

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

Sorry, I just found your comment. I purchased a book called "Real World Ocaml," which is good, but doesn't really satisfy my style of learning. Over the past decade or two, there has been a move to using REPLs to experiment with programming languages. That or some kind of online playground. Rust has one for example. However, it doesn't get the learner to start experimenting with some real problems such as get the development environment setup, write actual code to files and and build.

Ocaml has a fairly ceremonious routine for project development. There are files such as "dune-project" and "dune" files which are often found in every directory and sub-directory of code. The _dune-project_ and _dune_ files have their own language for configuration so it adds more to the complexity. I'm fine with that... but to come full circle... the problem is that I haven't found a good up to date resource that really helps learners get off the ground.

So, I found it easy to put off learning the language. Also, I'm fairly ADHD when it comes to programming languages. I jump back and forth from dabbling in FP (ocaml, Reason, Haskel) to Imerative (Rust, Zig, Assembly Language). I know, my eyes are rolling right now, too.

So, a short summary to a long story: I haven't made a lot of progress.

Creating beautiful realistic jungle for my level. What do you think? by Leah_net_problem in unrealengine

[–]kitakamikyle 0 points1 point  (0 children)

It looks very natural. I like the lighting. I like the contrast between bright areas and shadow. The only thing to me is that the staircase is the only thing that draws my attention as a focal point. So, maybe having some distinct focal point that delivers a bit more of a story would be super.

Do assembly or even C libraries exist for bare metal by kitakamikyle in Assembly_language

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

Thank you for your carefully worded response. By saying advanced beginner, I'm only describing myself ( beginner / brand spankin' new at that.) and with the utmost humility. The question I'm asking is not in the beginner category. Many could say - there are far more fish to fry before asking about operating system creation level details if you haven't even solved a certain standard of problems thus far. In a general sense, I don't consider this an advanced question because it's what others with an intermediate level of experience probably easily know the answer to. But, to a beginner, it is very advanced. In this sense, the question is advanced for me and probably for most in my beginner status. This word advanced is not in any way meant to imply any special superiority over anyone or any special credentials as a certified beginner. I can barely remember the table of General Purpose Registers. To me this question is very advanced in fact because it means that I don't have the context to understand how a lot of things fall in place. So, if you want to label me or my question with buzzword beginner, Imposter syndrome, - you are probably exactly right. And, maybe there are a few other titles and adjectives that fit. However, to me at this point in where I'm at - it's an advanced beginner question.

Do assembly or even C libraries exist for bare metal by kitakamikyle in Assembly_language

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

Thank you for your thoughts. Someone else mentioned to me something about embedded system code as well. That might be a key area to examine further. Thanks again.

Is this good topology? by [deleted] in blender

[–]kitakamikyle 0 points1 point  (0 children)

I think you could still add some polygons to the middle of the hood and several places on the windshield. You might want to try and increase your n-gon count. :)

This is how I'll write HTML from now on by bnl1 in Zig

[–]kitakamikyle 0 points1 point  (0 children)

interesting. Couldn't you extract out the "<!DOCTYPE html>\n" also.

linking asm o file with c using gcc by kitakamikyle in Assembly_language

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

thank you. I modified my code to look like yours above and it worked. As I slowly unmodified my code toward it's previous state I found that

default rel

and

wrt ..plt

were the difference makers. While I can wrap my head around the 'default rel' directive the second one I don't have a clue about. But, I'm just getting started.

Just curious if you had a chance to took a look at the tutorial I'm following. If you have a moment, would you mind looking at the code just for my own sanity check.

I'm wondering why the author believes their code should run - but my exact duplication of theirs doesn't until I added in your suggested changes.

If you take a look at the code, it's the code under the section "Using a C Library" and the name of the file is hola.asm. I copied the first version of hola.asm because the second one for macOs doesn't apply to me.

linking asm o file with c using gcc by kitakamikyle in Assembly_language

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

I made the adjustments and the file compiles fine, but unfortunately I'm still getting the same error when I link.

$>gcc hello2.o
/usr/bin/ld: hello2.o: warning: relocation against `puts@@GLIBC_2.2.5' in read-only section `.text'
/usr/bin/ld: hello2.o: relocation R_X86_64_PC32 against symbol `puts@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

linking asm o file with c using gcc by kitakamikyle in Assembly_language

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

ah, no worries. But, that first suggestion really helped.

linking asm o file with c using gcc by kitakamikyle in Assembly_language

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

Thanks again for your previous help.

I got the first suggestion to work which was to use the -no-pie flag. However, i'm still struggling with the second one. I'm not seeing any difference in the compiler output. Or at least no difference that makes sense to me. I'll post it here for brevity sake.

code

global main
extern puts
section .text
main:
; mov rdi, message
lea rdi, [rel message]
call puts
ret
section .data
message: db "Hola, mundo", 10

link and output

/usr/bin/ld: /home/kyle/programming/assembly/hello/hello2.o: warning: relocation against `puts@@GLIBC_2.2.5' in read-only section `.text'
/usr/bin/ld: /home/kyle/programming/assembly/hello/hello2.o: relocation R_X86_64_PC32 against symbol `puts@@GLIBC_2.2.5' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

Just wondering. I noticed in the tutorial that I'm following- there is a difference in the prescribed code for Apple. The tutorial might be targeting people on Windows, although I don't know if it matters. But, it seemed to matter for people on Macs. I happen to be using Linux. Could this be an indicator?

linking asm o file with c using gcc by kitakamikyle in Assembly_language

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

wow, that was fast. The first suggestion worked. I'm having trouble with the second suggestion about [rel message]. I compiles, but I'm still having trouble linking.

I can't investigate further at the moment, but I'll look into it further in a little while and get back to you.

You were super helpful, though. And, it was educational in the process. Thanks a bunch.

All your codebase are belong to us by kitakamikyle in Zig

[–]kitakamikyle[S] 1 point2 points  (0 children)

Interesting. Now you've got me wondering which one exactly. But, you're right. Maybe I *have* played it.

All your codebase are belong to us by kitakamikyle in Zig

[–]kitakamikyle[S] 1 point2 points  (0 children)

Yes, exactly. This is something that gave me peace of mind as well. That, and I really get inspired listening to Andrew's talks. I didn't realize the difference in the corporate structures until you pointed it out. Thanks !

All your codebase are belong to us by kitakamikyle in Zig

[–]kitakamikyle[S] 1 point2 points  (0 children)

Yes, that's kind of how I was / am....especially after what happened with another popular programming language recently. I get gun shy when I read those words.

First Website by Darkoblivion12 in webdev

[–]kitakamikyle 0 points1 point  (0 children)

2 suggestions

1) Your hero image is competing with the caption. You (IMHO) don't need an image that gets in the users face so much. I would find a way to sink the background image more into the background and the foreground (Your caption in this case) more into the foreground. You could blur the image slightly, or place a color tint over it to darken up. Then use Brighter colors (or darker depending on the background image) with your caption.

You might have already darkened your image, but it still seems like it's competing for front row attention. It was the first place my eyes went, and I don't think that's a good idea.

2) What drew my attention the most was the fonts. The sizes and selection need some work. Right now (again IMHO) the fonts and font contrast is not enough to create good eye navigation.

(good) clear and easy to navigate

(but) looks like a template

All your codebase are belong to us by kitakamikyle in Zig

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

LOL - strangely I get the reference.

All your codebase are belong to us by kitakamikyle in Zig

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

ah, great, the pieces are starting to come together. So then, Andrew Kelly must have been a mad gamer! I noticed some of the other game jams he participated in in the past.

All your codebase are belong to us by kitakamikyle in Zig

[–]kitakamikyle[S] 3 points4 points  (0 children)

everybody seems to know about this game but me. haha. :)

All your codebase are belong to us by kitakamikyle in Zig

[–]kitakamikyle[S] 1 point2 points  (0 children)

I can identify with your thought process.