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

Wow! this taught me more than 2 semesters of calculus. Thanks for sharing.


Location: Kerala, India

Remote: Yes

Willing to relocate: No.

Technologies: Java, Go, HTML, HTMX, Javascript, MongoDB, MySQL, Kafka, CI/CD, Elastic search, Some PyTorch and AI, etc.

Interests: Development of distributed applications using messaging and event driven architecture. Also interested in integration of legacy and existing systems with AI.

Side Project: https://github.com/mammenj/mandm

Résumé/CV: Available by request.

Email: mammenj [at] live [dot] com


Maybe, slightly off-topic. I recently started developing with htmx and go and it's been really very productive for me as I am not a front end developer. But there are still some usecases, where I need to use JS, like a simple 'hide and show password field'. I had to use htmx:on JavaScript to make it work. I am for no build as it keeps development and debugging simpler.


Is there an AI model that will generate questions and it's answers from the text provided..looking for educational purposes?


ChatGPT in GPT-4 mode can help you. Just created this example.

USER:

I want you to create two questions and give answers for the text below:

Meteors are fragments of space rock that enter the Earth's atmosphere and burn up as a result of the friction created when they pass through, appearing as bright streaks of light in the sky.

As well as light, this friction also creates sound, with some meteors creating a 'sonic boom' as they break the sound barrier, in a similar way to a fast-moving aircraft.

ChatGPT:

Question 1: What causes meteors to appear as bright streaks of light in the sky when they enter the Earth's atmosphere?

Answer 1: Meteors appear as bright streaks of light in the sky when they enter the Earth's atmosphere due to the friction created as they pass through. This friction causes the meteor to burn up, resulting in the visible streak of light.

Question 2: How do some meteors create a 'sonic boom' as they travel through the Earth's atmosphere?

Answer 2: Some meteors create a 'sonic boom' as they break the sound barrier when traveling through the Earth's atmosphere. This is a result of their high speeds, and it occurs in a similar way to how a fast-moving aircraft might produce a sonic boom.


No


You may be right that the majority is probably an exchange. But is there something in the protocol specification that prohibits such majority? Then it raises a question, can an actor such as a government (which may have unlimited resources) to hold large numbers of ether (> 51%) to add blocks to their advantage?

Perhaps, it's my ignorance about this technology that makes me question and prevent me from adopting this technology.


There's a common misconception that once you have >51% you can do anything. This isn't true. There's plenty of mischief you might get away with (censoring, double spending), but you can't transfer other peoples money without their private key, and you can't change the rules of the protocol. You can probably tank the value of the currency by doing large enough double spends and causing problems, but in PoS importantly you're hurting yourself more than anyone else, while in PoW, you still have a bunch of useful hardware left over after the attack, and with hash power marketplaces you can attack a PoW chain while having more or less no investment in the chain itself.


You can't double-spend across epoch boundaries (~6 minutes) without getting slashed and losing all your stake.

Censoring is more plausible, though of course it still hurts you, as you described.


I keep hearing "you can't do X without getting slashed". What happens if there is a network partition that lasts for longer than 6 minutes? Which two of the diverging blockchains get to slash the other one and take all their stake?


> What happens if there is a network partition that lasts for longer than 6 minutes?

With less than 2/3 of the total stake active on a single partition, that partition stops finalizing transactions, meaning that the chain explicitly stops guaranteeing that it's canonical.

Notably, slashing cannot result from a partition, only from malicious validator behavior.

> Which two of the diverging blockchains get to slash the other one and take all their stake?

For a partition, which is not a slashable offense, there is no slashing. The minority partition stakers suffer inactivity leak on the majority chain, meaning that they very slowly (at first) start losing their stake until the majority partition has 2/3 stake again. It's not a big penalty like slashing, unless the chain remains in a degenerate state for many hours or days.

On the other hand, a slashing rules offender (attacker) gets slashed on all chain forks. The conflicting signed block from one gets included on all others for a bounty. This means that every staker must vote for only one fork at a time, which means the network can eventually determine which fork is canonical because it was voted for the most.


> double spending

Is not just double sending in one epoch, but unlimited spending of one coin.


The short answers is yes, there are various safeguards and countermeasures in place, some on the protocol and some on the social/incentive layer. But it would take dozens of pages to explain all of these in detail, so if you are truly interested in this you can search for "proof of stake security" or "proof of stake centralization risk" and you will find a huge number of resources.


Yes this is why they’ve added slashing. The human element can indeed decide in my understanding to slash the coins of those owners.


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

Search: