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

golang compiler on a raspberry pi 3 compiles applications really slowly, think minutes, but there's a workaround which is to cross compile on x86, think seconds plus sftp transfer. i assume the primary use case is to speed up compilation and create smaller binary sizes? this could be helpful as binary sizes for golang compiled binaries are pretty large, my apps typically are around 2-20MB, but i understand they include all dependencies.


> i assume the primary use case is to speed up compilation and create smaller binary sizes?

LLVM is going to be much slower than the Go toolchain. It may produce smaller binaries, but mainly through dropping the bulk of the runtime on the floor. The main thing that LLVM does is (apparently) reduce the stack usage.

But it does support the CPUs that the author wants to target out of the box.


I believe LLVM toolchains also (by default) exclude debug information, which gc (go compiler) would need to be told to explicitly exclude.


You generally need to run the code through some rewriters that, as far as I recall, drop those symbols anyways -- these CPUs can't execute an elf binary directly from flash.


As a data point, TinyGo includes the debug info by default. There is a "-no-debug" option to turn off the inclusion though.


I compiled go as an x86-64 to ARM cross compiler (ubuntu to raspi). Worked great. I even confused myself a bit by running the ARM binary on the x86-64 machine (turns out binfmt will detect the binary and run it under QEMU).


long live bacon!


The addictiveness of bacon might be due to the salt.

Even though I am not addicted to fat (I think), it is vital for the "filled" feeling I have after a meal.


behind the china great firewall so unable to open this article, but in general i agree with this title, i was also observing simple things while in china in terms of eating habits, typically meals in asia are family style and you grab small portions of each shared dish unlike in western countries where you have a full meal placed in front of you. when i was growing up in the states, i was always told not to waste food, so if given a big mac, it's getting finished, if a big plate of pasta, devoured. this probably can explain the differences in waist sizes between the 2 regions, asians eat more family style where you take what you can eat instead of being dictated by chilis, olive garden, or mcdonalds in terms of what your body requires from a meal.

diet is pretty important for me now as i try to watch my weight, i drink water or hot tea only, absolutely no soda, juices, etc, i also try to eat 60-70% capacity per meal as i dont exercise that much, mostly just sit in front of the computer all day, so there isnt a need for all those calories like before when i was lifting weights and playing basketball for 6 hours a day, few to little carbs (bread, rice, pasta), some fruit for snack, and absolutely no junk food. obviously if i exercise, i will have a little more carbs that day. but overall do you need that many calories a day?

you also need to train your stomach, it's like a balloon, eat too much and it stretches out and takes a while to get back into its initial size, so try not to binge eat (binge drink also, i used to olay tennis, could drink ,2 gallons of water in an afternoon), also keep in mind physical pro-portions of food/drink, so dont eat 4 slices of pizza and beer, go with 1 slice, and maybe some salad, some red wine.


regarding your remark about this perhaps having something to do with the bay area, the bay area brings some of the most experienced and skillful if not smartest people in the industry (from all over the world), i dont doubt that this plays a factor. that's not to say that experienced/smart/skillful people are purposely rude, i think it has a little to do with ego, showing yourself up during meetings, but sometimes it's just passionate people going off on rants.

i can totally understand your frustrations and this seems to be affecting you personally, but i think you should do some root cause analysis before you jump to conclusions, jumping to conclusions also burns a lot of mental energy. instead, just go have a conversation in private about what you think, not about being interrupted, but about your technical ideas, if he/she's really an asshole and just wants to drown you out, you should be able to tell from a private conversation, my guess is that the person gains more respect for you. if you have trouble articulating your thoughts in real time, write it down, send an email. dont guess what's at play here, find out the truth. if the people suck, switch environments, there are plenty of great companies out there.


this is too awesome! that's quite a lot of work to get the pcie exposed, soldering and such i try to stay away from so great for the author.

the form factor of pcie devices doesn't really play well with rpi, but there's definitely a need for faster, more stable persistent storage. i have heard a lot of issues with microsd cards based on wear leveling and such. it would be really nice if rpi could develop like an m2 interconnect where i could install an nvme ssd within the form factor of an rpi, that would make for a truly incredible little machine.


how long before ubuntu switches over to this? i don't even know if ubuntu has forked from debian or it's pretty much the same, but with different package management?


I believe that Ubuntu gets their packages from Debian unstable not stable. So the latest Ubuntu most likely already has very similar packages (if not slightly newer) to this.


Ubuntu is cut from Debian testing, not stable. Testing uses a rolling release, so any recent Ubuntu will already have most of the changes that went into Buster today.


thanks all. does anyone have any experience with debian in production for hosting restful api backends? i use ubuntu almost exclusively, but i always see something about it being derived from (debian) 'stretch' or whatever so was wondering what i'd typically get in terms of benefit compared to ubuntu.


Ubuntu is based on packages from testing+unstable, where the packages get automatically or manually synced from.


i strongly believe in a diverse workforce, especially in large companies, diverse workforces often times mean better results especially since problems today are even more complicated. having said that, i totally understand and have seen some of the bad behaviors you mentioned like putting people down, insulting others, this can be quite toxic. i'm not saying i condone any of those types of behaviors because i certainly don't, but i think asshole labeling can be quite arbitrary, e.g. someone that's terse and seemingly abrasive may just be more direct/candid, is he/she an asshole? what i'm saying is that bad behaviors should not be condoned, but these individuals definitely have value to companies and can create beautiful work, and we shouldn't reject them based on certain labeling because the labeling is quite frankly discrimination and should equally not be tolerated. one person that particularly stands out in my mind is linus torvalds. asshole? for sure, by almost all counts of your definition of an asshole. given that he's improved lately and has admitted his issues, but he's still an asshole by my books :) would you want anyone else working on linux kernel which requires having a lot of different contributors working in large teams, probably not.


sounds like what you're doing is exactly what delicio.us was doing before they were bought out by yahoo, i'm curious also to know what hn users have for this. i use instapaper, but it's more of an archiver, not sure if it supports tagging


not trying to spam, but i created a shared action item tracking list myself, free to use, my particular use case was to track everything in our family from buying things to other tasks. i could also use this for work, only iphone.

https://getsdone.xyz

regarding evernote, i use this religiously, but mainly for personal note taking with sync across devices.


my ideal internet would be more like a set of concentric rings per user, a ring would represent different preferences, filters, and data, i could choose to include certain users access to parts of my rings, and i could access other parts of other user's rings. obviously there should be an open ring that every user can access which would need a search engine run by a company or set of companies, this would be like today's internet, but that would not be the same ring, i could switch between rings with ease. i think this maybe somewhat what tim berners lee is doing with the decentralized web, or perhaps bits of dark net interwoven with the internet.

an example use case would be like a set of apps that my family could use for photo sharing, messaging, sending data, links to websites, etc. perhaps another set of apps for my friends, another for my company, or school. the protocols would not require public infrastructure, dns, etc. perhaps tethering of devices would be enough. there would be a need for indexing and search, email, etc.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: