Better HN
topnewbestaskshowjobs
Log inSign up

alchador

5 karma · joined Jan 3, 2022 (4y ago) · 7 submissions

Submissions

1.

Starting a Side Project: A small poem(ashwingoyal.com ↗)

1 points · by alchador · 2y ago · discuss

comment 3y ago · link · parent

Abstract: Language models of code (LMs) work well when the surrounding code in the vicinity of generation provides sufficient context. This is not true when it becomes necessary to use types or functionality defined in another module or library, especially those not seen during training. LMs suffer from limited awareness of such global context and end up hallucinating, e.g., using types defined in other files incorrectly. Recent work tries to overcome this issue by retrieving global information to augment the local context. However, this bloats the prompt or requires architecture modifications and additional training. Integrated development environments (IDEs) assist developers by bringing the global context at their fingertips using static analysis. We extend this assistance, enjoyed by developers, to the LMs. We propose a notion of monitors that use static analysis in the background to guide the decoding. Unlike a priori retrieval, static analysis is invoked iteratively during the entire decoding process, providing the most relevant suggestions on demand. We demonstrate the usefulness of our proposal by monitoring for type-consistent use of identifiers whenever an LM generates code for object dereference. To evaluate our approach, we curate PragmaticCode, a dataset of open-source projects with their development environments. On models of varying parameter scale, we show that monitor-guided decoding consistently improves the ability of an LM to not only generate identifiers that match the ground truth but also improves compilation rates and agreement with ground truth. We find that LMs with fewer parameters, when guided with our monitor, can outperform larger LMs. With monitor-guided decoding, SantaCoder-1.1B achieves better compilation rate and next-identifier match than the much larger text-davinci-003 model.

The datasets and code will be released at https://aka.ms/monitors4codegen

3.

Guiding Language Models of Code with Global Context Using Monitors(twitter.com ↗)

2 points · by alchador · 3y ago · 1 comment

comment 3y ago · link · parent

Post TL;DR: Employees should view themselves as equals to their employers and can take actions to improve their working conditions. Understanding your value to the company and the leverage you have is important. By exercising agency and making choices that benefit both you and the company, such as adapting workflows or using preferred tools, you can assert your influence. Working with your team and justifying your actions based on productivity and profitability can help achieve goals like changing work schedules or skipping meetings. Using strategic approaches with HR can be useful, but be mindful of the risks involved. It's essential to know your worth, leverage, and the tools at your disposal to bring about positive outcomes while keeping productivity in focus.

comment 3y ago · link · parent

POST TL;DR: CSS Day 2023 highlighted the increasing complexity and breadth of CSS, with more units and modules than ever before. While the growth presents opportunities for specialization, there's a concern that CSS and open standards are being controlled by a narrowing group of implementers, particularly Google. Despite this, CSS and HTML continue to evolve, making web development more accessible and the web more functional. The web's progress has been influenced by both European collaboration and American innovation, leading to its constant evolution. The conference underscored the need for the CSS community to grow and thrive to counterbalance the dominance of Silicon Valley giants and ensure user-centric development.

comment 3y ago · link · parent

Post TL;DR: Blowing up your life can be a good idea for those who are relatively sane and feel stuck in a job, city, or relationship. People tend to resist change due to status quo bias, but breaking free from familiar pain can lead to personal growth and alignment with desires. Making major life changes, whether by choice or through external disruptions, can result in improved outcomes and happiness. While it may feel uncomfortable initially, the disequilibrium can motivate positive change, typically stabilizing within six months. There are no guarantees, but taking risks and embracing change can lead to a better life.