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

If you’re using WSL, why use Cygwin?


If you're at a very large corporation, Cygwin could have been approved decades ago, but WSL is still going through "auditing". WSL is still new enough that bureuocratic organizations haven't satisfied themselves enough that it can be secured or are just plain stubborn enough to not want the hassle.

I refuse to work at large companies for this reason, but one company I worked for brought on a large American bank as a customer and their infosec terms for vendors essentially required their IT "standards" on us, which sucked as we were a Mac shop. It almost came to a head when all the developers were told they had to seek approval for upgrading their build tools.


How did that saga end?


To avoid using cmd.exe/PowerShell for stuff that needs to run natively. For example, when I used Linux I'd use this very small program named darkhttpd for sharing files among my computers over WiFi; when I switched to Windows I compiled it on Cygwin and it worked just as fine.


Is the “foo.fish” name required? Could I have “bar.fish” with “function foo…” inside and still autoload function foo?


Not autoload, no. You can have as many functions as you want in a single .fish file, but it'll only be lazily autoloaded if it has the same name as the command you are trying to execute. It's how we avoid doing the I/O of scanning all fish directories and parsing their contents at startup.


...and you can still explicitly source the files if you want to load the functions elsewhere.


Worth taking into account that a lot of Gen Z responding here are probably not very far in their career. It would be interesting to see how the other generations would have answered if they were at similar points in their life


Obviously?


Hm okay I was curious because I remember how popular rails got around like 2012-2014.

Since then I feel like most people just opt for go/node instead in my experience. Better performance and easier to deploy and scale.


I would say the hype around Rails has settled since a long time ago, that is maybe why you feel that but now since Rails 8, it is gathering a little bit momentum again.

But you should correlate what the talk of the town is with how much something is being used, it is still heavily used and a good option for startups.


Meanwhile my M1 is still a racehorse for 90% of my use cases


I doubt I'll upgrade anytime soon, but at this rate when I do need to, I feel like I'm just going to get a Max because of how happy I've been with the base M1 Pro (just upgraded the RAM a step).

That is if I don't just suddenly decide to replace the batteries (relatively cheap from the apple authorized store compared to a full upgrade).


But will it run Cyberpunk 2077 (yes, seriously)?

https://www.theverge.com/2024/10/30/24283651/cyberpunk-2077-...


I played 40ish hours of Cyberpunk 2077 on m3 M3 Max MBP under crossover. Runs fine on medium/high settings.


Probably! It runs on a steam deck


ive still never thrown anything at my m1 max that it couldn't handle


Yep, even though the 2.2x is a bug upgrade, I’m not actually sure that’s compelling enough? When the M1 Max won’t do usually I turn to a server with 4-10x the corecount…


It even handles ollama no prob.


Mars for the rich, Earth for the poor


It’s new enough to be called new.


What’s so bad about html/template?


passing data to templates that call templates that (maybe call other templates that) use the data. It is easy to call things in the wrong order, not provide the right values, think you have access to some data and totally don't, there is no type help, there is a bit of ceremony to get functions available, and I'm sure there is something else I'm forgetting. Just overall, a pain to work with.

So far, I'm enjoying in Templ that I can clearly see what arguments and types are passed to whichever views/partials and that I can simply use standard Go functions to do whatever I need them to do.


I started to question you on the year there… you got me


I believe it is recommended to not use gobin/gopath anymore.

go test ./… tests all files in the project, so I assume build does something similar.


My experience with go build ./... is that it compiles everything but it doesn't make the binaries.

> When compiling multiple packages or a single non-main package, build compiles the packages but discards the resulting object, serving only as a check that the packages can be built.

From https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependenc...

A bit annoying when you want to build a bunch of executables, but it's not something I need often and it's easy to script.


  go build -o some/dir/ ./...
will actually output the binaries


Sick, I couldn't figure it out when I needed it so I just manually created a 20 line script to cd into each directory and go build.


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

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

Search: