News for hackers. Stuff that matters.

devnull3

Yeah, I never understood why the lane markings are not above the head and in advance instead of on the road.

> drivers unfamiliar with the layout People familiar with the layout drive even when the markings are completely faded. It causes lot of anxiety if you are not familiar. It happened to me once where I was in a wrong lane. I continued on it as it was the most safest thing to do but the next exit was onto a motorway :). I was so angry with myself.

Driving schools in UK teach that changing lanes on a roundabout is unsafe. Infact, in a driving test doing so will result into a failure because most people will not follow safety checks and signalling.

If you are in a wrong lane, the safest thing is to continue on it, exit the roundabout and comeback again or go around the roundabout.

There is a sign board which tells whether to take the middle road or left [1]

This is the round-about layout [2]

None of the above tell the precise lane to take. Only when you enter the roundabout you will know. See.[3]. Imagine cars waiting on these markings. This is what frustrates me the most.

[1] https://www.google.com/maps/@51.5066257,-0.5789164,3a,75y,32...

[2] https://www.google.com/maps/@51.506316,-0.5784722,3a,37.5y,2...

[3] https://www.google.com/maps/@51.5076664,-0.5804344,3a,75y,29...

Simple roundabouts are definitely good but in UK I have found spiral roundabouts error prone if you have not driven on it before Example: [1]

When visiting for the first time on a specific spiral roundabout:

1. Lane markings are faded

2. You do not know the specific lane unless you come very close to it and have to make a quick decision

3. Often due to queued traffic you cannot even see the lane marking until its too late.

Because of this I have seen people change lanes on a roundabout because they made a mistake and its dangerous.

[1] https://www.google.com/maps/place/Sainsbury's/@51.5080462,-0...

Re:Wales' 20mph speed limit: How has the first month gone? on Tuesday October 17, 2023 @04:44AM (#37912186)
This will impact the driving tests as well. A typical practical driving test lasts for 35-40 min. But with 20mph it will cover less distance. Interesting to see how the DVSA (the body which conducts these tests) handle this.

Increasing test duration means the backlog (which is already huge) will increase. Keeping same will mean less road features will be tested.

Re:Wales' 20mph speed limit: How has the first month gone? on Tuesday October 17, 2023 @04:40AM (#37912153)
For me the way manual gears are calibrated at present, it is difficult to maintain speed at 20mph. It is very easy to overshoot compared to 30mph.
Re:We made a fork of the Rust Playground on Monday October 09, 2023 @12:06PM (#37821825)
yeah. The snapshot of Java in my head still needs main() to be defined in a class.
A lot of it is to do with abstraction and reusability. E.g A third party lib uses hashmap for implementation but for my use-case an array would have suffice (like small number of integers over specific range). Since the 3rd party lib is essentially an implementation for union of many scenarios whereas I need only a specific set of it. This results into inevitable bloat.

The flip side is that you write all of the layers of your software and control the bloat. This now becomes an expensive option.

Re:Fabrice Bellard on Thursday September 14, 2023 @02:12PM (#37512626)
I think Fabrice is what is known as 10x engineer. They do exist.

There is not only depth but also breadth in the projects he has created.

Re:Will India’s Name Go the Way of Turkey? on Friday September 08, 2023 @02:33AM (#37430197)
Govt minister has rejected this as a rumour [1]

[1] https://www.livemint.com/politics/india-vs-bharat-row-govt-r...

Re:Write your passwords down (2010) on Monday August 07, 2023 @12:09PM (#37036344)
lol ... it seems it is same as forgetting password of your password manager.

Frequent usage helps to retain the memory. Also, in my case my wife uses it so its two people remembering instead of one.

Re:Write your passwords down (2010) on Monday August 07, 2023 @09:44AM (#37034368)
Do not write your real password. Instead modify it in certain way which is easy to remember:

E.g real password is "xB6fqmd$a90". Apply algo: swap 2nd and last char. So store it as: "x06fqmd$a9B"

This algo should be easy to remember and there infinite ways to come up with your own algo.

Even if your passwords are exposed there is additional protection.

In other words you have your own simple symetric encryption with algo being the secret.

Re:How Coders Can Survive–and Thrive–In a ChatGPT World on Wednesday July 05, 2023 @02:30AM (#36596262)
Writing code is just one part of the overall list of things that an engineer does. Infact, barring the early versions of product/project more time is spent elsewhere in subsequent versions. With code it is more reading than writing new code. Other things on which time is spent are:

1. What needs to be built? What is feasible?

2. Investigations (bug reports, production issues, performance issues, etc)

3. Quality control (code reviews, writing tests)

I am only listing things which require considerable thinking and multi-domain skills. So LLMs (as of now) really only helps with one part of overall things to do.

Also, Rate of code generation with AI >> Rate of effective code review. So the bottlenecks will still be humans.

PS: About quality control: I think AI writing code and generating the test code is not desirable. If the underlying LLM has issues even the test code will have issues. Generating boilerplate is one thing but the key things about the tests (i.e. inputs/scenario & things to check) needs much better curation. This needs human intervention.

Re:A digital payments revolution in India on Saturday May 20, 2023 @04:51PM (#36015498)
As a big fan of UPI, I have a concern if people became too much dependent on it. What happens when there is a power outage for extended period of time (due to war, natural calamity, grid failure, etc)?

Most shops in India do not have backup power provisioned.

I see productivity gains in software development but no full replacement (yet). Writing code is just one part of the overall list of things that an engineer does. Infact, barring the early versions of product/project more time is spent elsewhere in subsequent versions. With code it is more reading than writing new code. Other things on which time is spent are:

1. What needs to be built? What is feasible?

2. Investigations (bug reports, production issues, performance issues, etc)

3. Quality control (code reviews, writing tests)

I am only listing things which require considerable thinking and multi-domain skills. So LLMs (as of now) really only helps with one part of overall things to do.

Edit: Also, Rate of code generation with AI >> Rate of effective code review. So the bottlenecks will still be humans.

PS: About quality control: I think AI writing code and generating the test code is not desirable. If the underlying LLM has issues even the test code will have issues. Generating boilerplate is one thing but the key things about the tests (i.e. inputs/scenario & things to check) needs much better curation. This needs human intervention.

Re:Google Bard now open to use on Wednesday May 10, 2023 @03:18PM (#35892136)
I tried:

Question/Task: Write a lock implementation in Rust

I got this (lol):

    use std::sync::Mutex;

    struct Lock {
        mutex: Mutex<()>,
    }

    impl Lock {
        fn new() -> Lock {
            Lock {
                 mutex: Mutex::new(()),
            }
        }

        fn lock(&self) -> MutexGuard<()> {
            self.mutex.lock().unwrap()
        }

        fn unlock(&self) {
            self.mutex.unlock();
        }
    }
Re:Meta plans $7B bond issue on Monday May 01, 2023 @11:31AM (#35774238)
Meta has ~$40B as Cash-on-Hand [1]. Why does it need to raise this money via bonds?

[1] https://companiesmarketcap.com/meta-platforms/cash-on-hand

Re:Reflections of an Employee on Monday May 01, 2023 @05:11AM (#35770555)
I will add two more:

1. Your team is not your family. I have worked in environments where such characterizations exist.

2. When there is a conflict between teams the boss says "Guys we all are one team". No we are not. I understand to be co-operative & understanding but there is a limit to which a team is supposed to cover for incompetance or intransigence of other teams. The bosses in this case simply do not want to have hard conversations with their peers and to the management above. They just push down to ppl below to "resolve-the-problem-somehow".

Re:Rhythm (taal) in Indian Classical Music (2011) on Friday April 21, 2023 @03:21AM (#35650708)
Highly recommend videos from Anuja Kamat:

What is Raag? => https://www.youtube.com/watch?v=CBtFt3HUkT0

Concept of 'Swara'- Hindustani, Carnatic and Western theory of swara => https://www.youtube.com/watch?v=J-nUTYRyuqk

(the entire video series has a nice, casual way of explaining things. Grab a coffee and enjoy)

Re:Community Is the Future of AI on Monday April 17, 2023 @03:49PM (#35605633)
> Prashanth Abd al-Rahman (SO CEO)

The name is Prashanth Chandrasekar or am I missing something?

> Astound your friends! Confuse your enemies!

... more like your friends will curse you and your enemies will watch with glee that you are using C++

Re:The Secret Life of Fsync on Monday April 03, 2023 @01:19AM (#35418843)
The block device may not be physical one. Instead it could be software like NBD. So there is really no way of knowing unless you know what exactly you are writing into, which actually breaks the abstraction.
Re:Show HN: Find words “halfway” between two others on Tuesday March 21, 2023 @02:25PM (#35250323)
I tried "Trump" and "Biden" out came the answer = "indifference" :)
> The primary beneficiaries of those low-cost services seem to be the upper deciles

Not necessary. For example, NHS is used by a large cross-section of the society. Another example are council services like picking up garbage. You will notice there is a substantial deterioration in these services.

> semi-skilled industry are now likely looking for jobs in other semi-skilled industries

There is a massive shortage of labour in hotels, farms, construction

> rent inflation and increases in the cost of real estate

Yes it does. But this is because of lack of housing supply. Govt is missing new housing targets every year since 2001 [1]. The focus should be to increase the pie instead of being a zero-sum game. The right migrants help you achieve this.

Also, the UK's birth rate is below replacement level [2] and with life expectancy high, UK will increasingly need more tax payers to fund the current standard of living .

[1] https://www.bbc.co.uk/news/61407508

[2] https://www.ons.gov.uk/peoplepopulationandcommunity/birthsde...

Construction: https://www.youtube.com/watch?v=LQPGe6HQlZI

Hotels,pubs,etc: https://www.telegraph.co.uk/food-and-drink/features/british-...

Documentary: Britain's Unemployment Crisis | A Very British Job Agency | Channel 4 https://www.youtube.com/watch?v=vVH6pgKyZvE

Taxis/Uber (anecdotal): I rarely see proper english uber drivers.

Although it UK appears to be a democracy but in reality it is not. One of its true test is whether the people make the govt implement the key policies they want or whether the will of the people is truly reflected in the way govt conducts its business. It seems there is a big disconnect.

The general sentiment amongst people that no one listens to their plight & problems. I have felt this sentiment since Tony Blair's days. There appears to be a permanent establishment which influences the key policy making no matter which party forms the govt. This is not democracy.

This has resulted into feelings like nothing radical is going to happen to reverse the decline of the British empire.

> immigration sentiment in the Midlands

Like it or not, UK needs (skilled & semi-skilled) immigrants. There are jobs which the citizens do not want to do but still expect world-class, low-cost services. This is where semi-skilled people which used to come from Europe stopped after the brexit.

To fund the welfare system, NHS, old-age care, the govt needs money. This is where high tax paying, skilled immigrants come in.

The govt is not doing much to attract the relevant people (unlike Germany, Canada for example)

Re:Ask HN: Is anyone else getting AI fatigue? on Thursday February 09, 2023 @07:38AM (#34723072)
Actually it is [1] [2]

[1] Synonyms of artificial has "faked" : https://www.thesaurus.com/browse/artificial

[2] Synonyms of fake has "artificial": https://www.thesaurus.com/browse/fake

Re:The pool of talented C++ developers is running dry on Friday February 03, 2023 @11:53AM (#34643790)
I guess C++ is the new COBOL.

When fresh out of college, I used to pride myself knowing C++. I used to revel in its complexity because it made me feel a cut above the rest. How naive & stupid I was.

I have not worked in C++ for a long time, I cannot climb the mountain of complexity again.

Some of these companies have "code-of-ethics" document which is mandatory for every employee to read. I had to read & acknowledge as a freshman software engineer at a firm which abused visa-on-arrival for work purposes.

The sheer hypocrisy is mind-blowing!

Older »