News for hackers. Stuff that matters.

westicecoast32

Re:File System Interfaces for Go – Draft Design on Thursday August 06, 2020 @03:20AM (#24068816)
It's sad when someone calls a remake of a failed language invented in 1968 as a language 'designed thinking ahead in the future' and other people agreeing with him

I'm sorry to say but I like PHP better than go and php is in the top 5 of languages people use that I hate (most to least is go, rust, js, java, php). You might say they're the most popular languages but so my top 3 languages. From least to most: D, Zig, C++, Python (3) and C#

Someone made this point elsewhere. It's a 'trade secret' and 'stealing' is not as accurate as 'leaking' or 'copying' as it doesn't prevent the original owners from using it.

Usually civil lawsuits are fines. Should your (ex) employeer be able to put you in prison? Because I can see how that can be misused if a few figured out how to be convincing enough

Does it end with "The Times was initially put in touch with the hackers by a security researcher in California"? There was no information whatsoever

Ask HN: What do you recommend for optimization and profiling?

I'm writing an app from scratch and I'd like to pay attention to places where I can optimize and profile things. So far I converted a few important functions to SIMD and wrote my own algorithm for another. The other day I got a tip on branch prediction and realized there's more I could learn.Do you have any recommendations for profiling or optimization?

( Read More... | 4 comments | 3 points | on HN )
Re:Lightweight Alternatives to Google Analytics on Thursday June 18, 2020 @12:57PM (#23565065)
For a personal project everyone basically ignored every post I made about it. I used server logs to generate analytics and noticed people hit the first page and left (I assume they spent seconds and left).

I then broke up the main page to many smaller pages and notice people still leaving right away but my documentation page got more overall clicks since the main page didn't massively overload them

I guess analytics don't give you answers but know what pages they tend to click on and what happens when you make a page more simple/more heavy you can figure out a solution

However I didn't end up finding a solution and I'm planning to rewrite my project. I have a better idea how I should introduce it to people next time

Re:Ask HN: Why do you use Rust, when D is available? on Friday June 12, 2020 @10:50AM (#23499774)
Really? I find that rust is worse than C++ thanks to clang

For example, is there a way in rust to get a runtime error when there's an int overflow?

1. Everytime I hear this I assume the business can't find people to work anyway when the excuse doesn't apply

2. If your underpaying people that's another problem

3. You're asking people to work during a pandemic. They're not putting their lives and fiances (who's going to pay for their hospital bill) to work for you

Could you get a little more into this? I never had to do anything like that since all my workplaces only used 1 language + js
I had a thought on this but it's alot of work for one person and IDK if anyone would use my language for that.

I agree tho. I been learning SIMD and the operations it supports are pretty neat

That's a really good idea. That's what I use compiler explorer for but I do it poorly. CC: llvm

Ask HN: What's something you'd like that programming languages don't do?

For example Andrei Alexandrescu likes how much you can do with static if in D however he thinks languages needs to have more powerful reflection.Jon blow wrote his language so he can both modify the AST during compile time and write compile time rules without writing a pluginI'd like more errors and warnings to be in a language, such as when I modify array [0] and [2] but not element [1] and...

( Read More... | 12 comments | 7 points | on HN )
Re:Less is exponentially more (2012) on Tuesday May 12, 2020 @12:04PM (#23155554)
I'm writing a language. I was wondering what you all suggest it have before you would seriously try it out? I don't think most people cares about syntax; does it need to be attached to a large project?

The beta of the last language I wrote had maybe half a dozen fans. I threw away the compiler/language because I didn't really know how to write a compiler back then. I'm writing a new one now