Hacker News new | past | comments | ask | show | jobs | submit | nvlled's comments login

Thanks, ghostty looked really off in KDE by default.


Not disagreeing with your overall point, but JS can also do it more succintly:

  [1,2,3,4].reduce((a,b) => Math.max(a,b),100)
  // or
  Math.max(...[1,2,3,4])


I'm currently trying to create a lua-to-js transpiler using treesitter. Not sure how hard this is, but I suppose it's just a matter of traversing trees. I might need to use this transpiler later on my static site generator using a lua DSL.

I'm also planning on making changes to improve my text reader. The purpose of the project is to help me alleviate my discomfort when reading long blocks of text over an extended period of time.


This goes beyond media entertainment. All of our senses are being exploited and overstimulated for commercial gains. Food, perfumes, music, furniture. People crave for saltiest or sweetest food. They fill their noses with strong artificial fragrances, their heads with loud, distracting, catchy music, all the while butt-slouched on the comfiest couches or beds. If this continues on, there will be a point where humanity will be so desensitized and can no longer feel anything natural with their own senses.


You can enable low-processor mode to reduce CPU & GPU usage. See related FAQ https://docs.godotengine.org/en/stable/about/faq.html#is-it-...


This is with low processor mode enabled. Hell, it's still true when I multiply Low Processor Mode Sleep by 100. This is a blank default project that has a single empty node--and the window is minimized.


Yeah, even disabling a bunch of things and pausing the scene tree, Godot still uses 5% of my CPU (i3-6100T):

  func _ready() -> void:
    set_physics_process(false)
    PhysicsServer2D.set_active(false)
    PhysicsServer3D.set_active(false)
    Engine.max_fps = 1
    RenderingServer.render_loop_enabled = false
    get_tree().paused = true
I wonder what's using that CPU?


Lucky you, godot does have those features, although a bit limited to an extent.

For native file dialogs, see the methods file_dialog* in https://docs.godotengine.org/en/stable/classes/class_display...

Not quite sure what you meant by drag & drop, but godot has API for getting the files dropped onto the window: https://docs.godotengine.org/en/stable/classes/class_window....

Finally, you can create (or customize?) native menus: https://docs.godotengine.org/en/stable/classes/class_nativem...

Also, slightly unrelated, I have WIP useless desktop widget created with godot https://github.com/nvlled/fps-desktop that shoots a gun on mouseclick. Tested only on linux.


I wasn't aware of the dropped API - good to know. The gun thing is excellent, thanks for sharing!


https://github.com/256lights/zb/blob/102795d6cb383a919dd378d...

TIL I can also use semicolons on lua tables, not just commas:

  return derivation {
    name = "hello.txt";
    ["in"] = path "hello.txt";
    builder = "/bin/sh";
    system = "x86_64-linux";
    args = {"-c", "while read line; do echo \"$line\"; done < $in > $out"};
  }
I like using lua as a DSL, now I like it even more! I've using lua as a html templating language that looks like this:

  DIV {
   id="id";
   class="class;
   H1 "heading";
   P [[
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, 
    sed do eiusmod tempor ]] / EM incididunt / [[ ut labore et 
    dolore magna aliqua.
   ]];
   PRE ^ CODE [[ this is <code> tag inside <pre> ]];
  }


Location: Southeast Asia

Remote: Yes

Willing to relocate: yeah, why not

Technologies: typescript, golang, C#, php, bash/linux, PHP, python

Email: $"{MY_HN_USERNAME}@gmail.com"

A bit late to post here, my laptop died a few days ago.

I'm looking for remote work that includes anything programming-related: refactoring, fixing bugs, code review, Q&A, adding tests, writing documentation, or any low-level grunt work that no one else wants to do.

My list of small opensource contributions:

https://github.com/godotengine/godot/pull/94473

https://github.com/TolikPylypchuk/SharpHook/issues/112

https://github.com/neutralinojs/neutralinojs/issues/1115

They aren't much, but I think they are at least proof that I can do work, much better indicator than my anemic resume. Though my pull requests looks trivial, I spent several days tracking down the root cause of the bug.


https://nvlled.github.io/catchsup

This is a habit-building app that I've been personally using for months now. Although it's still buggy and slow as heck (prototyped with electronjs), it has been very helpful and effective for me so far. Aside from slowly reading and finishing a book[1], I alternate in doing these on my free time:

  - learn zig (currently with ziglings)
  - learn 3D gamedev with godot 
  - learn blender
  - read Crafting Interpreters
  - read Computer Graphics from Scratch
  - meditate consistently every early evening
Although the pacing is gradual and slower compared to traditional means, it's more relaxed and it doesn't intrude in my daily main activities. I also learn better due to natural spacing effect, which also gives me time to reflect on what I did.

Currently thinking of rewriting it in the future, especially the scheduler, but it's good enough for now, I'm instead searching for a remote work to support development.

[1] Philosophy of science: a very short introduction


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: