• 0 Posts
  • 26 Comments
Joined 3 years ago
cake
Cake day: July 6th, 2023

help-circle



  • Just fyi, I tried one your instance. Searched a user, clicked a result, and got an error.

    Error
    
    ./app.lua:134: attempt to concatenate field 'username' (a nil value)
    
    Traceback
    
    stack traceback:
    	./app.lua:134: in function 'handler'
    	...ittygram/lua_modules/share/lua/5.1/lapis/application.lua:185: in function 'resolve'
    	...ittygram/lua_modules/share/lua/5.1/lapis/application.lua:216: in function <...ittygram/lua_modules/share/lua/5.1/lapis/application.lua:214>
    	[C]: in function 'xpcall'
    	...ittygram/lua_modules/share/lua/5.1/lapis/application.lua:214: in function 'dispatch'
    	/apps/kittygram/lua_modules/share/lua/5.1/lapis/nginx.lua:231: in function 'serve'
    	content_by_lua(nginx.conf.compiled:92):2: in main chunk
    





  • KRAW@linux.communitytoLinux@lemmy.mlDo you use vim?
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    I use helix part-time but am forced to go back to neovim a majority of the time for a few reasons:

    1. no persistent undo
    2. no ctags and cscope (some C/C++ projects don’t work well with clangd)
    3. niche plugins (e.g. I just found a neovim plugin that gives me a way to run ipynb files in-editor)

    If 1 and 2 got fixed, I’d be a full time helix user







  • I’m not really an OS guy, so forgive me if this question has an obvious answer. When a thread migrates, it keeps its stack and register, thus any data contained within this can be used in the destination process (correct me if I’m wrong). Thus sending a message could be as simple as migrating a thread and having that thread copy data from its registers or stack memory to the current process’s memory space. However, how does the thread find process-specific addresses and handles (e.g. a mutex)? For example, I’m picturing a scenario where you are implementing an MPI library and want to use thread migration to send (small) messages from one local process to another. The thread orchestrating the send simply loads the data from memory and migrates, but how will it know where to store the data to? Would there need to be a data structure stored in a fix offset in memory that contains the destination address of the receiving process?



  • I’ve been playing Sekiro lately. While it’s not generally on the top of “immersive games” lists, I find it immersive because of how cool the gameplay makes you feel. When you are just completely focused on timing each parry and reading the attacks of your enemy, it makes me feel like I’m actually in the game doing these feats. Combine that with the fact there are few cutscenes and little dialogue, and I’d say it feels pretty immersive.