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

help-circle







  • KRAW@linux.communitytoSelfhosted@lemmy.worldKittygram v1.1 has released
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    3 months ago

    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
    




  • 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?


  • They’re not. Even though I really enjoyed living in the Bay Area, I’m not blind to how dystopian it can feel. Just hang in the Tenderloin. Or if you really want something eye-opening, shoot on over to Oakland. The area is still great, but it’s a poor value when you consider it has the mkst expensive CoL in the country. I’d love to see the area get itself a little more together.

    Edit: though the other commenter is right. Castro street has nothing to do with the TL






  • The amount of CPU time compiling code is usually negligible compared to CPU time at runtime. Your comparison only really works if you are comparing against something like Rust, where less bugs are introduced due to certain guarantees by the language.

    Regarding “language constructs” it really depends on what you mean. For example using numpy in python is kind of cheating because numpy is implemented in C. However using something like the algorithm libraries in Rust woulf be considered fair game since they are likely written in Rust itself.