News for hackers. Stuff that matters.

cheepin

Re:Trillions Spent and Big Software Projects Are Still Failing on Wednesday November 26, 2025 @01:46AM (#46054799)
All of the things you mentioned are designed and tested incrementally. Furthermore software has been used on Mars missions in the past, and that software was also developed incrementally. It’s proposed as the best way because it’s a way that has a track record
Re:Career Asymtotes on Saturday October 18, 2025 @12:30AM (#45624901)
That’s a pretty solid endorsement. Where do you work?
Re:A 10x Faster TypeScript on Tuesday March 11, 2025 @11:58AM (#43333761)
Rust memory management is automatic. Object destructors run when the object exits scope without needing explicit management by the programmer

Show HN: 100 Depth tree search on your iPhone with Rust

https://apps.apple.com/us/app/chesstiles/id6737867924

I made this app with Rust + React Native. It combines a puzzle game with a solver. While quite a lot of work went into UX, the solver is what I’m most proud of and was the first functional piece of the app. Originally, it solved one layer at a time, but when I added the undo feature I decided to try to go deeper and try to answer “What if the solver has perfect knowledge of the RNG?”. Going...

( Read More... | 1 comment | 3 points | on HN )

Show HN: Random Positive Reward App for iPhone

https://apps.apple.com/us/app/tantaluspath/id6504832898

I built an iPhone app that is now available in the App Store. Its purpose is to make it easy and effective to use intermittent positive reinforcement as a motivation tool - the psychological phenomenon behind doom-scrolling, gambling, and animal training, now finally purposed for your benefit. It provides the tools to manage the little treats your brain needs to move in the right direction,...

( Read More... | no comments | 2 points | on HN )
Here's why: https://bconnected.berkeley.edu/projects/google-cost-reducti...

TLDR: Google Workspace for Education rug pulled schools on their "unlimited" plans, and the deadline is coming up to avoid paying extra fees. This was communicated in advance, but maybe still a bit quick for a large institution

Re:Gitlab is reportedly up for sale on Tuesday August 13, 2024 @12:26AM (#41232233)
I recently had a recruiter from them email for hybrid positions with no remote so take that as you will

Edit: 15 remote engineering positions open out of 219 total on their career site

Ask HN: How are you using Intermittent Reward? (or why you ought to try it)

Random Intermittent Reward (known as Variable Ratio Reinforcement Schedule in the field of Applied Behavior Analysis) is a powerful concept from psychology. It states that the increase in motivation (through dopamine) from the anticipation of a reward is stronger when the reward is not guaranteed. You can see this effect in action with gambling, social media, mobile games (especially loot...

( Read More... | no comments | 2 points | on HN )
Re:Evil Coding Incantations on Monday December 25, 2017 @09:59PM (#16006811)
This isn’t correct for a=5, b=0, c=0. It would return true while OP’s example would return false
Re:How Much Do You Know About Solving Global Warming? on Monday June 12, 2017 @06:42PM (#14541716)
He was almost assuredly talking about enforcing carbon tax. Enforcing working hours limits has already been accomplished in many countries.
"An estimated 95% of all cars sold in the U.S. have automatic drive, versus less than 20% in Europe and Japan, where stick-shift is the overwhelming transmission of choice."

Still a good market globally, if not in the US. I'm more worried about EVs taking over than automatic transmissions.

http://www.nydailynews.com/autos/americans-driving-stick-shi...

Re:Rust is more than safety on Wednesday December 28, 2016 @05:15PM (#13274146)
The discussion he referenced, if you haven't seen it: https://news.ycombinator.com/item?id=13267537
Re:Stroustrup's Rule and Layering Over Time in Rust on Friday December 16, 2016 @08:55PM (#13198666)
Or you can call map_err to do an on-the-spot transformation if you don't have a general way to go from Error A to Error B.

I still sometimes make mistakes reading rust code with the ? at the end of the line, but it's just a question of what type is it and does the line return. Both of which are handled by the compiler in the end, so you get a little bit of extra knowledge that even if you misread the line of code, there's often limits to how much damage you can cause.

Re:Sub-millisecond GC pauses in Go 1.8 on Friday October 28, 2016 @11:53PM (#12822558)
If you are measuring response in nanoseconds, 100 microseconds is still a lot.

However, it may be good enough for games at well below 1% of your time budget for a 60 fps game assuming cache locality is good enough so you don't waste too much time fetching from main memory.

Re:Alphabet Creating Stand-Alone Self-Driving Car Business on Wednesday October 26, 2016 @11:33PM (#12802726)
In my experience they don't really stand out other than being a bit slow (for which it actually got ticketed).

They seem to just be very conservative.

Re:Internet Attack Spreads, Disrupting Major Websites on Saturday October 22, 2016 @01:38AM (#12767385)
DDOS usually occurs via a botnet of infected networked devices. Thus, the attacker is getting their resources for "free" since their host is unknowingly wasting CPU and bandwidth during the attack, while the defender is paying for theirs.
Re:2017 Rust Roadmap on Friday October 21, 2016 @10:39PM (#12766784)
> Is there an equivalent guide to the compile-time representation of important constructs for those trying to learn C/C++?

Definitely. It was taught in school and there's pretty good guides for it online (maybe not caught up to c++11 and beyond, but the fundamentals are there). You're right that it is not readily available for most languages, but when you need to get serious about performance you either are going to have a guide or spend a lot of time looking at assembly/bytecode. To be fair, I'd probably still have to inspect generated code sometimes, but it's nice to have good instincts for how things run to guide your design/implementation so you can spend less time looking at assembly.

http://www.agner.org/optimize/optimizing_cpp.pdf

Re:2017 Rust Roadmap on Friday October 21, 2016 @09:38PM (#12766515)
I read through the Rust book, and the problem I was having with it and the other docs is that it was hard to map the Rust concepts with what actually runs when it is compiled. For a language that touts "uncompromising performance", it was difficult for me to find performance characteristics of the underlying abstractions and std library (for example, are algebraic data structures just tagged unions or does the compiler do more fancy things with them? What about iterators?). I'd really like to see a "Rust for C/C++ devs" guide that helps you figure out if you were using [some C++ feature] the way to get that behavior/performance with idiomatic Rust.

Another thing that is still tricky for me is figuring out when I should use 'unsafe' blocks in my code. Is it to be avoided if at all possible, or should I go there any time the 'safe' part of the language is making it difficult to express what I want? The meme that Rust is C++ without SegFaults and or race conditions is a bit misleading since the actual guarantee is that you don't get SegFaults or Race conditions outside of Unsafe blocks, and any nontrivial project will make use of unsafe blocks.

Suppose a company raised money at some implied valuation. If they raise money again at a lower implied value, you call it a down round.
Re:The intriguing legal ramifications of Pokémon Go on Monday July 25, 2016 @05:39PM (#12161797)
> But now, the XYZ Candy Company building also has become a Pokémon Gym. Players from miles around aggregate to that location because the name and logo are depicted in the app as a Pokémon Gym location. At what point does this mean the app is using the copyrighted design in violation of the copyright registration?

All the pictures used are taken from public property iirc. Wouldn't the copyright for the picture taken and the copyright of the building be two separate things, the former belonging to the taker and licensed to the company? If not, is Google Maps compelled to censor their street views of copyrighted architecture?

Re:Why do we keep building rotten foundations? on Tuesday July 05, 2016 @03:44PM (#12038995)
To people confused about the link, copy and paste it instead. The owner of that site is trolling people with the HN referrer.
Re:Railway oriented programming on Wednesday June 22, 2016 @10:00PM (#11958409)
(2013)
> artificial value to killing them

Another way to think about it is an artificial value to keeping the population going. All the animals will eventually die yielding a reward, but if you can keep a population going, the reward will keep coming.

The "solution" for countries who wanted to remove invasive species is to embrace pretty heavy handed comprehensive enforcement. (See http://www.scientificamerican.com/article/canada-declares-wa...)

That's a pretty painful option compared to just handling rough objects. I've rendered touchID almost entirely ineffective just by grip taping a skateboard.

The answer to your question though is that, at least on the phone's side, it would require your passcode to login

Rhymes with scone
Re:Apple Is Said to Be Working on an iPhone Even It Can’t Hack on Thursday February 25, 2016 @02:45AM (#11172968)
They did not even attempt to get it to send a fresh backup to iCloud before they reset it making it impossible.

[0] http://daringfireball.net/2016/02/san_bernardino_password_re...

Re:How Mickey Mouse Evades the Public Domain on Friday January 08, 2016 @01:46AM (#10863347)
This is an interesting solution that I haven't heard before. It certainly seems to solve some of the problems with current copyright, but how do you evaluate the value of a copyrighted work? Off the top of my head, taxing recent past sales of it won't work because a rights holder can just sit on a work keeping it from public domain for free (status quo), and estimating some sort of earning potential doesn't seem great either.
> With: Everything.

This may be nitpicking but certain classes of programs cannot be realistically built with Haskell. Anytime you need to tightly control latency (soft realtime) won't really work since you have both a garbage collector and lazy evaluation. Memory constrained systems are pretty tough as well since you don't really get insight into allocation/deallocation, which also makes structuring your data into a particular memory layout tricky compared to C(++) for instance.

Not to say that Haskell isn't awesome. It should probably be used for more systems. It just can't be the "hammer" to make every problem into a nail.

Older »