Don't look now, but the Nasdaq bear market may be coming to an end.

The tech-centric index is up 26% year to date and has gained more than 30% from its bottom last October. With most economists still calling for a recession in the second half of 2023, commentators have been reluctant to declare an end to the bear market.

This, however, could very well be the start of a new bull market. If you're looking to capitalize on it, keep reading to see two stocks that are ready for a bull run.

1. Broadcom

If you missed out on the Nvidia rally, you may want to take a closer look at Broadcom (AVGO -3.49%). The semiconductor stock was the rare company in the sector to post revenue growth in the most recent quarter, with its top line up 8% to $8.73 billion. This slightly edged out the consensus.

Broadcom also delivered a monster profit margin with an adjusted earnings before interest, taxes, depreciation, and amortization (EBITDA) margin of 65%. This was a sign of the company's competitive advantages. That margin expansion helped drive adjusted earnings per share up 37% to $8.15.

Chip stocks have rallied on interest in artificial intelligence (AI), and Broadcom seems to be among the winners. CEO Hock Tan said on the earnings call that AI represents 15% of its revenue, up from 10% in 2022, and expects that to reach more than 25% of semiconductor revenue by fiscal 2024.

While Nvidia dominates the market for graphics processing units (GPUs) for data centers and gaming, Broadcom has a different focus -- supplying chips for networking, wireless communication, storage, and industrial applications.

Broadcom, which has a long track record of delivering outsized returns, offers a way to get exposure to the AI boom at a much more reasonable valuation than Nvidia. The chip stock currently trades at a price-to-earnings ratio of 26 and offers a dividend yield of 2.3%, giving investors a good balance of growth and income at a reasonable valuation.

2. GitLab

GitLab (GTLB -0.65%) went public in late 2021, and the stock is down sharply from its peak. But after the company did a round of layoffs earlier this year and showed a renewed focus on the business, its stock seems on track for a rebound.

GitLab is a DevSecOps platform, providing companies with a self-contained system to allow them to develop and deploy software securely. Security testing is a recommended and easily executed part of every stage in GitLab's software development process. With minimal direct competition in this field, GitLab has been growing quickly as its comprehensive development platform takes market share from so-called point solutions -- programs built to solve a single problem. Management said it sees no competition in about half of its sales pitches, indicating unique value propositions that set them apart from potential competitors such as Microsoft.

The stock just soared following its first-quarter earnings report as it beat estimates and raised guidance.

GitLab's revenue jumped 45% to $126.9 million, well ahead of the consensus at $117.8 million, a sign that the worst of the tech slowdown could be behind it. The software company is still generating wide losses on a generally accepted accounting principles (GAAP) basis, but its non-GAAP margin narrowed by 17 percentage points to negative 12%. Its adjusted loss per share narrowed from $0.18 to $0.06, ahead of estimates of a $0.14 loss.

Like other tech stocks, GitLab is also leveraging the power of AI. It delivered five new AI features in the first quarter and another five in May. CEO Sid Sikbrandij said AI will "fundamentally change the way that software is developed."

The company is pursuing an addressable market estimated to be worth roughly $40 billion, and GitLab should deliver strong revenue growth, as the path to get there looks wide open. With the company streamlining its cost base following the layoffs earlier this year, it could report an adjusted profit next year.

GitLab stock isn't cheap, but if the company can execute on its growth plan, the stock could easily double or triple from here.